| Change Type | Old Version | New Version | d.ts File |
|---|---|---|---|
| API deprecated version change | Class name: AVSession; API declaration: on(type: 'playFromAssetId', callback: (assetId: number) => void): void; DIfferences: 20 | Class name: AVSession; API declaration: on(type: 'playFromAssetId', callback: (assetId: number) => void): void; DIfferences: NA | api/@ohos.multimedia.avsession.d.ts |
| API deprecated version change | Class name: AVSession; API declaration: off(type: 'playFromAssetId', callback?: (assetId: number) => void): void; DIfferences: 20 | Class name: AVSession; API declaration: off(type: 'playFromAssetId', callback?: (assetId: number) => void): void; DIfferences: NA | api/@ohos.multimedia.avsession.d.ts |
| Custom type change | Class name: avSession; API declaration: type AVControlCommandType = 'play' |'pause' |'stop' |'playNext' |'playPrevious' |'fastForward' |'rewind' |'seek' |'setSpeed' |'setLoopMode' |'toggleFavorite' |'playFromAssetId' |'playWithAssetId' |'answer' |'hangUp' |'toggleCallMute' |'setTargetLoopMode'; DIfferences: 'play' |'pause' |'stop' |'playNext' |'playPrevious' |'fastForward' |'rewind' |'seek' |'setSpeed' |'setLoopMode' |'toggleFavorite' |'playFromAssetId' |'playWithAssetId' |'answer' |'hangUp' |'toggleCallMute' |'setTargetLoopMode' | 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' | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: global; API declaration: export declare struct AVInputCastPicker DIfferences: export declare struct AVInputCastPicker | NA | api/@ohos.multimedia.avInputCastPicker.d.ets |
| Deleted API | Class name: AVInputCastPicker; API declaration: @Prop customPicker?: CustomBuilder; DIfferences: @Prop customPicker?: CustomBuilder; | NA | api/@ohos.multimedia.avInputCastPicker.d.ets |
| Deleted API | Class name: AVInputCastPicker; API declaration: onStateChange?: OnPickerStateCallback; DIfferences: onStateChange?: OnPickerStateCallback; | NA | api/@ohos.multimedia.avInputCastPicker.d.ets |
| Deleted API | Class name: global; API declaration: export type OnPickerStateCallback = (state: AVCastPickerState) => void; DIfferences: export type OnPickerStateCallback = (state: AVCastPickerState) => void; | NA | api/@ohos.multimedia.avInputCastPicker.d.ets |
| Deleted API | Class name: ProtocolType; API declaration: TYPE_CAST_PLUS_AUDIO = 8 DIfferences: TYPE_CAST_PLUS_AUDIO = 8 | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVSession; API declaration: on(type: 'playWithAssetId', callback: Callback<string>): void; DIfferences: on(type: 'playWithAssetId', callback: Callback<string>): void; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVSession; API declaration: off(type: 'playWithAssetId', callback?: Callback<string>): void; DIfferences: off(type: 'playWithAssetId', callback?: Callback<string>): void; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVSession; API declaration: on(type: 'setTargetLoopMode', callback: Callback<LoopMode>): void; DIfferences: on(type: 'setTargetLoopMode', callback: Callback<LoopMode>): void; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVSession; API declaration: off(type: 'setTargetLoopMode', callback?: Callback<LoopMode>): void; DIfferences: off(type: 'setTargetLoopMode', callback?: Callback<LoopMode>): void; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVSession; API declaration: on(type: 'customDataChange', callback: Callback<Record<string, Object>>): void; DIfferences: on(type: 'customDataChange', callback: Callback<Record<string, Object>>): void; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVSession; API declaration: off(type: 'customDataChange', callback?: Callback<Record<string, Object>>): void; DIfferences: off(type: 'customDataChange', callback?: Callback<Record<string, Object>>): void; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVSession; API declaration: sendCustomData(data: Record<string, Object>): Promise<void>; DIfferences: sendCustomData(data: Record<string, Object>): Promise<void>; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVCastController; API declaration: getSupportedDecoders(): Promise<Array<DecoderType>>; DIfferences: getSupportedDecoders(): Promise<Array<DecoderType>>; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVCastController; API declaration: getRecommendedResolutionLevel(decoderType: DecoderType): Promise<ResolutionLevel>; DIfferences: getRecommendedResolutionLevel(decoderType: DecoderType): Promise<ResolutionLevel>; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVCastController; API declaration: getSupportedHdrCapabilities(): Promise<Array<hdrCapability.HDRFormat>>; DIfferences: getSupportedHdrCapabilities(): Promise<Array<hdrCapability.HDRFormat>>; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVCastController; API declaration: getSupportedPlaySpeeds(): Promise<Array<number>>; DIfferences: getSupportedPlaySpeeds(): Promise<Array<number>>; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVCastController; API declaration: sendCustomData(data: Record<string, Object>): Promise<void>; DIfferences: sendCustomData(data: Record<string, Object>): Promise<void>; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVCastController; API declaration: on(type: 'customDataChange', callback: Callback<Record<string, Object>>): void; DIfferences: on(type: 'customDataChange', callback: Callback<Record<string, Object>>): void; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVCastController; API declaration: off(type: 'customDataChange', callback?: Callback<Record<string, Object>>): void; DIfferences: off(type: 'customDataChange', callback?: Callback<Record<string, Object>>): void; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: avSession; API declaration: interface AudioCapabilities DIfferences: interface AudioCapabilities | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AudioCapabilities; API declaration: readonly streamInfos: Array<audio.AudioStreamInfo>; DIfferences: readonly streamInfos: Array<audio.AudioStreamInfo>; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: avSession; API declaration: enum DecoderType DIfferences: enum DecoderType | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: DecoderType; API declaration: OH_AVCODEC_MIMETYPE_VIDEO_AVC = 'video/avc' DIfferences: OH_AVCODEC_MIMETYPE_VIDEO_AVC = 'video/avc' | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: DecoderType; API declaration: OH_AVCODEC_MIMETYPE_VIDEO_HEVC = 'video/hevc' DIfferences: OH_AVCODEC_MIMETYPE_VIDEO_HEVC = 'video/hevc' | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: DecoderType; API declaration: OH_AVCODEC_MIMETYPE_AUDIO_VIVID = 'audio/av3a' DIfferences: OH_AVCODEC_MIMETYPE_AUDIO_VIVID = 'audio/av3a' | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: avSession; API declaration: enum ResolutionLevel DIfferences: enum ResolutionLevel | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: ResolutionLevel; API declaration: RESOLUTION_480P = 0 DIfferences: RESOLUTION_480P = 0 | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: ResolutionLevel; API declaration: RESOLUTION_720P = 1 DIfferences: RESOLUTION_720P = 1 | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: ResolutionLevel; API declaration: RESOLUTION_1080P = 2 DIfferences: RESOLUTION_1080P = 2 | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: ResolutionLevel; API declaration: RESOLUTION_2K = 3 DIfferences: RESOLUTION_2K = 3 | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: ResolutionLevel; API declaration: RESOLUTION_4K = 4 DIfferences: RESOLUTION_4K = 4 | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVMetadata; API declaration: readonly bundleIcon?: image.PixelMap; DIfferences: readonly bundleIcon?: image.PixelMap; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVMetadata; API declaration: singleLyricText?: string; DIfferences: singleLyricText?: string; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVMediaDescription; API declaration: pcmSrc?: boolean; DIfferences: pcmSrc?: boolean; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVMediaDescription; API declaration: launchClientData?: string; DIfferences: launchClientData?: string; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: DeviceInfo; API declaration: supportedPullClients?: Array<number>; DIfferences: supportedPullClients?: Array<number>; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: DeviceInfo; API declaration: audioCapabilities?: AudioCapabilities; DIfferences: audioCapabilities?: AudioCapabilities; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: avSession; API declaration: type ExtraInfo = { [key: string]: Object; }; DIfferences: type ExtraInfo = { [key: string]: Object; }; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVSessionController; API declaration: getExtrasWithEvent(extraEvent: string): Promise<ExtraInfo>; DIfferences: getExtrasWithEvent(extraEvent: string): Promise<ExtraInfo>; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVSessionController; API declaration: sendCustomData(data: Record<string, Object>): Promise<void>; DIfferences: sendCustomData(data: Record<string, Object>): Promise<void>; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVSessionController; API declaration: on(type: 'customDataChange', callback: Callback<Record<string, Object>>): void; DIfferences: on(type: 'customDataChange', callback: Callback<Record<string, Object>>): void; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted API | Class name: AVSessionController; API declaration: off(type: 'customDataChange', callback?: Callback<Record<string, Object>>): void; DIfferences: off(type: 'customDataChange', callback?: Callback<Record<string, Object>>): void; | NA | api/@ohos.multimedia.avsession.d.ts |
| Deleted kit | Class name: global; API declaration: api@ohos.multimedia.avInputCastPicker.d.ets DIfferences: AVSessionKit | Class name: global; API declaration: DIfferences: NA | api/@ohos.multimedia.avInputCastPicker.d.ets |
| Deleted export symbol | Class name: global; API declaration: export type OnPickerStateCallback = (state: AVCastPickerState) => void; DIfferences: export type OnPickerStateCallback = (state: AVCastPickerState) => void; | Class name: global; API declaration: DIfferences: NA | api/@ohos.multimedia.avInputCastPicker.d.ets |
你可能感兴趣的鸿蒙文章
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