1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef OHOS_IAVCONTROLLER_CALLBACK_H 17 #define OHOS_IAVCONTROLLER_CALLBACK_H 18 19 #include "avsession_info.h" 20 #include "iremote_broker.h" 21 22 namespace OHOS::AVSession { 23 class IAVControllerCallback : public AVControllerCallback, public IRemoteBroker { 24 public: 25 DECLARE_INTERFACE_DESCRIPTOR(u"ohos.avsession.IAVControllerCallback"); 26 27 enum { 28 CONTROLLER_CMD_ON_SESSION_DESTROY, 29 CONTROLLER_CMD_ON_PLAYBACK_STATE_CHANGE, 30 CONTROLLER_CMD_ON_METADATA_CHANGE, 31 CONTROLLER_CMD_ON_ACTIVE_STATE_CHANGE, 32 CONTROLLER_CMD_ON_VALID_COMMAND_CHANGE, 33 CONTROLLER_CMD_ON_OUTPUT_DEVICE_CHANGE, 34 CONTROLLER_CMD_ON_SET_SESSION_EVENT, 35 CONTROLLER_CMD_ON_QUEUE_ITEMS_CHANGE, 36 CONTROLLER_CMD_ON_QUEUE_TITLE_CHANGE, 37 CONTROLLER_CMD_ON_SET_EXTRAS_EVENT, 38 CONTROLLER_CMD_ON_AVCALL_METADATA_CHANGE, 39 CONTROLLER_CMD_ON_AVCALL_STATE_CHANGE, 40 CONTROLLER_CMD_MAX, 41 }; 42 }; 43 } 44 #endif // OHOS_IAVCONTROLLER_CALLBACK_H