Lines Matching refs:mediaLibrary
3 ## cl.file.1 Change of Compatibility of mediaLibrary APIs
5 The compatibility of some [mediaLibrary](../../../application-dev/reference/apis/js-apis-medialibra…
7 1. Due to the change of the directory structure of the file subsystem, the **mediaLibrary** APIs wi…
9 - Before the change, the following directories can be accessed by using **mediaLibrary** APIs:
13 - After the change, the following directories can be accessed by using **mediaLibrary** APIs:
21 For applications developed based on earlier versions, check for the **mediaLibrary** APIs called to…
54 …ype** in **getPublicDirectory()** is set to **mediaLibrary.DirectoryType.DIR_DOCUMENTS** or **medi…
62 …e** does not support **mediaLibrary.DirectoryType.DIR_DOCUMENTS** or **mediaLibrary.DirectoryType.…
70 Do not use the **mediaLibrary** APIs to access or operate the files in the **Documents** and **Down…
76 Before the change, the **mediaLibrary** APIs are used to edit files in the **Documents** and **Down…
78 1. Call **getMediaLibrary** to obtain a **mediaLibrary** instance.
85 8. Call **release** to release the **mediaLibrary** instance.
90 import mediaLibrary from '@ohos.multimedia.mediaLibrary';
96 let media = mediaLibrary.getMediaLibrary(context);
97 let fileKeyObj = mediaLibrary.FileKey;
98 let imageType = mediaLibrary.MediaType.IMAGE;
106 console.info('mediaLibrary fileAsset displayName: ' + fileAsset.displayName);
108 console.info('mediaLibrary fileAsset open fd: ' + fd);
115 console.error('mediaLibrary fail, err: ' + err);
165 Before the change, use the **mediaLibrary** APIs to create a file in the **Documents** and **Downlo…
167 1. Call **getMediaLibrary** to obtain a **mediaLibrary** instance.
173 7. Call **release** to release the **mediaLibrary** instance.
178 import mediaLibrary from '@ohos.multimedia.mediaLibrary';
184 let media = mediaLibrary.getMediaLibrary(context);
185 let mediaType = mediaLibrary.MediaType.FILE;
186 let DIR_DOWNLOAD = mediaLibrary.DirectoryType.DIR_DOWNLOAD;
189 console.info('mediaLibrary fileAsset displayName: ' + fileAsset.displayName);
191 console.info('mediaLibrary fileAsset open fd: ' + fd);
197 console.error('mediaLibrary fail, err: ' + err);