| Change Type | Old Version | New Version | d.ts File |
|---|---|---|---|
| Custom type change | Class name: avSession; API declaration: type AVControlCommandType = 'play' |'pause' |'stop' |'playNext' |'playPrevious' |'fastForward' |'rewind' |'seek' |'setSpeed' |'setLoopMode' |'toggleFavorite' |'playFromAssetId' |'answer' |'hangUp' |'toggleCallMute'; DIfferences: 'play' |'pause' |'stop' |'playNext' |'playPrevious' |'fastForward' |'rewind' |'seek' |'setSpeed' |'setLoopMode' |'toggleFavorite' |'playFromAssetId' |'answer' |'hangUp' |'toggleCallMute' | Class name: avSession; API declaration: type AVControlCommandType = 'play' |'pause' |'stop' |'playNext' |'playPrevious' |'fastForward' |'rewind' |'seek' |'setSpeed' |'setLoopMode' |'toggleFavorite' |'playFromAssetId' |'answer' |'hangUp' |'toggleCallMute' |'setTargetLoopMode'; DIfferences: 'play' |'pause' |'stop' |'playNext' |'playPrevious' |'fastForward' |'rewind' |'seek' |'setSpeed' |'setLoopMode' |'toggleFavorite' |'playFromAssetId' |'answer' |'hangUp' |'toggleCallMute' |'setTargetLoopMode' | api/@ohos.multimedia.avsession.d.ts |
| New API | NA | Class name: AVSession; API declaration: on(type: 'setTargetLoopMode', callback: Callback<LoopMode>): void; DIfferences: on(type: 'setTargetLoopMode', callback: Callback<LoopMode>): void; | api/@ohos.multimedia.avsession.d.ts |
| New API | NA | Class name: AVSession; API declaration: off(type: 'setTargetLoopMode', callback?: Callback<LoopMode>): void; DIfferences: off(type: 'setTargetLoopMode', callback?: Callback<LoopMode>): void; | api/@ohos.multimedia.avsession.d.ts |
| New API | NA | Class name: AVMetadata; API declaration: readonly bundleIcon?: image.PixelMap; DIfferences: readonly bundleIcon?: image.PixelMap; | api/@ohos.multimedia.avsession.d.ts |
| New API | NA | Class name: AVMetadata; API declaration: singleLyricText?: string; DIfferences: singleLyricText?: string; | api/@ohos.multimedia.avsession.d.ts |
| New API | NA | Class name: avSession; API declaration: type ExtraInfo = { [key: string]: Object; }; DIfferences: type ExtraInfo = { [key: string]: Object; }; | api/@ohos.multimedia.avsession.d.ts |
| New API | NA | Class name: AVSessionController; API declaration: getExtrasWithEvent(extraEvent: string): Promise<ExtraInfo>; DIfferences: getExtrasWithEvent(extraEvent: string): Promise<ExtraInfo>; | api/@ohos.multimedia.avsession.d.ts |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 js-apidiff-ArkGraphics2D
openharmony 鸿蒙 js-apidiff-ArkGraphics3D
openharmony 鸿蒙 js-apidiff-MediaKit
openharmony 鸿蒙 js-apidiff-InputKit
openharmony 鸿蒙 js-apidiff-BasicServicesKit
openharmony 鸿蒙 js-apidiff-ConnectivityKit
openharmony 鸿蒙 js-apidiff-ArkWeb
openharmony 鸿蒙 js-apidiff-MultimodalAwarenessKit