180922886Sopenharmony_ci/* 280922886Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 380922886Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 480922886Sopenharmony_ci * you may not use this file except in compliance with the License. 580922886Sopenharmony_ci * You may obtain a copy of the License at 680922886Sopenharmony_ci * 780922886Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 880922886Sopenharmony_ci * 980922886Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1080922886Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1180922886Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1280922886Sopenharmony_ci * See the License for the specific language governing permissions and 1380922886Sopenharmony_ci * limitations under the License. 1480922886Sopenharmony_ci */ 1580922886Sopenharmony_ci 1680922886Sopenharmony_ci#ifndef OHOS_IAVSESSION_CONTROLLER_H 1780922886Sopenharmony_ci#define OHOS_IAVSESSION_CONTROLLER_H 1880922886Sopenharmony_ci 1980922886Sopenharmony_ci#include "avsession_controller.h" 2080922886Sopenharmony_ci#include "iavcontroller_callback.h" 2180922886Sopenharmony_ci#include "iremote_broker.h" 2280922886Sopenharmony_ci 2380922886Sopenharmony_cinamespace OHOS::AVSession { 2480922886Sopenharmony_ciclass IAVSessionController : public AVSessionController, public IRemoteBroker { 2580922886Sopenharmony_cipublic: 2680922886Sopenharmony_ci DECLARE_INTERFACE_DESCRIPTOR(u"ohos.avsession.IAVSessionController"); 2780922886Sopenharmony_ci 2880922886Sopenharmony_ci enum { 2980922886Sopenharmony_ci CONTROLLER_CMD_REGISTER_CALLBACK, 3080922886Sopenharmony_ci CONTROLLER_CMD_DESTROY, 3180922886Sopenharmony_ci CONTROLLER_CMD_GET_AV_PLAYBACK_STATE, 3280922886Sopenharmony_ci CONTROLLER_CMD_GET_AV_META_DATA, 3380922886Sopenharmony_ci CONTROLLER_CMD_SEND_AV_KEYEVENT, 3480922886Sopenharmony_ci CONTROLLER_CMD_GET_LAUNCH_ABILITY, 3580922886Sopenharmony_ci CONTROLLER_CMD_GET_VALID_COMMANDS, 3680922886Sopenharmony_ci CONTROLLER_CMD_SEND_CONTROL_COMMAND, 3780922886Sopenharmony_ci CONTROLLER_CMD_SEND_COMMON_COMMAND, 3880922886Sopenharmony_ci CONTROLLER_CMD_SET_META_FILTER, 3980922886Sopenharmony_ci CONTROLLER_CMD_SET_PLAYBACK_FILTER, 4080922886Sopenharmony_ci CONTROLLER_CMD_IS_SESSION_ACTIVE, 4180922886Sopenharmony_ci CONTROLLER_CMD_GET_SESSION_ID, 4280922886Sopenharmony_ci CONTROLLER_CMD_GET_AV_QUEUE_ITEMS, 4380922886Sopenharmony_ci CONTROLLER_CMD_GET_AV_QUEUE_TITLE, 4480922886Sopenharmony_ci CONTROLLER_CMD_SKIP_TO_QUEUE_ITEM, 4580922886Sopenharmony_ci CONTROLLER_CMD_GET_EXTRAS, 4680922886Sopenharmony_ci CONTROLLER_CMD_GET_AVCALL_META_DATA, 4780922886Sopenharmony_ci CONTROLLER_CMD_SET_AVCALL_META_FILTER, 4880922886Sopenharmony_ci CONTROLLER_CMD_GET_AVCALL_STATE, 4980922886Sopenharmony_ci CONTROLLER_CMD_SET_AVCALL_STATE_FILTER, 5080922886Sopenharmony_ci CONTROLLER_CMD_MAX, 5180922886Sopenharmony_ci }; 5280922886Sopenharmony_ci 5380922886Sopenharmony_ciprotected: 5480922886Sopenharmony_ci virtual int32_t RegisterCallbackInner(const sptr<IRemoteObject>& callback) = 0; 5580922886Sopenharmony_ci}; 5680922886Sopenharmony_ci} 5780922886Sopenharmony_ci#endif // OHOS_IAVSESSION_CONTROLLER_H