User interface for media player. More...
Collaboration diagram for ilMediaPlayerGUI:Public Member Functions | |
| __construct () | |
| setFile ($a_file) | |
| Set File. | |
| getFile () | |
| Get File. | |
| setDisplayHeight ($dHeight) | |
| set display height | |
| getDisplayHeight () | |
| return display height of player. | |
| getMp3PlayerHtml () | |
| Get Html for MP3 Player. | |
Data Fields | |
| $file | |
| $displayHeight | |
Static Public Attributes | |
| static | $nr = 1 |
User interface for media player.
Wraps flash mp3 player and similar tools.
Definition at line 32 of file class.ilMediaPlayerGUI.php.
| ilMediaPlayerGUI::__construct | ( | ) |
Definition at line 38 of file class.ilMediaPlayerGUI.php.
{
}
| ilMediaPlayerGUI::getDisplayHeight | ( | ) |
return display height of player.
Definition at line 76 of file class.ilMediaPlayerGUI.php.
{
return $this->displayHeight;
}
| ilMediaPlayerGUI::getFile | ( | ) |
Get File.
Definition at line 57 of file class.ilMediaPlayerGUI.php.
Referenced by getMp3PlayerHtml().
{
return $this->file;
}
Here is the caller graph for this function:| ilMediaPlayerGUI::getMp3PlayerHtml | ( | ) |
Get Html for MP3 Player.
Definition at line 82 of file class.ilMediaPlayerGUI.php.
References $tpl, and getFile().
{
global $tpl;
//$tpl->addJavaScript("./Services/MediaObjects/flash_mp3_player/ufo.js");
//$mp_tpl = new ilTemplate("tpl.mp3_player.html", true, true, "Services/MediaObjects");
$tpl->addJavaScript("./Services/MediaObjects/flash_flv_player/swfobject.js");
$mp_tpl = new ilTemplate("tpl.flv_player.html", true, true, "Services/MediaObjects");
$mp_tpl->setVariable("FILE", $this->getFile());
$mp_tpl->setVariable("PLAYER_NR", self::$nr);
$mp_tpl->setVariable("DISPLAY_HEIGHT", $this->displayHeight + 20);
self::$nr++;
return $mp_tpl->get();
}
Here is the call graph for this function:| ilMediaPlayerGUI::setDisplayHeight | ( | $ | dHeight | ) |
set display height
| int | $dHeight |
Definition at line 67 of file class.ilMediaPlayerGUI.php.
{
$this->displayHeight = $dHeight;
}
| ilMediaPlayerGUI::setFile | ( | $ | a_file | ) |
Set File.
| string | $a_file File |
Definition at line 47 of file class.ilMediaPlayerGUI.php.
{
$this->file = $a_file;
}
| ilMediaPlayerGUI::$displayHeight |
Definition at line 35 of file class.ilMediaPlayerGUI.php.
| ilMediaPlayerGUI::$file |
Definition at line 34 of file class.ilMediaPlayerGUI.php.
ilMediaPlayerGUI::$nr = 1 [static] |
Definition at line 36 of file class.ilMediaPlayerGUI.php.
1.7.1