Class Index | File Index

Classes


Class media.file

A wrapper class used to provide all the data necessary to control an individual file within this media player.
Defined in: drupal.media.file.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
media.file(file)
Method Summary
Method Attributes Method Name and Description
 
Returns the best player for the job.
 
Returns the file extension of the file path.
 
Returns the proper mimetype based off of the extension.
 
The priority of this file is determined by the priority of the best player multiplied by the priority of the mimetype.
 
The type of media this is: video or audio.
Class Detail
media.file(file)
Parameters:
{object} file
A media file object with minimal required information.
Method Detail
{string} getBestPlayer()
Returns the best player for the job.
Returns:
{string} The best player to play the media file.

{string} getFileExtension()
Returns the file extension of the file path.
Returns:
{string} The file extension.

{string} getMimeType()
Returns the proper mimetype based off of the extension.
Returns:
{string} The mimetype of the file based off of extension.

{integer} getPriority()
The priority of this file is determined by the priority of the best player multiplied by the priority of the mimetype.
Returns:
{integer} The priority of the media file.

{string} getType()
The type of media this is: video or audio.
Returns:
{string} "video" or "audio" based on what the type of media this is.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Nov 22 2011 23:07:52 GMT+0100 (CET)