Public Member Functions | |
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 prefixes to see if the URL contains them and is therefore media. | |
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 see if the URL contains them and is therefore video. | |
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 if the URL contains them and is therefore a playlist. | |
boolean | isValidWebSafePlaylistURL (in nsIURI aURL) |
Check to see if an url points to a playlist. | |
Public Attributes | |
readonly attribute nsIStringEnumerator | audioFileExtensions |
Returns all audio file extensions. | |
readonly attribute nsIStringEnumerator | videoFileExtensions |
Returns all video file extensions. | |
readonly attribute nsIStringEnumerator | playlistFileExtensions |
Returns all playlist file extensions. | |
readonly attribute nsIStringEnumerator | mediaFileExtensions |
Returns all media file extensions. Media file extensions are a combination of audio, video file extensions. |
Definition at line 33 of file sbIMediacoreTypeSniffer.idl.
boolean sbIMediacoreTypeSniffer::isValidMediaURL | ( | in nsIURI | aURL | ) |
Check to see if an url points to media content This checks for a number of known file extensions and prefixes to see if the URL contains them and is therefore media.
aURL | - the URL to check |
false if the URL does not point to media content
boolean sbIMediacoreTypeSniffer::isValidVideoURL | ( | in nsIURI | aURL | ) |
Check to see if an url points to video content This checks for a number of known file extensions to see if the URL contains them and is therefore video.
aURL | - the URL to check |
false if the URL does not point to video content
boolean sbIMediacoreTypeSniffer::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 if the URL contains them and is therefore a playlist.
aURL | - the URL to check |
false if the URL does not point a playlist
boolean sbIMediacoreTypeSniffer::isValidWebSafePlaylistURL | ( | in nsIURI | aURL | ) |
Check to see if an url points to a playlist.