OLD | NEW |
(Empty) | |
| 1 <p> |
| 2 The media galleries API allows you to access media files (images, |
| 3 video, audio) from the user's local disks (with the user's consent). |
| 4 </p> |
| 5 |
| 6 <p> |
| 7 Using the API, you can prompt the user for permission to access the media |
| 8 galleries. The permission dialog will contain common media locations for |
| 9 the platform and will allow the user to add additional locations. From those |
| 10 locations, only media files will be present in the file system objects. |
| 11 </P> |
| 12 |
| 13 <h2 id="manifest">Manifest</h2> |
| 14 <p>You must declare the type of access to the media gallery you require |
| 15 in your extension's manifest to use the API. Currently only the |
| 16 "mediaGalleriesRead" permission is allowed. This permission does not |
| 17 currently trigger an install time permission prompt because it requires |
| 18 the user to grant permission at runtime.</p> |
| 19 |
| 20 <p> |
| 21 You may also specify the "mediaGalleriesAllGalleries" permission to get |
| 22 access to all auto-detected media galleries on the user's computer. This |
| 23 permission displays an install time prompt indicating that the extension |
| 24 will have access to all of the user's media files. |
| 25 </p> |
OLD | NEW |