Songbird / Development / Songbird Add-Ons API Documentation

sbIMediacoreTypeSniffer Interface Reference

List of all members.

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.

Detailed Description

Definition at line 33 of file sbIMediacoreTypeSniffer.idl.


Member Function Documentation

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.

Parameters:
aURL - the URL to check
Returns:
true if the URL points to media content

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.

Parameters:
aURL - the URL to check
Returns:
true if the URL points to video content

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.

Parameters:
aURL - the URL to check
Returns:
true if the URL points to a playlist

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.

Note:
This is a websafe version. It filters out html, php and other common extensions that the html playlist reader provides that aren't safe to use during web browsing.


The documentation for this interface was generated from the following file:
Generated on Tue Mar 10 14:29:00 2009 for Songbird by  doxygen 1.5.2