OLD | NEW |
| (Empty) |
1 [ | |
2 { | |
3 "namespace": "experimental.mediaGalleries", | |
4 "nodoc": true, | |
5 "types": [ | |
6 { | |
7 "id": "MediaGallery", | |
8 "type": "object", | |
9 "description": "A class representing a media gallery on the user's machi
nes." | |
10 }, | |
11 { | |
12 "id": "MediaFileMetadata", | |
13 "type": "object", | |
14 "description": "A class representing a metadata for a media file." | |
15 } | |
16 ], | |
17 "functions": [ | |
18 { | |
19 "name": "getMediaGalleries", | |
20 "type": "function", | |
21 "description": "Get the media galleries configured in this user agent.", | |
22 "parameters": [ | |
23 { | |
24 "type": "function", | |
25 "name": "callback", | |
26 "parameters": [ | |
27 { | |
28 "name": "galleries", | |
29 "type": "array", | |
30 "items": { "$ref": "MediaGallery"} | |
31 } | |
32 ] | |
33 } | |
34 ] | |
35 }, | |
36 { | |
37 "name": "openMediaGalleryManager", | |
38 "type": "function", | |
39 "description": "Open the user agent’s UI to configure galleries. Calling
openMediaGalleryManager will trigger a permission prompt for any origin that ha
s not yet been granted permission.", | |
40 "parameters": [] | |
41 }, | |
42 { | |
43 "name": "assembleMediaFile", | |
44 "type": "function", | |
45 "description": "Create a new MediaFile setting the metadata in the Blob
to the supplied values, overriding any existing metadata in the media file. If
user agent does not recognize the Blob as a supported file format, it will retu
rn null in the callback.", | |
46 "parameters": [ | |
47 { | |
48 "type": "object", | |
49 "description": "A Blob", | |
50 "name": "mediaFileContents" | |
51 }, | |
52 { | |
53 "$ref": "MediaFileMetadata", | |
54 "name": "metadata" | |
55 }, | |
56 { | |
57 "type": "function", | |
58 "name": "callback", | |
59 "parameters": [ | |
60 { | |
61 "name": "mediaFile", | |
62 "choices": [ | |
63 { "type": "Blob" }, | |
64 { "type": "null" } | |
65 ] | |
66 } | |
67 ] | |
68 } | |
69 ] | |
70 }, | |
71 { | |
72 "name": "parseMediaFileMetadata", | |
73 "type": "function", | |
74 "description": "Parse the metadata in a given Blob. If the user agent do
es not recognize the Blob as a supported file format, it will return null in the
callback.", | |
75 "parameters": [ | |
76 { | |
77 "type": "object", | |
78 "description": "A Blob", | |
79 "name": "mediaFile" | |
80 }, | |
81 { | |
82 "type": "function", | |
83 "name": "callback", | |
84 "parameters": [ | |
85 { | |
86 "name": "metadata", | |
87 "choices": [ | |
88 {"$ref": "MediaFileMetadata"}, | |
89 { "type": "null" } | |
90 ] | |
91 } | |
92 ] | |
93 } | |
94 ] | |
95 } | |
96 ] | |
97 } | |
98 ] | |
OLD | NEW |