1/* 2 * Copyright (c) 2025 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 16sequenceable AvsessionDescriptor..OHOS.AVSession.CastDisplayInfo; 17sequenceable AvsessionDescriptor..OHOS.AVSession.OutputDeviceInfo; 18sequenceable KeyEvent..OHOS.MMI.KeyEvent; 19sequenceable WantParams..OHOS.AAFwk.WantParams; 20sequenceable OHOS.IRemoteObject; 21 22interface OHOS.AVSession.IAVSessionCallback { 23 [oneway] void OnAVCallAnswer(); 24 25 [oneway] void OnAVCallHangUp(); 26 27 [oneway] void OnAVCallToggleCallMute(); 28 29 [oneway] void OnPlay(); 30 31 [oneway] void OnPause(); 32 33 [oneway] void OnStop(); 34 35 [oneway] void OnPlayNext(); 36 37 [oneway] void OnPlayPrevious(); 38 39 [oneway] void OnFastForward([in] long time); 40 41 [oneway] void OnRewind([in] long time); 42 43 [oneway] void OnSeek([in] long time); 44 45 [oneway] void OnSetSpeed([in] double speed); 46 47 [oneway] void OnSetLoopMode([in] int loopMode); 48 49 [oneway] void OnSetTargetLoopMode([in] int targetLoopMode); 50 51 [oneway] void OnToggleFavorite([in] String mediaId); 52 53 [oneway] void OnMediaKeyEvent([in] KeyEvent keyEvent); 54 55 [oneway] void OnOutputDeviceChange([in] int connectionState, [in] OutputDeviceInfo outputDeviceInfo); 56 57 [oneway] void OnCommonCommand([in] String commonCommand, [in] WantParams commandArgs); 58 59 [oneway] void OnSkipToQueueItem([in] int itemId); 60 61 [oneway] void OnPlayFromAssetId([in] long assetId); 62 63 [oneway] void OnPlayWithAssetId([in] String assetId); 64 65 [oneway] void OnCastDisplayChange([in] CastDisplayInfo castDisplayInfo); 66 67 [oneway] void OnCastDisplaySizeChange([in] CastDisplayInfo castDisplayInfo); 68 69 [oneway] void OnCustomData([in] WantParams customData); 70}