harmony 鸿蒙Media Subsystem ChangeLog

  • 2023-10-30
  • 浏览 (242)

Media Subsystem ChangeLog

cl.media.1 Playback APIs Changed

The APIs related to audio track switching are deleted.

Change Impact

These APIs are unavailable.

Key API/Component Changes

The deleted APIs are as follows:

Class API
Media.Core MD_KEY_LANGUAGE
Media.AVPlayer selectTrack(index: number): void
Media.AVPlayer deselectTrack(index: number): void
Media.AVPlayer getCurrentTrack(trackType: MediaType, callback: AsyncCallback<number>): void
Media.AVPlayer getCurrentTrack(trackType: MediaType): Promise<number>
Media.AVPlayer on(type: ‘trackChange’, callback: (index: number, isSelect: boolean) => void): void;
Media.AVPlayer off(type: ‘trackChange’): void

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Arkui Subsystem State Management Changelog

harmony 鸿蒙ArkUI Subsystem Changelog

harmony 鸿蒙Bundle Management Subsystem Changelog

harmony 鸿蒙Distributed Data Subsystem Changelog

harmony 鸿蒙Multimedia Subsystem Changelog

0  赞