34 #include "nsISupports.idl"
35 #include "nsIWebProgressListener.idl"
48 [scriptable,
uuid(a1fd4697-6459-473f-a660-1915f91cd469)]
109 [scriptable,
uuid(be2cd0d9-eed3-47f4-8a6e-c1e5b2bf508a)]
124 void read(in nsIFile aFile,
134 long vote(in AString aURL);
156 [
array, size_is (aMIMECount), retval] out wstring aMIMETypes);
164 [
array, size_is (aExtCount), retval] out wstring aExts);
174 [scriptable,
uuid(dee1ccec-b3d1-47cf-bbf0-c20222f84398)]
191 in AString aContentType,
192 in
boolean aAddDistinctOnly,
200 void read(in nsIFile aFile,
202 in AString aContentType,
203 in PRBool aAddDistinctOnly,
212 [
array, size_is (aMIMECount), retval] out wstring aMIMETypes);
220 [
array, size_is (aExtCount), retval] out wstring aExts);
long vote(in AString aURL)
void read(in nsIFile aFile, in sbIMediaList aMediaList, in PRBool aReplace, [optional] in sbIPlaylistFormatType aPlaylistFormatType)
An interface to be used to read playlists. It will try to find the proper sbIPlaylistReader subclass ...
attribute nsIURI originalURI
attribute AString state
expose the state of the web downloading (currently only set to "" or STATE_STOP)
attribute boolean addDistinctOnly
void supportedMIMETypes(out unsigned long aMIMECount, [array, size_is(aMIMECount), retval] out wstring aMIMETypes)
attribute nsIURI destinationURI
attribute sbIMediaList mediaList
long loadPlaylist(in nsIURI aURL, in sbIMediaList aMediaList, in AString aContentType, in boolean aAddDistinctOnly, in sbIPlaylistReaderListener aPlaylistReaderListener)
A listener interface for use with sbIPlaylistReader interfaces.
attribute boolean mediaMimetypesOnly
Only create playlists for media mime-types ( audio* or video* ), not text/html.
void read(in nsIFile aFile, in sbIMediaList aMediaList, in AString aContentType, in PRBool aAddDistinctOnly, [optional] in sbIPlaylistFormatType aPlaylistFormatType)
A subclass from which one may derive instances to read specific playlist types.
void supportedFileExtensions(out unsigned long aExtCount, [array, size_is(aExtCount), retval] out wstring aExts)
attribute nsIURI originalURI
void supportedMIMETypes(out PRUint32 aMIMECount, [array, size_is(aMIMECount), retval] out wstring aMIMETypes)
attribute nsIURI originalURI
void supportedFileExtensions(out PRUint32 aExtCount, [array, size_is(aExtCount), retval] out wstring aExts)
attribute boolean playWhenLoaded
Automatically start playing when stream is done loading.
attribute nsIObserver observer
Observer to get notified about the failure or success of creating a playlist.