Public Member Functions | Data Fields | Static Public Attributes

ilMediaPlayerGUI Class Reference
[Services/MediaObjects]

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

Detailed Description

User interface for media player.

Wraps flash mp3 player and similar tools.

Author:
Alex Killing <alex.killing@gmx.de>
Version:
$Id$

Definition at line 32 of file class.ilMediaPlayerGUI.php.


Constructor & Destructor Documentation

ilMediaPlayerGUI::__construct (  ) 

Definition at line 38 of file class.ilMediaPlayerGUI.php.

        {
        }


Member Function Documentation

ilMediaPlayerGUI::getDisplayHeight (  ) 

return display height of player.

Returns:
int

Definition at line 76 of file class.ilMediaPlayerGUI.php.

                                     {
                return $this->displayHeight;
        }

ilMediaPlayerGUI::getFile (  ) 

Get File.

Returns:
string 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

Parameters:
int $dHeight

Definition at line 67 of file class.ilMediaPlayerGUI.php.

                                             {
                $this->displayHeight = $dHeight;
        }

ilMediaPlayerGUI::setFile ( a_file  ) 

Set File.

Parameters:
string $a_file File

Definition at line 47 of file class.ilMediaPlayerGUI.php.

        {
                $this->file = $a_file;
        }


Field Documentation

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.


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