ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPlayerUtil Class Reference

Audio/Video Player Utility. More...

+ Collaboration diagram for ilPlayerUtil:

Public Member Functions

 getLocalMediaElementJsPath ()
 Get local path of jQuery file.
 getLocalMediaElementCssPath ()
 Get local path of jQuery file.
 copyPlayerFilesToTargetDirectory ($a_target_dir)
 Copy css files to target dir.

Static Public Member Functions

static initMediaElementJs ($a_tpl=null)
 Init mediaelement.js scripts.
static getCssFilePaths ()
 Get css file paths.
static getJsFilePaths ()
 Get js file paths.
static getFlashVideoPlayerDirectory ()
 Get flash video player directory.
static getFlashVideoPlayerFilename ($a_fullpath=false)
 Get flash video player file name.

Static Private Attributes

static $mejs_ver = "2_11_3"

Detailed Description

Audio/Video Player Utility.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 12 of file class.ilPlayerUtil.php.

Member Function Documentation

ilPlayerUtil::copyPlayerFilesToTargetDirectory (   $a_target_dir)

Copy css files to target dir.

Parameters
@return

Definition at line 109 of file class.ilPlayerUtil.php.

References ilUtil\rCopy().

Referenced by ilObjContentObject\exportHTML(), ilCOPageHTMLExport\exportSupportScripts(), and ilObjSCORM2004LearningModule\prepareHTMLExporter().

{
ilUtil::rCopy("./Services/MediaObjects/media_element_".self::$mejs_ver,
$a_target_dir);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilPlayerUtil::getCssFilePaths ( )
static

Get css file paths.

Parameters
@return

Definition at line 60 of file class.ilPlayerUtil.php.

Referenced by ilCOPageHTMLExport\getPreparedMainTemplate().

{
return array(self::getLocalMediaElementCssPath());
}

+ Here is the caller graph for this function:

static ilPlayerUtil::getFlashVideoPlayerDirectory ( )
static

Get flash video player directory.

Returns

Definition at line 82 of file class.ilPlayerUtil.php.

Referenced by ilCOPageHTMLExport\__construct(), ilObjContentObject\exportHTML(), ilObjMediaObject\exportMediaFullscreen(), getFlashVideoPlayerFilename(), and ilObjSCORM2004LearningModule\prepareHTMLExporter().

{
return "Services/MediaObjects/media_element_2_11_3";
}

+ Here is the caller graph for this function:

static ilPlayerUtil::getFlashVideoPlayerFilename (   $a_fullpath = false)
static

Get flash video player file name.

Returns

Definition at line 93 of file class.ilPlayerUtil.php.

References $file, and getFlashVideoPlayerDirectory().

Referenced by ilMediaPlayerGUI\getMp3PlayerHtml(), and ilPageObjectGUI\showPage().

{
$file = "flashmediaelement.swf";
if ($a_fullpath)
{
}
return $file;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ilPlayerUtil::getJsFilePaths ( )
static

Get js file paths.

Parameters
@return

Definition at line 71 of file class.ilPlayerUtil.php.

Referenced by ilCOPageHTMLExport\getPreparedMainTemplate().

{
return array(self::getLocalMediaElementJsPath());
}

+ Here is the caller graph for this function:

ilPlayerUtil::getLocalMediaElementCssPath ( )

Get local path of jQuery file.

Definition at line 27 of file class.ilPlayerUtil.php.

Referenced by ilObjContentObject\getSupplyingExportFiles().

{
return "./Services/MediaObjects/media_element_".self::$mejs_ver."/mediaelementplayer.min.css";
}

+ Here is the caller graph for this function:

ilPlayerUtil::getLocalMediaElementJsPath ( )

Get local path of jQuery file.

Definition at line 19 of file class.ilPlayerUtil.php.

Referenced by ilObjContentObject\getSupplyingExportFiles().

{
return "./Services/MediaObjects/media_element_".self::$mejs_ver."/mediaelement-and-player.js";
}

+ Here is the caller graph for this function:

static ilPlayerUtil::initMediaElementJs (   $a_tpl = null)
static

Init mediaelement.js scripts.

Definition at line 35 of file class.ilPlayerUtil.php.

References $tpl.

Referenced by ilMediaPlayerGUI\getMp3PlayerHtml(), ilObjMediaObjectGUI\includePresentationJS(), and ilPageObjectGUI\showPage().

{
global $tpl;
if ($a_tpl == null)
{
$a_tpl = $tpl;
}
foreach (self::getJsFilePaths() as $js_path)
{
$a_tpl->addJavaScript($js_path);
}
foreach (self::getCssFilePaths() as $css_path)
{
$a_tpl->addCss($css_path);
}
}

+ Here is the caller graph for this function:

Field Documentation

ilPlayerUtil::$mejs_ver = "2_11_3"
staticprivate

Definition at line 14 of file class.ilPlayerUtil.php.


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