openharmony 鸿蒙 js-apidiff-AVSessionKit

2026-08-25 浏览 (1)

Change TypeOld VersionNew Versiond.ts File
New APINAClass name: global;
API declaration: declare struct AVCastPicker
Differences: declare struct AVCastPicker
api/@ohos.multimedia.avCastPicker.d.ets
New APINAClass name: AVCastPicker;
API declaration: @Prop
normalColor?: Color |number |string;
Differences: @Prop
normalColor?: Color |number |string;
api/@ohos.multimedia.avCastPicker.d.ets
New APINAClass name: AVCastPicker;
API declaration: @Prop
activeColor?: Color |number |string;
Differences: @Prop
activeColor?: Color |number |string;
api/@ohos.multimedia.avCastPicker.d.ets
New APINAClass name: AVCastPicker;
API declaration: onStateChange?: (state: AVCastPickerState) => void;
Differences: onStateChange?: (state: AVCastPickerState) => void;
api/@ohos.multimedia.avCastPicker.d.ets
New APINAClass name: global;
API declaration: export declare enum AVCastPickerState
Differences: export declare enum AVCastPickerState
api/@ohos.multimedia.avCastPickerParam.d.ts
New APINAClass name: AVCastPickerState;
API declaration: STATE_APPEARING
Differences: STATE_APPEARING
api/@ohos.multimedia.avCastPickerParam.d.ts
New APINAClass name: AVCastPickerState;
API declaration: STATE_DISAPPEARING
Differences: STATE_DISAPPEARING
api/@ohos.multimedia.avCastPickerParam.d.ts
New APINAClass name: global;
API declaration: declare namespace avSession
Differences: declare namespace avSession
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: function createAVSession(context: Context, tag: string, type: AVSessionType, callback: AsyncCallback<AVSession>): void;
Differences: function createAVSession(context: Context, tag: string, type: AVSessionType, callback: AsyncCallback<AVSession>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: function createAVSession(context: Context, tag: string, type: AVSessionType): Promise<AVSession>;
Differences: function createAVSession(context: Context, tag: string, type: AVSessionType): Promise<AVSession>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: enum ProtocolType
Differences: enum ProtocolType
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: ProtocolType;
API declaration: TYPE_LOCAL = 0
Differences: TYPE_LOCAL = 0
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: ProtocolType;
API declaration: TYPE_CAST_PLUS_STREAM = 2
Differences: TYPE_CAST_PLUS_STREAM = 2
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: type AVSessionType = 'audio' |'video' |'voice_call';
Differences: type AVSessionType = 'audio' |'video' |'voice_call';
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface AVSession
Differences: interface AVSession
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: readonly sessionId: string;
Differences: readonly sessionId: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: readonly sessionType: AVSessionType;
Differences: readonly sessionType: AVSessionType;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setAVMetadata(data: AVMetadata, callback: AsyncCallback<void>): void;
Differences: setAVMetadata(data: AVMetadata, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setAVMetadata(data: AVMetadata): Promise<void>;
Differences: setAVMetadata(data: AVMetadata): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setCallMetadata(data: CallMetadata, callback: AsyncCallback<void>): void;
Differences: setCallMetadata(data: CallMetadata, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setCallMetadata(data: CallMetadata): Promise<void>;
Differences: setCallMetadata(data: CallMetadata): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setAVPlaybackState(state: AVPlaybackState, callback: AsyncCallback<void>): void;
Differences: setAVPlaybackState(state: AVPlaybackState, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setAVPlaybackState(state: AVPlaybackState): Promise<void>;
Differences: setAVPlaybackState(state: AVPlaybackState): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setAVCallState(state: AVCallState, callback: AsyncCallback<void>): void;
Differences: setAVCallState(state: AVCallState, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setAVCallState(state: AVCallState): Promise<void>;
Differences: setAVCallState(state: AVCallState): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setLaunchAbility(ability: WantAgent, callback: AsyncCallback<void>): void;
Differences: setLaunchAbility(ability: WantAgent, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setLaunchAbility(ability: WantAgent): Promise<void>;
Differences: setLaunchAbility(ability: WantAgent): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: dispatchSessionEvent(event: string, args: {
[key: string]: Object;
}, callback: AsyncCallback<void>): void;
Differences: dispatchSessionEvent(event: string, args: {
[key: string]: Object;
}, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: dispatchSessionEvent(event: string, args: {
[key: string]: Object;
}): Promise<void>;
Differences: dispatchSessionEvent(event: string, args: {
[key: string]: Object;
}): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setAVQueueItems(items: Array<AVQueueItem>, callback: AsyncCallback<void>): void;
Differences: setAVQueueItems(items: Array<AVQueueItem>, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setAVQueueItems(items: Array<AVQueueItem>): Promise<void>;
Differences: setAVQueueItems(items: Array<AVQueueItem>): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setAVQueueTitle(title: string, callback: AsyncCallback<void>): void;
Differences: setAVQueueTitle(title: string, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setAVQueueTitle(title: string): Promise<void>;
Differences: setAVQueueTitle(title: string): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setExtras(extras: {
[key: string]: Object;
}, callback: AsyncCallback<void>): void;
Differences: setExtras(extras: {
[key: string]: Object;
}, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: setExtras(extras: {
[key: string]: Object;
}): Promise<void>;
Differences: setExtras(extras: {
[key: string]: Object;
}): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: getController(callback: AsyncCallback<AVSessionController>): void;
Differences: getController(callback: AsyncCallback<AVSessionController>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: getController(): Promise<AVSessionController>;
Differences: getController(): Promise<AVSessionController>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: getAVCastController(callback: AsyncCallback<AVCastController>): void;
Differences: getAVCastController(callback: AsyncCallback<AVCastController>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: getAVCastController(): Promise<AVCastController>;
Differences: getAVCastController(): Promise<AVCastController>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: getOutputDevice(callback: AsyncCallback<OutputDeviceInfo>): void;
Differences: getOutputDevice(callback: AsyncCallback<OutputDeviceInfo>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: getOutputDevice(): Promise<OutputDeviceInfo>;
Differences: getOutputDevice(): Promise<OutputDeviceInfo>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: getOutputDeviceSync(): OutputDeviceInfo;
Differences: getOutputDeviceSync(): OutputDeviceInfo;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'play', callback: () => void): void;
Differences: on(type: 'play', callback: () => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'pause', callback: () => void): void;
Differences: on(type: 'pause', callback: () => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'stop', callback: () => void): void;
Differences: on(type: 'stop', callback: () => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'playNext', callback: () => void): void;
Differences: on(type: 'playNext', callback: () => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'playPrevious', callback: () => void): void;
Differences: on(type: 'playPrevious', callback: () => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'fastForward', callback: (time?: number) => void): void;
Differences: on(type: 'fastForward', callback: (time?: number) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'rewind', callback: (time?: number) => void): void;
Differences: on(type: 'rewind', callback: (time?: number) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'play', callback?: () => void): void;
Differences: off(type: 'play', callback?: () => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'pause', callback?: () => void): void;
Differences: off(type: 'pause', callback?: () => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'stop', callback?: () => void): void;
Differences: off(type: 'stop', callback?: () => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'playNext', callback?: () => void): void;
Differences: off(type: 'playNext', callback?: () => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'playPrevious', callback?: () => void): void;
Differences: off(type: 'playPrevious', callback?: () => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'fastForward', callback?: () => void): void;
Differences: off(type: 'fastForward', callback?: () => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'rewind', callback?: () => void): void;
Differences: off(type: 'rewind', callback?: () => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'playFromAssetId', callback: (assetId: number) => void): void;
Differences: on(type: 'playFromAssetId', callback: (assetId: number) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'playFromAssetId', callback?: (assetId: number) => void): void;
Differences: off(type: 'playFromAssetId', callback?: (assetId: number) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'seek', callback: (time: number) => void): void;
Differences: on(type: 'seek', callback: (time: number) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'seek', callback?: (time: number) => void): void;
Differences: off(type: 'seek', callback?: (time: number) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'setSpeed', callback: (speed: number) => void): void;
Differences: on(type: 'setSpeed', callback: (speed: number) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'setSpeed', callback?: (speed: number) => void): void;
Differences: off(type: 'setSpeed', callback?: (speed: number) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'setLoopMode', callback: (mode: LoopMode) => void): void;
Differences: on(type: 'setLoopMode', callback: (mode: LoopMode) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'setLoopMode', callback?: (mode: LoopMode) => void): void;
Differences: off(type: 'setLoopMode', callback?: (mode: LoopMode) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'toggleFavorite', callback: (assetId: string) => void): void;
Differences: on(type: 'toggleFavorite', callback: (assetId: string) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'toggleFavorite', callback?: (assetId: string) => void): void;
Differences: off(type: 'toggleFavorite', callback?: (assetId: string) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'handleKeyEvent', callback: (event: KeyEvent) => void): void;
Differences: on(type: 'handleKeyEvent', callback: (event: KeyEvent) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'handleKeyEvent', callback?: (event: KeyEvent) => void): void;
Differences: off(type: 'handleKeyEvent', callback?: (event: KeyEvent) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'outputDeviceChange', callback: (state: ConnectionState, device: OutputDeviceInfo) => void): void;
Differences: on(type: 'outputDeviceChange', callback: (state: ConnectionState, device: OutputDeviceInfo) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'outputDeviceChange', callback?: (state: ConnectionState, device: OutputDeviceInfo) => void): void;
Differences: off(type: 'outputDeviceChange', callback?: (state: ConnectionState, device: OutputDeviceInfo) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'commonCommand', callback: (command: string, args: {
[key: string]: Object;
}) => void): void;
Differences: on(type: 'commonCommand', callback: (command: string, args: {
[key: string]: Object;
}) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'commonCommand', callback?: (command: string, args: {
[key: string]: Object;
}) => void): void;
Differences: off(type: 'commonCommand', callback?: (command: string, args: {
[key: string]: Object;
}) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'skipToQueueItem', callback: (itemId: number) => void): void;
Differences: on(type: 'skipToQueueItem', callback: (itemId: number) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'skipToQueueItem', callback?: (itemId: number) => void): void;
Differences: off(type: 'skipToQueueItem', callback?: (itemId: number) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'answer', callback: Callback<void>): void;
Differences: on(type: 'answer', callback: Callback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'answer', callback?: Callback<void>): void;
Differences: off(type: 'answer', callback?: Callback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'hangUp', callback: Callback<void>): void;
Differences: on(type: 'hangUp', callback: Callback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'hangUp', callback?: Callback<void>): void;
Differences: off(type: 'hangUp', callback?: Callback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: on(type: 'toggleCallMute', callback: Callback<void>): void;
Differences: on(type: 'toggleCallMute', callback: Callback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: off(type: 'toggleCallMute', callback?: Callback<void>): void;
Differences: off(type: 'toggleCallMute', callback?: Callback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: stopCasting(callback: AsyncCallback<void>): void;
Differences: stopCasting(callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: stopCasting(): Promise<void>;
Differences: stopCasting(): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: activate(callback: AsyncCallback<void>): void;
Differences: activate(callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: activate(): Promise<void>;
Differences: activate(): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: deactivate(callback: AsyncCallback<void>): void;
Differences: deactivate(callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: deactivate(): Promise<void>;
Differences: deactivate(): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: destroy(callback: AsyncCallback<void>): void;
Differences: destroy(callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSession;
API declaration: destroy(): Promise<void>;
Differences: destroy(): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: type AVCastControlCommandType = 'play' |'pause' |'stop' |'playNext' |'playPrevious' |'fastForward' |'rewind' |'seek' |'setVolume' |'setSpeed' |'setLoopMode' |'toggleFavorite' |'toggleMute';
Differences: type AVCastControlCommandType = 'play' |'pause' |'stop' |'playNext' |'playPrevious' |'fastForward' |'rewind' |'seek' |'setVolume' |'setSpeed' |'setLoopMode' |'toggleFavorite' |'toggleMute';
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface AVCastControlCommand
Differences: interface AVCastControlCommand
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastControlCommand;
API declaration: command: AVCastControlCommandType;
Differences: command: AVCastControlCommandType;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastControlCommand;
API declaration: parameter?: media.PlaybackSpeed |number |string |LoopMode;
Differences: parameter?: media.PlaybackSpeed |number |string |LoopMode;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface AVCastController
Differences: interface AVCastController
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: getAVPlaybackState(callback: AsyncCallback<AVPlaybackState>): void;
Differences: getAVPlaybackState(callback: AsyncCallback<AVPlaybackState>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: getAVPlaybackState(): Promise<AVPlaybackState>;
Differences: getAVPlaybackState(): Promise<AVPlaybackState>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: sendControlCommand(command: AVCastControlCommand, callback: AsyncCallback<void>): void;
Differences: sendControlCommand(command: AVCastControlCommand, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: sendControlCommand(command: AVCastControlCommand): Promise<void>;
Differences: sendControlCommand(command: AVCastControlCommand): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: start(item: AVQueueItem, callback: AsyncCallback<void>): void;
Differences: start(item: AVQueueItem, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: start(item: AVQueueItem): Promise<void>;
Differences: start(item: AVQueueItem): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: prepare(item: AVQueueItem, callback: AsyncCallback<void>): void;
Differences: prepare(item: AVQueueItem, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: prepare(item: AVQueueItem): Promise<void>;
Differences: prepare(item: AVQueueItem): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: getCurrentItem(callback: AsyncCallback<AVQueueItem>): void;
Differences: getCurrentItem(callback: AsyncCallback<AVQueueItem>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: getCurrentItem(): Promise<AVQueueItem>;
Differences: getCurrentItem(): Promise<AVQueueItem>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: getValidCommands(callback: AsyncCallback<Array<AVCastControlCommandType>>): void;
Differences: getValidCommands(callback: AsyncCallback<Array<AVCastControlCommandType>>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: getValidCommands(): Promise<Array<AVCastControlCommandType>>;
Differences: getValidCommands(): Promise<Array<AVCastControlCommandType>>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: release(callback: AsyncCallback<void>): void;
Differences: release(callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: release(): Promise<void>;
Differences: release(): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: on(type: 'playbackStateChange', filter: Array<keyof AVPlaybackState> |'all', callback: (state: AVPlaybackState) => void): void;
Differences: on(type: 'playbackStateChange', filter: Array<keyof AVPlaybackState> |'all', callback: (state: AVPlaybackState) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: off(type: 'playbackStateChange', callback?: (state: AVPlaybackState) => void): void;
Differences: off(type: 'playbackStateChange', callback?: (state: AVPlaybackState) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: on(type: 'mediaItemChange', callback: Callback<AVQueueItem>): void;
Differences: on(type: 'mediaItemChange', callback: Callback<AVQueueItem>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: off(type: 'mediaItemChange'): void;
Differences: off(type: 'mediaItemChange'): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: on(type: 'playNext', callback: Callback<void>): void;
Differences: on(type: 'playNext', callback: Callback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: off(type: 'playNext'): void;
Differences: off(type: 'playNext'): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: on(type: 'playPrevious', callback: Callback<void>): void;
Differences: on(type: 'playPrevious', callback: Callback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: off(type: 'playPrevious'): void;
Differences: off(type: 'playPrevious'): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: on(type: 'requestPlay', callback: Callback<AVQueueItem>): void;
Differences: on(type: 'requestPlay', callback: Callback<AVQueueItem>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: off(type: 'requestPlay', callback?: Callback<AVQueueItem>): void;
Differences: off(type: 'requestPlay', callback?: Callback<AVQueueItem>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: on(type: 'endOfStream', callback: Callback<void>): void;
Differences: on(type: 'endOfStream', callback: Callback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: off(type: 'endOfStream', callback?: Callback<void>): void;
Differences: off(type: 'endOfStream', callback?: Callback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: on(type: 'seekDone', callback: Callback<number>): void;
Differences: on(type: 'seekDone', callback: Callback<number>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: off(type: 'seekDone'): void;
Differences: off(type: 'seekDone'): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: on(type: 'validCommandChange', callback: Callback<Array<AVCastControlCommandType>>);
Differences: on(type: 'validCommandChange', callback: Callback<Array<AVCastControlCommandType>>);
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: off(type: 'validCommandChange', callback?: Callback<Array<AVCastControlCommandType>>);
Differences: off(type: 'validCommandChange', callback?: Callback<Array<AVCastControlCommandType>>);
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: on(type: 'error', callback: ErrorCallback): void;
Differences: on(type: 'error', callback: ErrorCallback): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastController;
API declaration: off(type: 'error'): void;
Differences: off(type: 'error'): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: enum ConnectionState
Differences: enum ConnectionState
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: ConnectionState;
API declaration: STATE_CONNECTING = 0
Differences: STATE_CONNECTING = 0
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: ConnectionState;
API declaration: STATE_CONNECTED = 1
Differences: STATE_CONNECTED = 1
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: ConnectionState;
API declaration: STATE_DISCONNECTED = 6
Differences: STATE_DISCONNECTED = 6
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: enum DisplayTag
Differences: enum DisplayTag
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: DisplayTag;
API declaration: TAG_AUDIO_VIVID = 1
Differences: TAG_AUDIO_VIVID = 1
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface AVMetadata
Differences: interface AVMetadata
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: assetId: string;
Differences: assetId: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: title?: string;
Differences: title?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: artist?: string;
Differences: artist?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: author?: string;
Differences: author?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: avQueueId?: string;
Differences: avQueueId?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: avQueueImage?: image.PixelMap |string;
Differences: avQueueImage?: image.PixelMap |string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: album?: string;
Differences: album?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: writer?: string;
Differences: writer?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: composer?: string;
Differences: composer?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: duration?: number;
Differences: duration?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: mediaImage?: image.PixelMap |string;
Differences: mediaImage?: image.PixelMap |string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: publishDate?: Date;
Differences: publishDate?: Date;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: subtitle?: string;
Differences: subtitle?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: description?: string;
Differences: description?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: lyric?: string;
Differences: lyric?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: previousAssetId?: string;
Differences: previousAssetId?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: nextAssetId?: string;
Differences: nextAssetId?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: filter?: number;
Differences: filter?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: skipIntervals?: SkipIntervals;
Differences: skipIntervals?: SkipIntervals;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMetadata;
API declaration: displayTags?: number;
Differences: displayTags?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface AVMediaDescription
Differences: interface AVMediaDescription
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: assetId: string;
Differences: assetId: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: title?: string;
Differences: title?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: subtitle?: string;
Differences: subtitle?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: description?: string;
Differences: description?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: mediaImage?: image.PixelMap |string;
Differences: mediaImage?: image.PixelMap |string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: extras?: {
[key: string]: Object;
};
Differences: extras?: {
[key: string]: Object;
};
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: mediaType?: string;
Differences: mediaType?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: mediaSize?: number;
Differences: mediaSize?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: albumTitle?: string;
Differences: albumTitle?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: albumCoverUri?: string;
Differences: albumCoverUri?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: lyricContent?: string;
Differences: lyricContent?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: lyricUri?: string;
Differences: lyricUri?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: artist?: string;
Differences: artist?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: mediaUri?: string;
Differences: mediaUri?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: fdSrc?: media.AVFileDescriptor;
Differences: fdSrc?: media.AVFileDescriptor;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: duration?: number;
Differences: duration?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: startPosition?: number;
Differences: startPosition?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: creditsPosition?: number;
Differences: creditsPosition?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: appName?: string;
Differences: appName?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVMediaDescription;
API declaration: displayTags?: number;
Differences: displayTags?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface AVQueueItem
Differences: interface AVQueueItem
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVQueueItem;
API declaration: itemId: number;
Differences: itemId: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVQueueItem;
API declaration: description?: AVMediaDescription;
Differences: description?: AVMediaDescription;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface AVPlaybackState
Differences: interface AVPlaybackState
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: state?: PlaybackState;
Differences: state?: PlaybackState;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: speed?: number;
Differences: speed?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: position?: PlaybackPosition;
Differences: position?: PlaybackPosition;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: bufferedTime?: number;
Differences: bufferedTime?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: loopMode?: LoopMode;
Differences: loopMode?: LoopMode;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: isFavorite?: boolean;
Differences: isFavorite?: boolean;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: activeItemId?: number;
Differences: activeItemId?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: volume?: number;
Differences: volume?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: maxVolume?: number;
Differences: maxVolume?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: muted?: boolean;
Differences: muted?: boolean;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: duration?: number;
Differences: duration?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: videoWidth?: number;
Differences: videoWidth?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: videoHeight?: number;
Differences: videoHeight?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVPlaybackState;
API declaration: extras?: {
[key: string]: Object;
};
Differences: extras?: {
[key: string]: Object;
};
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface PlaybackPosition
Differences: interface PlaybackPosition
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackPosition;
API declaration: elapsedTime: number;
Differences: elapsedTime: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackPosition;
API declaration: updateTime: number;
Differences: updateTime: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface CallMetadata
Differences: interface CallMetadata
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: CallMetadata;
API declaration: name?: string;
Differences: name?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: CallMetadata;
API declaration: phoneNumber?: string;
Differences: phoneNumber?: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: CallMetadata;
API declaration: avatar?: image.PixelMap;
Differences: avatar?: image.PixelMap;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface AVCallState
Differences: interface AVCallState
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCallState;
API declaration: state: CallState;
Differences: state: CallState;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCallState;
API declaration: muted: boolean;
Differences: muted: boolean;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: enum CallState
Differences: enum CallState
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: CallState;
API declaration: CALL_STATE_IDLE = 0
Differences: CALL_STATE_IDLE = 0
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: CallState;
API declaration: CALL_STATE_INCOMING = 1
Differences: CALL_STATE_INCOMING = 1
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: CallState;
API declaration: CALL_STATE_ACTIVE = 2
Differences: CALL_STATE_ACTIVE = 2
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: CallState;
API declaration: CALL_STATE_DIALING = 3
Differences: CALL_STATE_DIALING = 3
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: CallState;
API declaration: CALL_STATE_WAITING = 4
Differences: CALL_STATE_WAITING = 4
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: CallState;
API declaration: CALL_STATE_HOLDING = 5
Differences: CALL_STATE_HOLDING = 5
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: CallState;
API declaration: CALL_STATE_DISCONNECTING = 6
Differences: CALL_STATE_DISCONNECTING = 6
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: enum AVCastCategory
Differences: enum AVCastCategory
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastCategory;
API declaration: CATEGORY_LOCAL = 0
Differences: CATEGORY_LOCAL = 0
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVCastCategory;
API declaration: CATEGORY_REMOTE = 1
Differences: CATEGORY_REMOTE = 1
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: enum DeviceType
Differences: enum DeviceType
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: DeviceType;
API declaration: DEVICE_TYPE_LOCAL = 0
Differences: DEVICE_TYPE_LOCAL = 0
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: DeviceType;
API declaration: DEVICE_TYPE_TV = 2
Differences: DEVICE_TYPE_TV = 2
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: DeviceType;
API declaration: DEVICE_TYPE_SMART_SPEAKER = 3
Differences: DEVICE_TYPE_SMART_SPEAKER = 3
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: DeviceType;
API declaration: DEVICE_TYPE_BLUETOOTH = 10
Differences: DEVICE_TYPE_BLUETOOTH = 10
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface DeviceInfo
Differences: interface DeviceInfo
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: DeviceInfo;
API declaration: castCategory: AVCastCategory;
Differences: castCategory: AVCastCategory;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: DeviceInfo;
API declaration: deviceId: string;
Differences: deviceId: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: DeviceInfo;
API declaration: deviceName: string;
Differences: deviceName: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: DeviceInfo;
API declaration: deviceType: DeviceType;
Differences: deviceType: DeviceType;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: DeviceInfo;
API declaration: supportedProtocols?: number;
Differences: supportedProtocols?: number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface OutputDeviceInfo
Differences: interface OutputDeviceInfo
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: OutputDeviceInfo;
API declaration: devices: Array<DeviceInfo>;
Differences: devices: Array<DeviceInfo>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: enum LoopMode
Differences: enum LoopMode
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: LoopMode;
API declaration: LOOP_MODE_SEQUENCE = 0
Differences: LOOP_MODE_SEQUENCE = 0
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: LoopMode;
API declaration: LOOP_MODE_SINGLE = 1
Differences: LOOP_MODE_SINGLE = 1
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: LoopMode;
API declaration: LOOP_MODE_LIST = 2
Differences: LOOP_MODE_LIST = 2
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: LoopMode;
API declaration: LOOP_MODE_SHUFFLE = 3
Differences: LOOP_MODE_SHUFFLE = 3
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: LoopMode;
API declaration: LOOP_MODE_CUSTOM = 4
Differences: LOOP_MODE_CUSTOM = 4
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: enum SkipIntervals
Differences: enum SkipIntervals
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: SkipIntervals;
API declaration: SECONDS_10 = 10
Differences: SECONDS_10 = 10
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: SkipIntervals;
API declaration: SECONDS_15 = 15
Differences: SECONDS_15 = 15
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: SkipIntervals;
API declaration: SECONDS_30 = 30
Differences: SECONDS_30 = 30
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: enum PlaybackState
Differences: enum PlaybackState
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackState;
API declaration: PLAYBACK_STATE_INITIAL = 0
Differences: PLAYBACK_STATE_INITIAL = 0
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackState;
API declaration: PLAYBACK_STATE_PREPARE = 1
Differences: PLAYBACK_STATE_PREPARE = 1
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackState;
API declaration: PLAYBACK_STATE_PLAY = 2
Differences: PLAYBACK_STATE_PLAY = 2
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackState;
API declaration: PLAYBACK_STATE_PAUSE = 3
Differences: PLAYBACK_STATE_PAUSE = 3
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackState;
API declaration: PLAYBACK_STATE_FAST_FORWARD = 4
Differences: PLAYBACK_STATE_FAST_FORWARD = 4
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackState;
API declaration: PLAYBACK_STATE_REWIND = 5
Differences: PLAYBACK_STATE_REWIND = 5
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackState;
API declaration: PLAYBACK_STATE_STOP = 6
Differences: PLAYBACK_STATE_STOP = 6
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackState;
API declaration: PLAYBACK_STATE_COMPLETED = 7
Differences: PLAYBACK_STATE_COMPLETED = 7
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackState;
API declaration: PLAYBACK_STATE_RELEASED = 8
Differences: PLAYBACK_STATE_RELEASED = 8
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackState;
API declaration: PLAYBACK_STATE_ERROR = 9
Differences: PLAYBACK_STATE_ERROR = 9
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackState;
API declaration: PLAYBACK_STATE_IDLE = 10
Differences: PLAYBACK_STATE_IDLE = 10
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: PlaybackState;
API declaration: PLAYBACK_STATE_BUFFERING = 11
Differences: PLAYBACK_STATE_BUFFERING = 11
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface AVSessionController
Differences: interface AVSessionController
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: readonly sessionId: string;
Differences: readonly sessionId: string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVPlaybackState(callback: AsyncCallback<AVPlaybackState>): void;
Differences: getAVPlaybackState(callback: AsyncCallback<AVPlaybackState>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVPlaybackState(): Promise<AVPlaybackState>;
Differences: getAVPlaybackState(): Promise<AVPlaybackState>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVPlaybackStateSync(): AVPlaybackState;
Differences: getAVPlaybackStateSync(): AVPlaybackState;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVMetadata(callback: AsyncCallback<AVMetadata>): void;
Differences: getAVMetadata(callback: AsyncCallback<AVMetadata>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVMetadata(): Promise<AVMetadata>;
Differences: getAVMetadata(): Promise<AVMetadata>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVMetadataSync(): AVMetadata;
Differences: getAVMetadataSync(): AVMetadata;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVCallState(callback: AsyncCallback<AVCallState>): void;
Differences: getAVCallState(callback: AsyncCallback<AVCallState>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVCallState(): Promise<AVCallState>;
Differences: getAVCallState(): Promise<AVCallState>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getCallMetadata(callback: AsyncCallback<CallMetadata>): void;
Differences: getCallMetadata(callback: AsyncCallback<CallMetadata>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getCallMetadata(): Promise<CallMetadata>;
Differences: getCallMetadata(): Promise<CallMetadata>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVQueueTitle(callback: AsyncCallback<string>): void;
Differences: getAVQueueTitle(callback: AsyncCallback<string>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVQueueTitle(): Promise<string>;
Differences: getAVQueueTitle(): Promise<string>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVQueueTitleSync(): string;
Differences: getAVQueueTitleSync(): string;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVQueueItems(callback: AsyncCallback<Array<AVQueueItem>>): void;
Differences: getAVQueueItems(callback: AsyncCallback<Array<AVQueueItem>>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVQueueItems(): Promise<Array<AVQueueItem>>;
Differences: getAVQueueItems(): Promise<Array<AVQueueItem>>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getAVQueueItemsSync(): Array<AVQueueItem>;
Differences: getAVQueueItemsSync(): Array<AVQueueItem>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: skipToQueueItem(itemId: number, callback: AsyncCallback<void>): void;
Differences: skipToQueueItem(itemId: number, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: skipToQueueItem(itemId: number): Promise<void>;
Differences: skipToQueueItem(itemId: number): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getOutputDevice(callback: AsyncCallback<OutputDeviceInfo>): void;
Differences: getOutputDevice(callback: AsyncCallback<OutputDeviceInfo>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getOutputDevice(): Promise<OutputDeviceInfo>;
Differences: getOutputDevice(): Promise<OutputDeviceInfo>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getOutputDeviceSync(): OutputDeviceInfo;
Differences: getOutputDeviceSync(): OutputDeviceInfo;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: sendAVKeyEvent(event: KeyEvent, callback: AsyncCallback<void>): void;
Differences: sendAVKeyEvent(event: KeyEvent, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: sendAVKeyEvent(event: KeyEvent): Promise<void>;
Differences: sendAVKeyEvent(event: KeyEvent): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getLaunchAbility(callback: AsyncCallback<WantAgent>): void;
Differences: getLaunchAbility(callback: AsyncCallback<WantAgent>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getLaunchAbility(): Promise<WantAgent>;
Differences: getLaunchAbility(): Promise<WantAgent>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getRealPlaybackPositionSync(): number;
Differences: getRealPlaybackPositionSync(): number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: isActive(callback: AsyncCallback<boolean>): void;
Differences: isActive(callback: AsyncCallback<boolean>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: isActive(): Promise<boolean>;
Differences: isActive(): Promise<boolean>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: isActiveSync(): boolean;
Differences: isActiveSync(): boolean;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: destroy(callback: AsyncCallback<void>): void;
Differences: destroy(callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: destroy(): Promise<void>;
Differences: destroy(): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getValidCommands(callback: AsyncCallback<Array<AVControlCommandType>>): void;
Differences: getValidCommands(callback: AsyncCallback<Array<AVControlCommandType>>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getValidCommands(): Promise<Array<AVControlCommandType>>;
Differences: getValidCommands(): Promise<Array<AVControlCommandType>>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getValidCommandsSync(): Array<AVControlCommandType>;
Differences: getValidCommandsSync(): Array<AVControlCommandType>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: sendControlCommand(command: AVControlCommand, callback: AsyncCallback<void>): void;
Differences: sendControlCommand(command: AVControlCommand, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: sendControlCommand(command: AVControlCommand): Promise<void>;
Differences: sendControlCommand(command: AVControlCommand): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: sendCommonCommand(command: string, args: {
[key: string]: Object;
}, callback: AsyncCallback<void>): void;
Differences: sendCommonCommand(command: string, args: {
[key: string]: Object;
}, callback: AsyncCallback<void>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: sendCommonCommand(command: string, args: {
[key: string]: Object;
}): Promise<void>;
Differences: sendCommonCommand(command: string, args: {
[key: string]: Object;
}): Promise<void>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getExtras(callback: AsyncCallback<{
[key: string]: Object;
}>): void;
Differences: getExtras(callback: AsyncCallback<{
[key: string]: Object;
}>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: getExtras(): Promise<{
[key: string]: Object;
}>;
Differences: getExtras(): Promise<{
[key: string]: Object;
}>;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: on(type: 'metadataChange', filter: Array<keyof AVMetadata> |'all', callback: (data: AVMetadata) => void);
Differences: on(type: 'metadataChange', filter: Array<keyof AVMetadata> |'all', callback: (data: AVMetadata) => void);
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: off(type: 'metadataChange', callback?: (data: AVMetadata) => void);
Differences: off(type: 'metadataChange', callback?: (data: AVMetadata) => void);
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: on(type: 'playbackStateChange', filter: Array<keyof AVPlaybackState> |'all', callback: (state: AVPlaybackState) => void);
Differences: on(type: 'playbackStateChange', filter: Array<keyof AVPlaybackState> |'all', callback: (state: AVPlaybackState) => void);
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: off(type: 'playbackStateChange', callback?: (state: AVPlaybackState) => void);
Differences: off(type: 'playbackStateChange', callback?: (state: AVPlaybackState) => void);
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: on(type: 'callMetadataChange', filter: Array<keyof CallMetadata> |'all', callback: Callback<CallMetadata>): void;
Differences: on(type: 'callMetadataChange', filter: Array<keyof CallMetadata> |'all', callback: Callback<CallMetadata>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: off(type: 'callMetadataChange', callback?: Callback<CallMetadata>): void;
Differences: off(type: 'callMetadataChange', callback?: Callback<CallMetadata>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: on(type: 'callStateChange', filter: Array<keyof AVCallState> |'all', callback: Callback<AVCallState>): void;
Differences: on(type: 'callStateChange', filter: Array<keyof AVCallState> |'all', callback: Callback<AVCallState>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: off(type: 'callStateChange', callback?: Callback<AVCallState>): void;
Differences: off(type: 'callStateChange', callback?: Callback<AVCallState>): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: on(type: 'sessionDestroy', callback: () => void);
Differences: on(type: 'sessionDestroy', callback: () => void);
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: off(type: 'sessionDestroy', callback?: () => void);
Differences: off(type: 'sessionDestroy', callback?: () => void);
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: on(type: 'activeStateChange', callback: (isActive: boolean) => void);
Differences: on(type: 'activeStateChange', callback: (isActive: boolean) => void);
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: off(type: 'activeStateChange', callback?: (isActive: boolean) => void);
Differences: off(type: 'activeStateChange', callback?: (isActive: boolean) => void);
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: on(type: 'validCommandChange', callback: (commands: Array<AVControlCommandType>) => void);
Differences: on(type: 'validCommandChange', callback: (commands: Array<AVControlCommandType>) => void);
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: off(type: 'validCommandChange', callback?: (commands: Array<AVControlCommandType>) => void);
Differences: off(type: 'validCommandChange', callback?: (commands: Array<AVControlCommandType>) => void);
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: on(type: 'outputDeviceChange', callback: (state: ConnectionState, device: OutputDeviceInfo) => void): void;
Differences: on(type: 'outputDeviceChange', callback: (state: ConnectionState, device: OutputDeviceInfo) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: off(type: 'outputDeviceChange', callback?: (state: ConnectionState, device: OutputDeviceInfo) => void): void;
Differences: off(type: 'outputDeviceChange', callback?: (state: ConnectionState, device: OutputDeviceInfo) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: on(type: 'sessionEvent', callback: (sessionEvent: string, args: {
[key: string]: Object;
}) => void): void;
Differences: on(type: 'sessionEvent', callback: (sessionEvent: string, args: {
[key: string]: Object;
}) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: off(type: 'sessionEvent', callback?: (sessionEvent: string, args: {
[key: string]: Object;
}) => void): void;
Differences: off(type: 'sessionEvent', callback?: (sessionEvent: string, args: {
[key: string]: Object;
}) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: on(type: 'queueItemsChange', callback: (items: Array<AVQueueItem>) => void): void;
Differences: on(type: 'queueItemsChange', callback: (items: Array<AVQueueItem>) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: off(type: 'queueItemsChange', callback?: (items: Array<AVQueueItem>) => void): void;
Differences: off(type: 'queueItemsChange', callback?: (items: Array<AVQueueItem>) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: on(type: 'queueTitleChange', callback: (title: string) => void): void;
Differences: on(type: 'queueTitleChange', callback: (title: string) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: off(type: 'queueTitleChange', callback?: (title: string) => void): void;
Differences: off(type: 'queueTitleChange', callback?: (title: string) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: on(type: 'extrasChange', callback: (extras: {
[key: string]: Object;
}) => void): void;
Differences: on(type: 'extrasChange', callback: (extras: {
[key: string]: Object;
}) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionController;
API declaration: off(type: 'extrasChange', callback?: (extras: {
[key: string]: Object;
}) => void): void;
Differences: off(type: 'extrasChange', callback?: (extras: {
[key: string]: Object;
}) => void): void;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: type AVControlCommandType = 'play' |'pause' |'stop' |'playNext' |'playPrevious' |'fastForward' |'rewind' |'seek' |'setSpeed' |'setLoopMode' |'toggleFavorite' |'playFromAssetId' |'answer' |'hangUp' |'toggleCallMute';
Differences: type AVControlCommandType = 'play' |'pause' |'stop' |'playNext' |'playPrevious' |'fastForward' |'rewind' |'seek' |'setSpeed' |'setLoopMode' |'toggleFavorite' |'playFromAssetId' |'answer' |'hangUp' |'toggleCallMute';
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: interface AVControlCommand
Differences: interface AVControlCommand
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVControlCommand;
API declaration: command: AVControlCommandType;
Differences: command: AVControlCommandType;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVControlCommand;
API declaration: parameter?: LoopMode |string |number;
Differences: parameter?: LoopMode |string |number;
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: avSession;
API declaration: enum AVSessionErrorCode
Differences: enum AVSessionErrorCode
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionErrorCode;
API declaration: ERR_CODE_SERVICE_EXCEPTION = 6600101
Differences: ERR_CODE_SERVICE_EXCEPTION = 6600101
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionErrorCode;
API declaration: ERR_CODE_SESSION_NOT_EXIST = 6600102
Differences: ERR_CODE_SESSION_NOT_EXIST = 6600102
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionErrorCode;
API declaration: ERR_CODE_CONTROLLER_NOT_EXIST = 6600103
Differences: ERR_CODE_CONTROLLER_NOT_EXIST = 6600103
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionErrorCode;
API declaration: ERR_CODE_REMOTE_CONNECTION_ERR = 6600104
Differences: ERR_CODE_REMOTE_CONNECTION_ERR = 6600104
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionErrorCode;
API declaration: ERR_CODE_COMMAND_INVALID = 6600105
Differences: ERR_CODE_COMMAND_INVALID = 6600105
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionErrorCode;
API declaration: ERR_CODE_SESSION_INACTIVE = 6600106
Differences: ERR_CODE_SESSION_INACTIVE = 6600106
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionErrorCode;
API declaration: ERR_CODE_MESSAGE_OVERLOAD = 6600107
Differences: ERR_CODE_MESSAGE_OVERLOAD = 6600107
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionErrorCode;
API declaration: ERR_CODE_DEVICE_CONNECTION_FAILED = 6600108
Differences: ERR_CODE_DEVICE_CONNECTION_FAILED = 6600108
api/@ohos.multimedia.avsession.d.ts
New APINAClass name: AVSessionErrorCode;
API declaration: ERR_CODE_REMOTE_CONNECTION_NOT_EXIST = 6600109
Differences: ERR_CODE_REMOTE_CONNECTION_NOT_EXIST = 6600109
api/@ohos.multimedia.avsession.d.ts
New KitClass name: global;
API declaration:
Differences: NA
Class name: global;
API declaration: api@ohos.multimedia.avCastPicker.d.ets
Differences: AVSessionKit
api/@ohos.multimedia.avCastPicker.d.ets
New KitClass name: global;
API declaration:
Differences: NA
Class name: global;
API declaration: api@ohos.multimedia.avCastPickerParam.d.ts
Differences: AVSessionKit
api/@ohos.multimedia.avCastPickerParam.d.ts
New KitClass name: global;
API declaration:
Differences: NA
Class name: global;
API declaration: api@ohos.multimedia.avsession.d.ts
Differences: AVSessionKit
api/@ohos.multimedia.avsession.d.ts
New KitClass name: global;
API declaration:
Differences: NA
Class name: global;
API declaration: kits@kit.AVSessionKit.d.ts
Differences: AVSessionKit
kits/@kit.AVSessionKit.d.ts

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apidiff-ArkGraphics2D

openharmony 鸿蒙 js-apidiff-MediaKit

openharmony 鸿蒙 js-apidiff-InputKit

openharmony 鸿蒙 js-apidiff-BasicServicesKit

openharmony 鸿蒙 js-apidiff-ConnectivityKit

openharmony 鸿蒙 js-apidiff-ArkWeb

openharmony 鸿蒙 js-apidiff-MultimodalAwarenessKit

openharmony 鸿蒙 js-apidiff-ArkData

openharmony 鸿蒙 js-apidiff-NA

openharmony 鸿蒙 js-apidiff-IPCKit

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/cGcsjtA4