/* * Copyright (c) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef OHOS_AVSESSION_CALLBACK_H #define OHOS_AVSESSION_CALLBACK_H #include "avsession_info.h" #include "key_event.h" #include "iremote_broker.h" namespace OHOS::AVSession { class IAVSessionCallback : public AVSessionCallback, public IRemoteBroker { public: DECLARE_INTERFACE_DESCRIPTOR(u"ohos.AVSession.IAVSessionCallback"); enum { SESSION_CALLBACK_ON_PLAY, SESSION_CALLBACK_ON_PAUSE, SESSION_CALLBACK_ON_STOP, SESSION_CALLBACK_ON_PLAY_NEXT, SESSION_CALLBACK_ON_PLAY_PREVIOUS, SESSION_CALLBACK_ON_FAST_FORWARD, SESSION_CALLBACK_ON_REWIND, SESSION_CALLBACK_ON_SEEK, SESSION_CALLBACK_ON_SET_SPEED, SESSION_CALLBACK_ON_SET_LOOPMODE, SESSION_CALLBACK_ON_TOGGLE_FAVORITE, SESSION_CALLBACK_ON_MEDIA_KEY_EVENT, SESSION_CALLBACK_ON_OUTPUT_DEVICE_CHANGE, SESSION_CALLBACK_ON_SEND_COMMON_COMMAND, SESSION_CALLBACK_ON_SKIP_TO_QUEUE_ITEM, SESSION_CALLBACK_ON_AVCALL_ANSWER, SESSION_CALLBACK_ON_AVCALL_HANGUP, SESSION_CALLBACK_ON_AVCALL_TOGGLE_CALL_MUTE, SESSION_CALLBACK_ON_PLAY_FROM_ASSETID, SESSION_CALLBACK_ON_CAST_DISPLAY_CHANGE, SESSION_CALLBACK_MAX }; }; } // namespace OHOS::AVSession #endif // OHOS_AVSESSION_CALLBACK_H