sbIMediacoreTypeSniffer.idl
Go to the documentation of this file.
1 
27 #include "nsISupports.idl"
28 
29 interface nsIURI;
30 interface nsIStringEnumerator;
31 
32 [scriptable, uuid(4c4cebf8-1dd2-11b2-9ce7-bf7e9e3a2b69)]
34 {
39 
44 
49 
54 
60 
66 
76  boolean isValidMediaURL(in nsIURI aURL);
77 
87  boolean isValidAudioURL(in nsIURI aURL);
88 
98  boolean isValidVideoURL(in nsIURI aURL);
99 
109  boolean isValidImageURL(in nsIURI aURL);
110 
120  boolean isValidPlaylistURL(in nsIURI aURL);
121 
128  boolean isValidWebSafePlaylistURL(in nsIURI aURL);
129 };
130 
131 %{C++
132 
133 #define SB_MEDIACORETYPESNIFFER_DESCRIPTION \
134  "Songbird Mediacore Type Sniffer"
135 #define SB_MEDIACORETYPESNIFFER_CONTRACTID \
136  "@songbirdnest.com/Songbird/Mediacore/TypeSniffer;1"
137 #define SB_MEDIACORETYPESNIFFER_CLASSNAME \
138  "sbMediacoreTypeSniffer"
139 #define SB_MEDIACORETYPESNIFFER_CID \
140 { /* {eba99588-f058-4b6e-9706-9f9bb293dac0} */ \
141  0xeba99588, \
142  0xf058, \
143  0x4b6e, \
144  { 0x97, 0x6, 0x9f, 0x9b, 0xb2, 0x93, 0xda, 0xc0 } \
145 }
146 
147 %}
boolean isValidWebSafePlaylistURL(in nsIURI aURL)
Check to see if an url points to a playlist.
boolean isValidPlaylistURL(in nsIURI aURL)
Check to see if an url points to a playlist This checks for a number of known file extensions to see ...
boolean isValidAudioURL(in nsIURI aURL)
Check to see if an url points to audio content This checks for a number of known file extensions to s...
readonly attribute nsIStringEnumerator audioFileExtensions
Returns all audio file extensions.
var uuid
function C(H)
readonly attribute nsIStringEnumerator playlistFileExtensions
Returns all playlist file extensions.
readonly attribute nsIStringEnumerator videoFileExtensions
Returns all video file extensions.
boolean isValidImageURL(in nsIURI aURL)
Check to see if an url points to image content This checks for a number of known file extensions to s...
readonly attribute nsIStringEnumerator unsupportedVideoFileExtensions
Returns all of the unsupported video file extensions for the mediacore.
boolean isValidMediaURL(in nsIURI aURL)
Check to see if an url points to media content This checks for a number of known file extensions and ...
readonly attribute nsIStringEnumerator mediaFileExtensions
Returns all media file extensions. Media file extensions are a combination of audio, video file extensions.
boolean isValidVideoURL(in nsIURI aURL)
Check to see if an url points to video content This checks for a number of known file extensions to s...
readonly attribute nsIStringEnumerator imageFileExtensions
Returns all image file extensions.