sbIMediacoreTypeSniffer Interface Reference

import"sbIMediacoreTypeSniffer.idl";

Inheritance diagram for sbIMediacoreTypeSniffer:
[legend]
Collaboration diagram for sbIMediacoreTypeSniffer:
[legend]

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. More...
 
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 see if the URL contains them and is therefore audio. More...
 
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. More...
 
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 see if the URL contains them and is therefore image. More...
 
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. More...
 
boolean isValidWebSafePlaylistURL (in nsIURI aURL)
 Check to see if an url points to a playlist. More...
 

Public Attributes

readonly attribute
nsIStringEnumerator 
audioFileExtensions
 Returns all audio file extensions. More...
 
readonly attribute
nsIStringEnumerator 
videoFileExtensions
 Returns all video file extensions. More...
 
readonly attribute
nsIStringEnumerator 
playlistFileExtensions
 Returns all playlist file extensions. More...
 
readonly attribute
nsIStringEnumerator 
imageFileExtensions
 Returns all image file extensions. More...
 
readonly attribute
nsIStringEnumerator 
mediaFileExtensions
 Returns all media file extensions. Media file extensions are a combination of audio, video file extensions. More...
 
readonly attribute
nsIStringEnumerator 
unsupportedVideoFileExtensions
 Returns all of the unsupported video file extensions for the mediacore. More...
 

Detailed Description

Definition at line 33 of file sbIMediacoreTypeSniffer.idl.

Member Function Documentation

boolean sbIMediacoreTypeSniffer::isValidAudioURL ( in nsIURI  aURL)

Check to see if an url points to audio content This checks for a number of known file extensions to see if the URL contains them and is therefore audio.

Parameters
aURL- the URL to check
Returns
true if the URL points to audio content
false if the URL does not point to audio content
boolean sbIMediacoreTypeSniffer::isValidImageURL ( in nsIURI  aURL)

Check to see if an url points to image content This checks for a number of known file extensions to see if the URL contains them and is therefore image.

Parameters
aURL- the URL to check
Returns
true if the URL points to image content
false if the URL does not point to image content
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::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::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::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.

Member Data Documentation

readonly attribute nsIStringEnumerator sbIMediacoreTypeSniffer::audioFileExtensions

Returns all audio file extensions.

Definition at line 38 of file sbIMediacoreTypeSniffer.idl.

readonly attribute nsIStringEnumerator sbIMediacoreTypeSniffer::imageFileExtensions

Returns all image file extensions.

Definition at line 53 of file sbIMediacoreTypeSniffer.idl.

readonly attribute nsIStringEnumerator sbIMediacoreTypeSniffer::mediaFileExtensions

Returns all media file extensions. Media file extensions are a combination of audio, video file extensions.

Definition at line 59 of file sbIMediacoreTypeSniffer.idl.

readonly attribute nsIStringEnumerator sbIMediacoreTypeSniffer::playlistFileExtensions

Returns all playlist file extensions.

Definition at line 48 of file sbIMediacoreTypeSniffer.idl.

readonly attribute nsIStringEnumerator sbIMediacoreTypeSniffer::unsupportedVideoFileExtensions

Returns all of the unsupported video file extensions for the mediacore.

Definition at line 65 of file sbIMediacoreTypeSniffer.idl.

readonly attribute nsIStringEnumerator sbIMediacoreTypeSniffer::videoFileExtensions

Returns all video file extensions.

Definition at line 43 of file sbIMediacoreTypeSniffer.idl.


The documentation for this interface was generated from the following file: