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_AVSESSION_CALLBACK_H
17 #define OHOS_AVSESSION_CALLBACK_H
18 
19 #include "avsession_info.h"
20 #include "key_event.h"
21 #include "iremote_broker.h"
22 
23 namespace OHOS::AVSession {
24 class IAVSessionCallback : public AVSessionCallback, public IRemoteBroker {
25 public:
26     DECLARE_INTERFACE_DESCRIPTOR(u"ohos.AVSession.IAVSessionCallback");
27 
28     enum {
29         SESSION_CALLBACK_ON_PLAY,
30         SESSION_CALLBACK_ON_PAUSE,
31         SESSION_CALLBACK_ON_STOP,
32         SESSION_CALLBACK_ON_PLAY_NEXT,
33         SESSION_CALLBACK_ON_PLAY_PREVIOUS,
34         SESSION_CALLBACK_ON_FAST_FORWARD,
35         SESSION_CALLBACK_ON_REWIND,
36         SESSION_CALLBACK_ON_SEEK,
37         SESSION_CALLBACK_ON_SET_SPEED,
38         SESSION_CALLBACK_ON_SET_LOOPMODE,
39         SESSION_CALLBACK_ON_TOGGLE_FAVORITE,
40         SESSION_CALLBACK_ON_MEDIA_KEY_EVENT,
41         SESSION_CALLBACK_ON_OUTPUT_DEVICE_CHANGE,
42         SESSION_CALLBACK_ON_SEND_COMMON_COMMAND,
43         SESSION_CALLBACK_ON_SKIP_TO_QUEUE_ITEM,
44         SESSION_CALLBACK_ON_AVCALL_ANSWER,
45         SESSION_CALLBACK_ON_AVCALL_HANGUP,
46         SESSION_CALLBACK_ON_AVCALL_TOGGLE_CALL_MUTE,
47         SESSION_CALLBACK_ON_PLAY_FROM_ASSETID,
48         SESSION_CALLBACK_ON_CAST_DISPLAY_CHANGE,
49         SESSION_CALLBACK_MAX
50     };
51 };
52 } // namespace OHOS::AVSession
53 #endif // OHOS_AVSESSION_CALLBACK_H