• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Multimedia Subsystem
2
3The table below lists the APIs changes of the multimedia subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ohos.multimedia.audio | VolumeEvent           | networkId: string;                                                                                                                                                                                                                                               | Added|
10| ohos.multimedia.audio | VolumeEvent           | volumeGroupId: number;                                                                                                                                                                                                                                           | Added|
11| ohos.multimedia.audio | AudioDeviceDescriptor | readonly volumeGroupId: number;                                                                                                                                                                                                                                  | Added|
12| ohos.multimedia.audio | AudioDeviceDescriptor | readonly interruptGroupId: number;                                                                                                                                                                                                                               | Added|
13| ohos.multimedia.audio | AudioDeviceDescriptor | readonly networkId: string;                                                                                                                                                                                                                                      | Added|
14| ohos.multimedia.audio | VolumeGroupInfo       | readonly type: ConnectType;                                                                                                                                                                                                                                      | Added|
15| ohos.multimedia.audio | VolumeGroupInfo       | readonly groupName: string;                                                                                                                                                                                                                                      | Added|
16| ohos.multimedia.audio | VolumeGroupInfo       | readonly mappingId: number;                                                                                                                                                                                                                                      | Added|
17| ohos.multimedia.audio | VolumeGroupInfo       | readonly groupId: number;                                                                                                                                                                                                                                        | Added|
18| ohos.multimedia.audio | VolumeGroupInfo       | readonly networkId: string;                                                                                                                                                                                                                                      | Added|
19| ohos.multimedia.audio | ConnectType           | CONNECT_TYPE_DISTRIBUTED = 2                                                                                                                                                                                                                                     | Added|
20| ohos.multimedia.audio | ConnectType           | CONNECT_TYPE_LOCAL = 1                                                                                                                                                                                                                                           | Added|
21| ohos.multimedia.audio | AudioGroupManager     | isMute(volumeType: AudioVolumeType, callback: AsyncCallback\<boolean>): void;<br>isMute(volumeType: AudioVolumeType): Promise\<boolean>;                                                                                                                        | Added|
22| ohos.multimedia.audio | AudioGroupManager     | mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback\<void>): void;<br>mute(volumeType: AudioVolumeType, mute: boolean): Promise\<void>;                                                                                                    | Added|
23| ohos.multimedia.audio | AudioGroupManager     | getMaxVolume(volumeType: AudioVolumeType, callback: AsyncCallback\<number>): void;<br>getMaxVolume(volumeType: AudioVolumeType): Promise\<number>;                                                                                                              | Added|
24| ohos.multimedia.audio | AudioGroupManager     | getMinVolume(volumeType: AudioVolumeType, callback: AsyncCallback\<number>): void;<br>getMinVolume(volumeType: AudioVolumeType): Promise\<number>;                                                                                                              | Added|
25| ohos.multimedia.audio | AudioGroupManager     | getVolume(volumeType: AudioVolumeType, callback: AsyncCallback\<number>): void;<br>getVolume(volumeType: AudioVolumeType): Promise\<number>;                                                                                                                    | Added|
26| ohos.multimedia.audio | AudioGroupManager     | setVolume(volumeType: AudioVolumeType, volume: number, callback: AsyncCallback\<void>): void;<br>setVolume(volumeType: AudioVolumeType, volume: number): Promise\<void>;                                                                                        | Added|
27| ohos.multimedia.audio | AudioRoutingManager   | selectOutputDeviceByFilter(filter: AudioRendererFilter, outputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback\<void>): void;<br>selectOutputDeviceByFilter(filter: AudioRendererFilter, outputAudioDevices: AudioDeviceDescriptors): Promise\<void>; | Added|
28| ohos.multimedia.audio | AudioRoutingManager   | selectOutputDevice(outputAudioDevices: AudioDeviceDescriptors, callback: AsyncCallback\<void>): void;<br>selectOutputDevice(outputAudioDevices: AudioDeviceDescriptors): Promise\<void>;                                                                        | Added|
29| ohos.multimedia.audio | AudioRoutingManager   | off(type: 'deviceChange', callback?: Callback\<DeviceChangeAction>): void;                                                                                                                                                                                       | Added|
30| ohos.multimedia.audio | AudioRoutingManager   | on(type: 'deviceChange', deviceFlag: DeviceFlag, callback: Callback\<DeviceChangeAction>): void;                                                                                                                                                                 | Added|
31| ohos.multimedia.audio | AudioRoutingManager   | getDevices(deviceFlag: DeviceFlag, callback: AsyncCallback\<AudioDeviceDescriptors>): void;<br>getDevices(deviceFlag: DeviceFlag): Promise\<AudioDeviceDescriptors>;                                                                                            | Added|
32| ohos.multimedia.audio | AudioManager          | getRoutingManager(callback: AsyncCallback\<AudioRoutingManager>): void;<br>getRoutingManager(): Promise\<AudioRoutingManager>;                                                                                                                                  | Added|
33| ohos.multimedia.audio | AudioManager          | getGroupManager(groupId: number, callback: AsyncCallback\<AudioGroupManager>): void;<br>getGroupManager(groupId: number): Promise\<AudioGroupManager>;                                                                                                          | Added|
34| ohos.multimedia.audio | AudioManager          | getVolumeGroups(networkId: string, callback: AsyncCallback\<VolumeGroupInfos>): void;<br>getVolumeGroups(networkId: string): Promise\<VolumeGroupInfos>;                                                                                                        | Added|
35| ohos.multimedia.audio | AudioRendererFilter   | rendererId?: number;                                                                                                                                                                                                                                             | Added|
36| ohos.multimedia.audio | AudioRendererFilter   | rendererInfo?: AudioRendererInfo;                                                                                                                                                                                                                                | Added|
37| ohos.multimedia.audio | AudioRendererFilter   | uid: number;                                                                                                                                                                                                                                                     | Added|
38| ohos.multimedia.audio | DeviceType            | DEFAULT = 1000                                                                                                                                                                                                                                                   | Added|
39| ohos.multimedia.audio | DeviceFlag            | ALL_DISTRIBUTED_DEVICES_FLAG = 12                                                                                                                                                                                                                                | Added|
40| ohos.multimedia.audio | DeviceFlag            | DISTRIBUTED_INPUT_DEVICES_FLAG = 8                                                                                                                                                                                                                               | Added|
41| ohos.multimedia.audio | DeviceFlag            | DISTRIBUTED_OUTPUT_DEVICES_FLAG = 4                                                                                                                                                                                                                              | Added|
42| ohos.multimedia.audio | DeviceFlag            | NONE_DEVICES_FLAG = 0                                                                                                                                                                                                                                            | Added|
43| ohos.multimedia.audio | audio                 | const LOCAL_NETWORK_ID: string;                                                                                                                                                                                                                                  | Added|
44| ohos.multimedia.image | PixelMapFormat        | BGRA_8888 = 4                                                                                                                                                                                                                                                    | Added|
45| ohos.multimedia.media | VideoPlayer           | on(type: 'availableBitratesCollect', callback: (bitrates: Array\<number>) => void): void;                                                                                                                                                                        | Added|
46| ohos.multimedia.media | VideoPlayer | on(type: 'availableBitratesCollected', callback: (bitrates: Array\<number>) => void): void | Deleted|
47| ohos.multimedia.mediaLibrary | DeviceType        | TYPE_TV                                                                                                                                                                                                                               | Deprecated|
48| ohos.multimedia.mediaLibrary | DeviceType        | TYPE_CAR                                                                                                                                                                                                                              | Deprecated|
49| ohos.multimedia.mediaLibrary | DeviceType        | TYPE_WATCH                                                                                                                                                                                                                            | Deprecated|
50| ohos.multimedia.mediaLibrary | DeviceType        | TYPE_TABLET                                                                                                                                                                                                                           | Deprecated|
51| ohos.multimedia.mediaLibrary | DeviceType        | TYPE_PHONE                                                                                                                                                                                                                            | Deprecated|
52| ohos.multimedia.mediaLibrary | DeviceType        | TYPE_LAPTOP                                                                                                                                                                                                                           | Deprecated|
53| ohos.multimedia.mediaLibrary | DeviceType        | TYPE_UNKNOWN = 0                                                                                                                                                                                                                      | Deprecated|
54| ohos.multimedia.mediaLibrary | PeerInfo          | readonly isOnline: boolean;                                                                                                                                                                                                           | Deprecated|
55| ohos.multimedia.mediaLibrary | PeerInfo          | readonly deviceType: DeviceType;                                                                                                                                                                                                      | Deprecated|
56| ohos.multimedia.mediaLibrary | PeerInfo          | readonly networkId: string;                                                                                                                                                                                                           | Deprecated|
57| ohos.multimedia.mediaLibrary | PeerInfo          | readonly deviceName: string;                                                                                                                                                                                                          | Deprecated|
58| ohos.multimedia.mediaLibrary | Size              | height: number;                                                                                                                                                                                                                       | Deprecated|
59| ohos.multimedia.mediaLibrary | Size              | width: number;                                                                                                                                                                                                                        | Deprecated|
60| ohos.multimedia.mediaLibrary | MediaLibrary      | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>;                                                                                                                                                         | Deprecated|
61| ohos.multimedia.mediaLibrary | MediaLibrary      | getAllPeers(callback: AsyncCallback\<Array\<PeerInfo>>): void;<br>getAllPeers(): Promise\<Array\<PeerInfo>>;                                                                                                                         | Deprecated|
62| ohos.multimedia.mediaLibrary | MediaLibrary      | getActivePeers(callback: AsyncCallback\<Array\<PeerInfo>>): void;<br>getActivePeers(): Promise\<Array\<PeerInfo>>;                                                                                                                   | Deprecated|
63| ohos.multimedia.mediaLibrary | MediaLibrary      | getAlbums(options: MediaFetchOptions, callback: AsyncCallback\<Array\<Album>>): void;<br>getAlbums(options: MediaFetchOptions): Promise\<Array\<Album>>;                                                                             | Deprecated|
64| ohos.multimedia.mediaLibrary | MediaLibrary      | deleteAsset(uri: string, callback: AsyncCallback\<void>): void;<br>deleteAsset(uri: string): Promise\<void>;                                                                                                                         | Deprecated|
65| ohos.multimedia.mediaLibrary | MediaLibrary      | createAsset(mediaType: MediaType, displayName: string, relativePath: string, callback: AsyncCallback\<FileAsset>): void;<br>createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promise\<FileAsset>;       | Deprecated|
66| ohos.multimedia.mediaLibrary | MediaLibrary      | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void;                                                                                  | Deprecated|
67| ohos.multimedia.mediaLibrary | MediaLibrary      | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void;                                                                                  | Deprecated|
68| ohos.multimedia.mediaLibrary | MediaLibrary      | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void;                                                                                  | Deprecated|
69| ohos.multimedia.mediaLibrary | MediaLibrary      | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void;                                                                                  | Deprecated|
70| ohos.multimedia.mediaLibrary | MediaLibrary      | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void;                                                                                  | Deprecated|
71| ohos.multimedia.mediaLibrary | MediaLibrary      | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void;                                                                                  | Deprecated|
72| ohos.multimedia.mediaLibrary | MediaLibrary      | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void;                                                                                  | Deprecated|
73| ohos.multimedia.mediaLibrary | MediaLibrary      | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void;                                                                                    | Deprecated|
74| ohos.multimedia.mediaLibrary | MediaLibrary      | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void;                                                                                    | Deprecated|
75| ohos.multimedia.mediaLibrary | MediaLibrary      | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void;                                                                                    | Deprecated|
76| ohos.multimedia.mediaLibrary | MediaLibrary      | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void;                                                                                    | Deprecated|
77| ohos.multimedia.mediaLibrary | MediaLibrary      | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void;                                                                                    | Deprecated|
78| ohos.multimedia.mediaLibrary | MediaLibrary      | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void;                                                                                    | Deprecated|
79| ohos.multimedia.mediaLibrary | MediaLibrary      | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void;                                                                                    | Deprecated|
80| ohos.multimedia.mediaLibrary | MediaLibrary      | getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\<FetchFileResult>): void;<br>getFileAssets(options: MediaFetchOptions): Promise\<FetchFileResult>;                                                                 | Deprecated|
81| ohos.multimedia.mediaLibrary | MediaLibrary      | getPublicDirectory(type: DirectoryType, callback: AsyncCallback\<string>): void;<br>getPublicDirectory(type: DirectoryType): Promise\<string>;                                                                                       | Deprecated|
82| ohos.multimedia.mediaLibrary | DirectoryType     | DIR_DOWNLOAD                                                                                                                                                                                                                          | Deprecated|
83| ohos.multimedia.mediaLibrary | DirectoryType     | DIR_DOCUMENTS                                                                                                                                                                                                                         | Deprecated|
84| ohos.multimedia.mediaLibrary | DirectoryType     | DIR_AUDIO                                                                                                                                                                                                                             | Deprecated|
85| ohos.multimedia.mediaLibrary | DirectoryType     | DIR_IMAGE                                                                                                                                                                                                                             | Deprecated|
86| ohos.multimedia.mediaLibrary | DirectoryType     | DIR_VIDEO                                                                                                                                                                                                                             | Deprecated|
87| ohos.multimedia.mediaLibrary | DirectoryType     | DIR_CAMERA = 0                                                                                                                                                                                                                        | Deprecated|
88| ohos.multimedia.mediaLibrary | Album             | getFileAssets(callback: AsyncCallback\<FetchFileResult>): void;<br>getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\<FetchFileResult>): void;<br>getFileAssets(options?: MediaFetchOptions): Promise\<FetchFileResult>; | Deprecated|
89| ohos.multimedia.mediaLibrary | Album             | commitModify(callback: AsyncCallback\<void>): void;<br>commitModify(): Promise\<void>;                                                                                                                                               | Deprecated|
90| ohos.multimedia.mediaLibrary | Album             | readonly coverUri: string;                                                                                                                                                                                                            | Deprecated|
91| ohos.multimedia.mediaLibrary | Album             | readonly relativePath: string;                                                                                                                                                                                                        | Deprecated|
92| ohos.multimedia.mediaLibrary | Album             | readonly count: number;                                                                                                                                                                                                               | Deprecated|
93| ohos.multimedia.mediaLibrary | Album             | readonly dateModified: number;                                                                                                                                                                                                        | Deprecated|
94| ohos.multimedia.mediaLibrary | Album             | readonly albumUri: string;                                                                                                                                                                                                            | Deprecated|
95| ohos.multimedia.mediaLibrary | Album             | albumName: string;                                                                                                                                                                                                                    | Deprecated|
96| ohos.multimedia.mediaLibrary | Album             | readonly albumId: number;                                                                                                                                                                                                             | Deprecated|
97| ohos.multimedia.mediaLibrary | FetchFileResult   | getAllObject(callback: AsyncCallback\<Array\<FileAsset>>): void;<br>getAllObject(): Promise\<Array\<FileAsset>>;                                                                                                                     | Deprecated|
98| ohos.multimedia.mediaLibrary | FetchFileResult   | getPositionObject(index: number, callback: AsyncCallback\<FileAsset>): void;<br>getPositionObject(index: number): Promise\<FileAsset>;                                                                                               | Deprecated|
99| ohos.multimedia.mediaLibrary | FetchFileResult   | getLastObject(callback: AsyncCallback\<FileAsset>): void;<br>getLastObject(): Promise\<FileAsset>;                                                                                                                                   | Deprecated|
100| ohos.multimedia.mediaLibrary | FetchFileResult   | getNextObject(callback: AsyncCallback\<FileAsset>): void;<br>getNextObject(): Promise\<FileAsset>;                                                                                                                                   | Deprecated|
101| ohos.multimedia.mediaLibrary | FetchFileResult   | getFirstObject(callback: AsyncCallback\<FileAsset>): void;<br>getFirstObject(): Promise\<FileAsset>;                                                                                                                                 | Deprecated|
102| ohos.multimedia.mediaLibrary | FetchFileResult   | close(): void;                                                                                                                                                                                                                        | Deprecated|
103| ohos.multimedia.mediaLibrary | FetchFileResult   | isAfterLast(): boolean;                                                                                                                                                                                                               | Deprecated|
104| ohos.multimedia.mediaLibrary | FetchFileResult   | getCount(): number;                                                                                                                                                                                                                   | Deprecated|
105| ohos.multimedia.mediaLibrary | MediaFetchOptions | extendArgs?: string;                                                                                                                                                                                                                  | Deprecated|
106| ohos.multimedia.mediaLibrary | MediaFetchOptions | networkId?: string;                                                                                                                                                                                                                   | Deprecated|
107| ohos.multimedia.mediaLibrary | MediaFetchOptions | uri?: string;                                                                                                                                                                                                                         | Deprecated|
108| ohos.multimedia.mediaLibrary | MediaFetchOptions | order?: string;                                                                                                                                                                                                                       | Deprecated|
109| ohos.multimedia.mediaLibrary | MediaFetchOptions | selectionArgs: Array\<string>;                                                                                                                                                                                                        | Deprecated|
110| ohos.multimedia.mediaLibrary | MediaFetchOptions | selections: string;                                                                                                                                                                                                                   | Deprecated|
111| ohos.multimedia.mediaLibrary | FileKey           | ALBUM_NAME = "bucket_display_name"                                                                                                                                                                                                    | Deprecated|
112| ohos.multimedia.mediaLibrary | FileKey           | ALBUM_ID = "bucket_id"                                                                                                                                                                                                                | Deprecated|
113| ohos.multimedia.mediaLibrary | FileKey           | ORIENTATION = "orientation"                                                                                                                                                                                                           | Deprecated|
114| ohos.multimedia.mediaLibrary | FileKey           | HEIGHT = "height"                                                                                                                                                                                                                     | Deprecated|
115| ohos.multimedia.mediaLibrary | FileKey           | WIDTH = "width"                                                                                                                                                                                                                       | Deprecated|
116| ohos.multimedia.mediaLibrary | FileKey           | DURATION = "duration"                                                                                                                                                                                                                 | Deprecated|
117| ohos.multimedia.mediaLibrary | FileKey           | AUDIOALBUM = "audio_album"                                                                                                                                                                                                            | Deprecated|
118| ohos.multimedia.mediaLibrary | FileKey           | ARTIST = "artist"                                                                                                                                                                                                                     | Deprecated|
119| ohos.multimedia.mediaLibrary | FileKey           | TITLE = "title"                                                                                                                                                                                                                       | Deprecated|
120| ohos.multimedia.mediaLibrary | FileKey           | DATE_TAKEN = "date_taken"                                                                                                                                                                                                             | Deprecated|
121| ohos.multimedia.mediaLibrary | FileKey           | DATE_MODIFIED = "date_modified"                                                                                                                                                                                                       | Deprecated|
122| ohos.multimedia.mediaLibrary | FileKey           | DATE_ADDED = "date_added"                                                                                                                                                                                                             | Deprecated|
123| ohos.multimedia.mediaLibrary | FileKey           | SIZE = "size"                                                                                                                                                                                                                         | Deprecated|
124| ohos.multimedia.mediaLibrary | FileKey           | MEDIA_TYPE = "media_type"                                                                                                                                                                                                             | Deprecated|
125| ohos.multimedia.mediaLibrary | FileKey           | MIME_TYPE = "mime_type"                                                                                                                                                                                                               | Deprecated|
126| ohos.multimedia.mediaLibrary | FileKey           | PARENT = "parent"                                                                                                                                                                                                                     | Deprecated|
127| ohos.multimedia.mediaLibrary | FileKey           | DISPLAY_NAME = "display_name"                                                                                                                                                                                                         | Deprecated|
128| ohos.multimedia.mediaLibrary | FileKey           | RELATIVE_PATH = "relative_path"                                                                                                                                                                                                       | Deprecated|
129| ohos.multimedia.mediaLibrary | FileKey           | ID = "file_id"                                                                                                                                                                                                                        | Deprecated|
130| ohos.multimedia.mediaLibrary | FileAsset         | isTrash(callback: AsyncCallback\<boolean>): void;<br>isTrash():Promise\<boolean>;                                                                                                                                                    | Deprecated|
131| ohos.multimedia.mediaLibrary | FileAsset         | trash(isTrash: boolean, callback: AsyncCallback\<void>): void;<br>trash(isTrash: boolean): Promise\<void>;                                                                                                                           | Deprecated|
132| ohos.multimedia.mediaLibrary | FileAsset         | isFavorite(callback: AsyncCallback\<boolean>): void;<br>isFavorite():Promise\<boolean>;                                                                                                                                              | Deprecated|
133| ohos.multimedia.mediaLibrary | FileAsset         | favorite(isFavorite: boolean, callback: AsyncCallback\<void>): void;<br>favorite(isFavorite: boolean): Promise\<void>;                                                                                                               | Deprecated|
134| ohos.multimedia.mediaLibrary | FileAsset         | getThumbnail(callback: AsyncCallback\<image.PixelMap>): void;<br>getThumbnail(size: Size, callback: AsyncCallback\<image.PixelMap>): void;<br>getThumbnail(size?: Size): Promise\<image.PixelMap>;                                  | Deprecated|
135| ohos.multimedia.mediaLibrary | FileAsset         | close(fd: number, callback: AsyncCallback\<void>): void;<br>close(fd: number): Promise\<void>;                                                                                                                                       | Deprecated|
136| ohos.multimedia.mediaLibrary | FileAsset         | open(mode: string, callback: AsyncCallback\<number>): void;<br>open(mode: string): Promise\<number>;                                                                                                                                 | Deprecated|
137| ohos.multimedia.mediaLibrary | FileAsset         | commitModify(callback: AsyncCallback\<void>): void;<br>commitModify(): Promise\<void>;                                                                                                                                               | Deprecated|
138| ohos.multimedia.mediaLibrary | FileAsset         | isDirectory(callback: AsyncCallback\<boolean>): void;<br>isDirectory():Promise\<boolean>;                                                                                                                                            | Deprecated|
139| ohos.multimedia.mediaLibrary | FileAsset         | readonly albumName: string;                                                                                                                                                                                                           | Deprecated|
140| ohos.multimedia.mediaLibrary | FileAsset         | readonly albumUri: string;                                                                                                                                                                                                            | Deprecated|
141| ohos.multimedia.mediaLibrary | FileAsset         | readonly albumId: number;                                                                                                                                                                                                             | Deprecated|
142| ohos.multimedia.mediaLibrary | FileAsset         | readonly duration: number;                                                                                                                                                                                                            | Deprecated|
143| ohos.multimedia.mediaLibrary | FileAsset         | orientation: number;                                                                                                                                                                                                                  | Deprecated|
144| ohos.multimedia.mediaLibrary | FileAsset         | readonly height: number;                                                                                                                                                                                                              | Deprecated|
145| ohos.multimedia.mediaLibrary | FileAsset         | readonly width: number;                                                                                                                                                                                                               | Deprecated|
146| ohos.multimedia.mediaLibrary | FileAsset         | readonly audioAlbum: string;                                                                                                                                                                                                          | Deprecated|
147| ohos.multimedia.mediaLibrary | FileAsset         | readonly artist: string;                                                                                                                                                                                                              | Deprecated|
148| ohos.multimedia.mediaLibrary | FileAsset         | readonly dateTaken: number;                                                                                                                                                                                                           | Deprecated|
149| ohos.multimedia.mediaLibrary | FileAsset         | readonly dateModified: number;                                                                                                                                                                                                        | Deprecated|
150| ohos.multimedia.mediaLibrary | FileAsset         | readonly dateAdded: number;                                                                                                                                                                                                           | Deprecated|
151| ohos.multimedia.mediaLibrary | FileAsset         | readonly size: number;                                                                                                                                                                                                                | Deprecated|
152| ohos.multimedia.mediaLibrary | FileAsset         | readonly parent: number;                                                                                                                                                                                                              | Deprecated|
153| ohos.multimedia.mediaLibrary | FileAsset         | relativePath: string;                                                                                                                                                                                                                 | Deprecated|
154| ohos.multimedia.mediaLibrary | FileAsset         | title: string;                                                                                                                                                                                                                        | Deprecated|
155| ohos.multimedia.mediaLibrary | FileAsset         | displayName: string;                                                                                                                                                                                                                  | Deprecated|
156| ohos.multimedia.mediaLibrary | FileAsset         | readonly mediaType: MediaType;                                                                                                                                                                                                        | Deprecated|
157| ohos.multimedia.mediaLibrary | FileAsset         | readonly mimeType: string;                                                                                                                                                                                                            | Deprecated|
158| ohos.multimedia.mediaLibrary | FileAsset         | readonly uri: string;                                                                                                                                                                                                                 | Deprecated|
159| ohos.multimedia.mediaLibrary | FileAsset         | readonly id: number;                                                                                                                                                                                                                  | Deprecated|
160| ohos.multimedia.mediaLibrary | MediaType         | AUDIO                                                                                                                                                                                                                                 | Deprecated|
161| ohos.multimedia.mediaLibrary | MediaType         | VIDEO                                                                                                                                                                                                                                 | Deprecated|
162| ohos.multimedia.mediaLibrary | MediaType         | IMAGE                                                                                                                                                                                                                                 | Deprecated|
163| ohos.multimedia.mediaLibrary | MediaType         | FILE = 0                                                                                                                                                                                                                              | Deprecated|
164| ohos.multimedia.mediaLibrary | mediaLibrary      | getMediaLibrary(): MediaLibrary;<br>getMediaLibrary(context: Context): MediaLibrary;                                                                                                                               | Deprecated|
165