sbIMediaInspector.idl
Go to the documentation of this file.
1 /*
2  *=BEGIN SONGBIRD GPL
3  *
4  * This file is part of the Songbird web player.
5  *
6  * Copyright(c) 2005-2009 POTI, Inc.
7  * http://www.songbirdnest.com
8  *
9  * This file may be licensed under the terms of of the
10  * GNU General Public License Version 2 (the ``GPL'').
11  *
12  * Software distributed under the License is distributed
13  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
14  * express or implied. See the GPL for the specific language
15  * governing rights and limitations.
16  *
17  * You should have received a copy of the GPL along with this
18  * program. If not, go to http://www.gnu.org/licenses/gpl.html
19  * or write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  *=END SONGBIRD GPL
23  */
24 
25 
26 #include "nsISupports.idl"
27 
28 interface sbIMediaItem;
29 interface nsIPropertyBag;
30 interface sbIMediaItem;
31 interface nsIArray;
32 
36 [scriptable, uuid(dc0128a1-1f41-4d25-b1ad-6b5d2d608745)]
42  readonly attribute AString containerType;
43 
47  readonly attribute nsIPropertyBag properties;
48 };
49 
50 %{C++
51 
52 #define SB_MEDIAFORMATCONTAINER_DESCRIPTION \
53  "Songbird Mediacore Media Format Container"
54 #define SB_MEDIAFORMATCONTAINER_CONTRACTID \
55  "@songbirdnest.com/Songbird/Mediacore/mediaformatcontainer;1"
56 #define SB_MEDIAFORMATCONTAINER_CLASSNAME \
57  "sbMediaFormatContainer"
58 #define SB_MEDIAFORMATCONTAINER_CID \
59  {0xcc3e80f3, 0x9dc4, 0x4f4f, {0xac, 0x17, 0xa7, 0x7e, 0xc3, 0xe6, 0x48, 0xc2}}
60 
61 %};
62 
66 [scriptable, uuid(1ebcb142-0eea-40ae-a9eb-af98e58460aa)]
71  readonly attribute AString videoType;
72 
76  readonly attribute long videoWidth;
77 
81  readonly attribute long videoHeight;
82 
88  void getVideoPAR(out unsigned long aNumerator,
89  out unsigned long aDenominator);
90 
96  void getVideoFrameRate(out unsigned long aNumerator,
97  out unsigned long aDenominator);
98 
102  readonly attribute long bitRate;
103 
107  readonly attribute nsIPropertyBag properties;
108 };
109 
110 %{C++
111 
112 #define SB_MEDIAFORMATVIDEO_DESCRIPTION \
113  "Songbird Mediacore Media Format Video"
114 #define SB_MEDIAFORMATVIDEO_CONTRACTID \
115  "@songbirdnest.com/Songbird/Mediacore/mediaformatvideo;1"
116 #define SB_MEDIAFORMATVIDEO_CLASSNAME \
117  "sbMediaFormatVideo"
118 #define SB_MEDIAFORMATVIDEO_CID \
119  {0x4b2257a8, 0xb60b, 0x4f5b, {0xab, 0xf1, 0x66, 0x75, 0x06, 0x30, 0x3e, 0x9f}}
120 
121 %};
122 
126 [scriptable, uuid(ad62aa97-e20e-4f50-a48b-b707eda1e00d)]
128 
132  readonly attribute AString audioType;
133 
137  readonly attribute long bitRate;
138 
142  readonly attribute long sampleRate;
143 
147  readonly attribute long channels;
148 
152  readonly attribute nsIPropertyBag properties;
153 };
154 
155 %{C++
156 
157 #define SB_MEDIAFORMATAUDIO_DESCRIPTION \
158  "Songbird Mediacore Media Format Audio"
159 #define SB_MEDIAFORMATAUDIO_CONTRACTID \
160  "@songbirdnest.com/Songbird/Mediacore/mediaformataudio;1"
161 #define SB_MEDIAFORMATAUDIO_CLASSNAME \
162  "sbMediaFormatAudio"
163 #define SB_MEDIAFORMATAUDIO_CID \
164  {0xd301cef6, 0x4200, 0x4aab, {0xaa, 0x08, 0x1a, 0x3e, 0xa2, 0x71, 0x68, 0xf7}}
165 
166 %};
167 
173 [scriptable, uuid(dbaeff49-72aa-4d94-b74f-0e3fb7990cba)]
175 {
179  readonly attribute sbIMediaFormatContainer container;
180 
185  readonly attribute sbIMediaFormatVideo videoStream;
186 
191  readonly attribute sbIMediaFormatAudio audioStream;
192 };
193 
194 %{C++
195 
196 #define SB_MEDIAFORMAT_DESCRIPTION \
197  "Songbird Mediacore Media Format"
198 #define SB_MEDIAFORMAT_CONTRACTID \
199  "@songbirdnest.com/Songbird/Mediacore/mediaformat;1"
200 #define SB_MEDIAFORMAT_CLASSNAME \
201  "sbMediaFormat"
202 #define SB_MEDIAFORMAT_CID \
203  {0x6f12ea87, 0x5c0e, 0x4a39, {0x88, 0x79, 0x52, 0xab, 0xfa, 0x47, 0x5c, 0x01}}
204 
205 %};
206 
211 [scriptable, uuid(0e9a88cd-ee46-4d3c-b6b0-8cd2dc3d65f2)]
213 {
223  sbIMediaFormat inspectMediaURI(in AString aURI);
224 
235 
246  void inspectMediaURIAsync(in AString aURI);
247 
258  void inspectMediaAsync(in sbIMediaItem aMediaItem);
259 
264  readonly attribute sbIMediaFormat mediaFormat;
265 };
266 
267 %{C++
268 
269 #define SB_MEDIAINSPECTOR_DESCRIPTION \
270  "Songbird Mediacore Media Inspector"
271 #define SB_MEDIAINSPECTOR_CONTRACTID \
272  "@songbirdnest.com/Songbird/Mediacore/mediainspector;1"
273 #define SB_MEDIAINSPECTOR_CLASSNAME \
274  "sbMediaInspector"
275 #define SB_MEDIAINSPECTOR_CID \
276  {0xd1c2b7d2, 0x7b3b, 0x40a5, {0xa1, 0x58, 0x4e, 0x8b, 0x90, 0x61, 0xb1, 0x0b}}
277 
278 %};
readonly attribute sbIMediaFormatAudio audioStream
readonly attribute AString videoType
readonly attribute long bitRate
sbIMediaFormat inspectMedia(in sbIMediaItem aMediaItem)
var uuid
readonly attribute sbIMediaFormatVideo videoStream
readonly attribute sbIMediaFormat mediaFormat
function C(H)
void getVideoPAR(out unsigned long aNumerator, out unsigned long aDenominator)
void inspectMediaAsync(in sbIMediaItem aMediaItem)
readonly attribute nsIPropertyBag properties
readonly attribute long sampleRate
readonly attribute nsIPropertyBag properties
readonly attribute long videoHeight
readonly attribute AString containerType
readonly attribute sbIMediaFormatContainer container
void inspectMediaURIAsync(in AString aURI)
readonly attribute long bitRate
readonly attribute long videoWidth
readonly attribute long channels
sbIMediaFormat inspectMediaURI(in AString aURI)
void getVideoFrameRate(out unsigned long aNumerator, out unsigned long aDenominator)
Interface that defines a single item of media in the system.
readonly attribute AString audioType
readonly attribute nsIPropertyBag properties