ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMediaPlayerGUI Class Reference

User interface for media player. More...

+ Collaboration diagram for ilMediaPlayerGUI:

Public Member Functions

 __construct ($a_id="", $a_event_callback_url="")
 
 setFile ($a_file)
 Set File. More...
 
 getFile ()
 Get File. More...
 
 setAlternativeVideoFile ($a_val)
 Set alternative video file. More...
 
 getAlternativeVideoFile ()
 Get alternative video file. More...
 
 setAlternativeVideoMimeType ($a_val)
 Set alternative video mime type. More...
 
 getAlternativeVideoMimeType ()
 Get alternative video mime type. More...
 
 setDisplayHeight ($dHeight)
 set display height More...
 
 getDisplayHeight ()
 return display height of player. More...
 
 setDisplayWidth ($a_val)
 Set display width. More...
 
 getDisplayWidth ()
 Get display width. More...
 
 setMimeType ($value)
 
 setVideoPreviewPic ($a_val, $a_alt="")
 Set video preview picture. More...
 
 getVideoPreviewPic ()
 Get video preview picture. More...
 
 setTitle ($a_val)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setDescription ($a_val)
 Set description. More...
 
 getDescription ()
 Get description. More...
 
 setForceAudioPreview ($a_val)
 Set force audio preview. More...
 
 getForceAudioPreview ()
 Get force audio preview. More...
 
 setDownloadLink ($a_val)
 Set download link. More...
 
 getDownloadLink ()
 Get download link. More...
 
 getMp3PlayerHtml ($a_preview=false)
 Get Html for MP3 Player. More...
 
 getPreviewHtml ()
 Get preview html. More...
 
 getMediaPlayerHtml ()
 Get HTML (no preview) for media player integration. More...
 

Static Public Member Functions

static initJavascript ($a_tpl=null)
 Init Javascript. More...
 

Protected Attributes

 $tpl
 
 $lng
 
 $file
 
 $displayHeight = ""
 
 $displayWidth = ""
 
 $mimeType
 
 $current_nr
 
 $title
 
 $description
 
 $event_callback_url = ""
 
 $download_link = ""
 

Static Protected Attributes

static $nr = 1
 
static $lightbox_initialized = false
 

Detailed Description

User interface for media player.

Wraps flash mp3 player and similar tools.

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

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

Constructor & Destructor Documentation

◆ __construct()

ilMediaPlayerGUI::__construct (   $a_id = "",
  $a_event_callback_url = "" 
)

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

References $DIC.

36  {
37  global $DIC;
38 
39  $this->tpl = $DIC["tpl"];
40  $this->lng = $DIC->language();
41  $this->id = $a_id;
42  $this->event_callback_url = $a_event_callback_url;
43  $this->current_nr = self::$nr;
44  self::$nr++;
45  }
global $DIC
Definition: goto.php:24

Member Function Documentation

◆ getAlternativeVideoFile()

ilMediaPlayerGUI::getAlternativeVideoFile ( )

Get alternative video file.

Returns
string alternative video file

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

79  {
80  return $this->alt_video_file;
81  }

◆ getAlternativeVideoMimeType()

ilMediaPlayerGUI::getAlternativeVideoMimeType ( )

Get alternative video mime type.

Returns
string alternative video mime type

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

97  {
98  return $this->alt_video_mime;
99  }

◆ getDescription()

ilMediaPlayerGUI::getDescription ( )

Get description.

Returns
string description

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

References $description.

Referenced by getMp3PlayerHtml().

193  {
194  return $this->description;
195  }
+ Here is the caller graph for this function:

◆ getDisplayHeight()

ilMediaPlayerGUI::getDisplayHeight ( )

return display height of player.

Returns
int

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

References $displayHeight.

Referenced by getMp3PlayerHtml().

115  {
116  return $this->displayHeight;
117  }
+ Here is the caller graph for this function:

◆ getDisplayWidth()

ilMediaPlayerGUI::getDisplayWidth ( )

Get display width.

Returns
string display width

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

References $displayWidth.

Referenced by getMp3PlayerHtml().

133  {
134  return $this->displayWidth;
135  }
+ Here is the caller graph for this function:

◆ getDownloadLink()

ilMediaPlayerGUI::getDownloadLink ( )

Get download link.

Returns
string download link

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

References $download_link.

Referenced by getMp3PlayerHtml().

229  {
230  return $this->download_link;
231  }
+ Here is the caller graph for this function:

◆ getFile()

ilMediaPlayerGUI::getFile ( )

Get File.

Returns
string File

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

References $file.

Referenced by getMp3PlayerHtml().

61  {
62  return $this->file;
63  }
+ Here is the caller graph for this function:

◆ getForceAudioPreview()

ilMediaPlayerGUI::getForceAudioPreview ( )

Get force audio preview.

Returns
boolean force audio preview picture

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

Referenced by getMp3PlayerHtml().

211  {
212  return $this->force_audio_preview;
213  }
+ Here is the caller graph for this function:

◆ getMediaPlayerHtml()

ilMediaPlayerGUI::getMediaPlayerHtml ( )

Get HTML (no preview) for media player integration.

Returns
string html

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

References getMp3PlayerHtml().

534  {
535  return $this->getMp3PlayerHtml(false);
536  }
getMp3PlayerHtml($a_preview=false)
Get Html for MP3 Player.
+ Here is the call graph for this function:

◆ getMp3PlayerHtml()

ilMediaPlayerGUI::getMp3PlayerHtml (   $a_preview = false)

Get Html for MP3 Player.

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

References $lng, $mimeType, $tpl, ilGlyphGUI\CLOSE, ilExternalMediaAnalyzer\extractVimeoParameters(), ilExternalMediaAnalyzer\extractYouTubeParameters(), ilGlyphGUI\get(), getDescription(), getDisplayHeight(), getDisplayWidth(), getDownloadLink(), getFile(), getForceAudioPreview(), ilUtil\getImagePath(), ilObjMediaObject\getMimeType(), getTitle(), getVideoPreviewPic(), ilPlayerUtil\initMediaElementJs(), ilExternalMediaAnalyzer\isVimeo(), and ilExternalMediaAnalyzer\isYouTube().

Referenced by getMediaPlayerHtml(), and getPreviewHtml().

260  {
261  $tpl = $this->tpl;
262  $lng = $this->lng;
263 
264  self::initJavascript($tpl);
265 
266  if (!self::$lightbox_initialized && $a_preview) {
267  include_once("./Services/UIComponent/Lightbox/classes/class.ilLightboxGUI.php");
268  $lb = new ilLightboxGUI("media_lightbox");
269  $lb->setWidth("660px");
270  $lb->addLightbox();
271  self::$lightbox_initialized = true;
272  }
273 
274  require_once 'Services/MediaObjects/classes/class.ilObjMediaObject.php';
275  include_once("./Services/MediaObjects/classes/class.ilExternalMediaAnalyzer.php");
276 
277  // youtube
280  /*
281  $html = '<object width="320" height="240">'.
282  '<param name="movie" value="http://www.youtube.com/v/'.$p["v"].'?fs=1">'.
283  '</param><param name="allowFullScreen" value="true"></param>'.
284  '<param name="allowscriptaccess" value="always">'.
285  '</param><embed src="http://www.youtube.com/v/'.$p["v"].'?fs=1" '.
286  'type="application/x-shockwave-flash" allowscriptaccess="always" '.
287  'allowfullscreen="true" width="320" height="240"></embed></object>';
288  return $html;*/
289  $mp_tpl = new ilTemplate("tpl.flv_player.html", true, true, "Services/MediaObjects");
290  if ($a_preview) {
291  if ($this->getDownloadLink() != "") {
292  $mp_tpl->setCurrentBlock("ytdownload");
293  $mp_tpl->setVariable("TXT_DOWNLOAD", $lng->txt("download"));
294  $mp_tpl->setVariable("HREF_DOWNLOAD", $this->getDownloadLink());
295  $mp_tpl->parseCurrentBlock();
296  }
297 
298  $mp_tpl->setCurrentBlock("ytpreview");
299  if ($this->getVideoPreviewPic() != "") {
300  $mp_tpl->setVariable("IMG_SRC", $this->getVideoPreviewPic());
301  } else {
302  $mp_tpl->setVariable("IMG_SRC", ilUtil::getImagePath("mcst_preview.svg"));
303  }
304  $height = $this->getDisplayHeight();
305  $width = $this->getDisplayWidth();
306  $mp_tpl->setVariable("DISPLAY_HEIGHT", $height);
307  $mp_tpl->setVariable("DISPLAY_WIDTH", $width);
308  $mp_tpl->setVariable("IMG_ALT", $this->video_preview_pic_alt);
309  $mp_tpl->setVariable("PTITLE", $this->getTitle());
310  $mp_tpl->parseCurrentBlock();
311  }
312  $mp_tpl->setCurrentBlock("youtube");
313  if ($a_preview) {
314  $mp_tpl->setVariable("CLASS", "ilNoDisplay");
315  }
316  $mp_tpl->setVariable("PV", $p["v"]);
317  $mp_tpl->setVariable("PLAYER_NR", $this->id . "_" . $this->current_nr);
318  $mp_tpl->setVariable("TXT_PLAY", $lng->txt("mob_play"));
319  $mp_tpl->setVariable("TITLE", $this->getTitle());
320  $mp_tpl->setVariable("DESCRIPTION", $this->getDescription());
321  include_once("./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
322  if ($a_preview) {
323  $mp_tpl->setVariable("CLOSE", ilGlyphGUI::get(ilGlyphGUI::CLOSE));
324  }
325  $mp_tpl->parseCurrentBlock();
326  return $mp_tpl->get();
327  }
328 
329  // vimeo
332  $html = '<iframe src="//player.vimeo.com/video/' . $p["id"] . '" width="320" height="240" ' .
333  'frameborder="0"></iframe>';
334 
335  return $html;
336  }
337 
338  $mimeType = $this->mimeType == "" ? ilObjMediaObject::getMimeType(basename($this->getFile())) : $this->mimeType;
339  include_once("./Services/MediaObjects/classes/class.ilPlayerUtil.php");
340 
341  // video tag
342  if (in_array($mimeType, array("video/mp4",
343  "video/m4v",
344  "video/rtmp",
345  "video/x-flv",
346  "video/webm",
347  "video/youtube",
348  "video/vimeo",
349  "video/ogg"
350  ))) {
351  if ($mimeType == "video/quicktime") {
352  $mimeType = "video/mov";
353  }
354 
355  $mp_tpl = new ilTemplate("tpl.flv_player.html", true, true, "Services/MediaObjects");
356 
357  // preview
358  if ($a_preview) {
359  if ($this->getDownloadLink() != "") {
360  $mp_tpl->setCurrentBlock("download");
361  $mp_tpl->setVariable("TXT_DOWNLOAD", $lng->txt("download"));
362  $mp_tpl->setVariable("HREF_DOWNLOAD", $this->getDownloadLink());
363  $mp_tpl->parseCurrentBlock();
364  }
365 
366  $mp_tpl->setCurrentBlock("preview");
367  if ($this->getVideoPreviewPic() != "") {
368  $mp_tpl->setVariable("IMG_SRC", $this->getVideoPreviewPic());
369  } else {
370  $mp_tpl->setVariable("IMG_SRC", ilUtil::getImagePath("mcst_preview.svg"));
371  }
372  $mp_tpl->setVariable("IMG_ALT", $this->video_preview_pic_alt);
373  $mp_tpl->setVariable("PTITLE", $this->getTitle());
374  $mp_tpl->parseCurrentBlock();
375  }
376 
377  $mp_tpl->setCurrentBlock("mejs_video");
378 
379  if ($a_preview) {
380  $mp_tpl->setVariable("WRAP_CLASS", "ilNoDisplay");
381  $mp_tpl->setVariable("CLASS", "mejs__player ilNoDisplay");
382  } else {
383  //$mp_tpl->setVariable("CLASS", "mejs__player");
384  }
385 
386  // sources
387  $mp_tpl->setVariable("FILE", $this->getFile());
388  $mp_tpl->setVariable("PLAYER_NR", $this->id . "_" . $this->current_nr);
389  $mp_tpl->setVariable("TXT_PLAY", $lng->txt("mob_play"));
390  $mp_tpl->setVariable("EVENT_URL", $this->event_callback_url);
391  $height = $this->getDisplayHeight();
392  $width = $this->getDisplayWidth();
393  if (is_int(strpos($mimeType, "audio/mpeg"))) {
394  //$height = "30px";
395  }
396 
397  if ($height != "") {
398  $style = "height: " . $height . "; ";
399  }
400  if ($width != "") {
401  $style .= "width: " . $width . "; ";
402  }
403  if ($style != "") {
404  $mp_tpl->setVariable("STYLE", "style='$style'");
405  }
406  //$mp_tpl->setVariable("DISPLAY_HEIGHT", $height);
407  //$mp_tpl->setVariable("DISPLAY_WIDTH", $width);
408  $mp_tpl->setVariable("PREVIEW_PIC", $this->getVideoPreviewPic());
409  $mp_tpl->setVariable("TITLE", $this->getTitle());
410  $mp_tpl->setVariable("DESCRIPTION", $this->getDescription());
411  include_once("./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
412  if ($a_preview) {
413  $mp_tpl->setVariable("CLOSE", ilGlyphGUI::get(ilGlyphGUI::CLOSE));
414  }
415  $mp_tpl->parseCurrentBlock();
416  $r = $mp_tpl->get();
417 
418  if (!$a_preview) {
419  $tpl->addOnLoadCode("new MediaElementPlayer('player_" . $this->id . "_" . $this->current_nr . "');");
420  }
421 
422  //echo htmlentities($r); exit;
423  return $r;
424  }
425 
426  // audio/mpeg
427  if (is_int(strpos($mimeType, "audio/mpeg")) ||
428  in_array($mimeType, array("application/ogg", "audio/ogg"))) {
430  $mp_tpl = new ilTemplate("tpl.flv_player.html", true, true, "Services/MediaObjects");
431  $preview_output = false;
432  if ($this->getVideoPreviewPic() != "" || $this->getForceAudioPreview()) {
433  if ($this->getDownloadLink() != "") {
434  $mp_tpl->setCurrentBlock("adownload");
435  $mp_tpl->setVariable("TXT_DOWNLOAD", $lng->txt("download"));
436  $mp_tpl->setVariable("HREF_DOWNLOAD", $this->getDownloadLink());
437  $mp_tpl->parseCurrentBlock();
438  }
439 
440  $mp_tpl->setCurrentBlock("apreview");
441  if ($this->getVideoPreviewPic() != "") {
442  $mp_tpl->setVariable("IMG_SRC", $this->getVideoPreviewPic());
443  } else {
444  $mp_tpl->setVariable("IMG_SRC", ilUtil::getImagePath("mcst_preview.svg"));
445  }
446  $mp_tpl->setVariable("PTITLE", $this->getTitle());
447  $mp_tpl->parseCurrentBlock();
448  $preview_output = true;
449  }
450  $mp_tpl->setCurrentBlock("audio");
451  if ($preview_output) {
452  $mp_tpl->setVariable("ASTYLE", "margin-top:-40px");
453  }
454  $mp_tpl->setVariable("AFILE", $this->getFile());
455  $mp_tpl->setVariable("APLAYER_NR", $this->id . "_" . $this->current_nr);
456  $mp_tpl->setVariable("AEVENT_URL", $this->event_callback_url);
457  $mp_tpl->setVariable("AHEIGHT", "40");
458  $mp_tpl->setVariable("AWIDTH", "320");
459  $mp_tpl->parseCurrentBlock();
460  return $mp_tpl->get();
461  }
462 
463  // images
464  if (is_int(strpos($mimeType, "image/"))) {
465  $mp_tpl = new ilTemplate("tpl.flv_player.html", true, true, "Services/MediaObjects");
466 
467  if ($this->getDownloadLink() != "") {
468  $mp_tpl->setCurrentBlock("idownload");
469  $mp_tpl->setVariable("TXT_DOWNLOAD", $lng->txt("download"));
470  $mp_tpl->setVariable("HREF_DOWNLOAD", $this->getDownloadLink());
471  $mp_tpl->parseCurrentBlock();
472  }
473 
474  $mp_tpl->setCurrentBlock("ipreview");
475  if ($this->getVideoPreviewPic() != "") {
476  $mp_tpl->setVariable("IMG_SRC", $this->getVideoPreviewPic());
477  } else {
478  $mp_tpl->setVariable("IMG_SRC", $this->getFile());
479  }
480  $mp_tpl->setVariable("PTITLE", $this->getTitle());
481  $mp_tpl->parseCurrentBlock();
482 
483  $mp_tpl->setCurrentBlock("image");
484  $mp_tpl->setVariable("IFILE", $this->getFile());
485  $mp_tpl->setVariable("IPLAYER_NR", $this->id . "_" . $this->current_nr);
486  $mp_tpl->setVariable("ITITLE", $this->getTitle());
487  $mp_tpl->setVariable("IDESCRIPTION", $this->getDescription());
488  include_once("./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
489  $mp_tpl->setVariable("ICLOSE", ilGlyphGUI::get(ilGlyphGUI::CLOSE));
490 
491  if ($this->event_callback_url) {
492  $mp_tpl->setVariable("IMG_CALLBACK_URL", $this->event_callback_url);
493  $mp_tpl->setVariable("IMG_CALLBACK_PLAYER_NR", $this->id . "_" . $this->current_nr);
494  }
495 
496  $mp_tpl->setVariable("IHEIGHT", $this->getDisplayHeight());
497  $mp_tpl->setVariable("IWIDTH", $this->getDisplayWidth());
498  $mp_tpl->parseCurrentBlock();
499 
500  return $mp_tpl->get();
501  }
502 
503  // fallback, no preview mode
504  $mimeType = $this->mimeType == "" ? ilObjMediaObject::getMimeType(basename($this->getFile())) : $this->mimeType;
505  if (strpos($mimeType, "flv") === false
506  && strpos($mimeType, "audio/mpeg") === false
507  && strpos($mimeType, "image/png") === false
508  && strpos($mimeType, "image/gif") === false) {
509  $html = '<embed src="' . $this->getFile() . '" ' .
510  'type="' . $mimeType . '" ' .
511  'ShowControls="1" ' .
512  'autoplay="false" autostart="false" ' .
513  'width="320" height="240" scale="aspect" ></embed>';
514  return $html;
515  }
516 
517  return;
518  }
static getMimeType($a_file, $a_external=null)
get mime type for file
getVideoPreviewPic()
Get video preview picture.
static isYouTube($a_location)
Identify YouTube links.
getDisplayHeight()
return display height of player.
getDescription()
Get description.
getDownloadLink()
Get download link.
static get($a_glyph, $a_text="")
Get glyph html.
Lighbox handling.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static initMediaElementJs($a_tpl=null)
Init mediaelement.js scripts.
static extractVimeoParameters($a_location)
Extract Vimeo Parameter.
static isVimeo($a_location)
Identify Vimeo links.
static extractYouTubeParameters($a_location)
Extract YouTube Parameter.
getDisplayWidth()
Get display width.
getForceAudioPreview()
Get force audio preview.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPreviewHtml()

ilMediaPlayerGUI::getPreviewHtml ( )

Get preview html.

Returns
string html

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

References getMp3PlayerHtml().

525  {
526  return $this->getMp3PlayerHtml(true);
527  }
getMp3PlayerHtml($a_preview=false)
Get Html for MP3 Player.
+ Here is the call graph for this function:

◆ getTitle()

ilMediaPlayerGUI::getTitle ( )

Get Title.

Returns
string title

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

References $title.

Referenced by getMp3PlayerHtml().

175  {
176  return $this->title;
177  }
+ Here is the caller graph for this function:

◆ getVideoPreviewPic()

ilMediaPlayerGUI::getVideoPreviewPic ( )

Get video preview picture.

Returns
string video preview picture

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

Referenced by getMp3PlayerHtml().

157  {
158  return $this->video_preview_pic;
159  }
+ Here is the caller graph for this function:

◆ initJavascript()

static ilMediaPlayerGUI::initJavascript (   $a_tpl = null)
static

Init Javascript.

Parameters
null$a_tpl

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

References $DIC, $tpl, ilYuiUtil\initConnection(), and ilPlayerUtil\initMediaElementJs().

Referenced by ilNewsTimelineGUI\show().

238  {
239  global $DIC;
240 
241  $tpl = $DIC["tpl"];
242 
243  if ($a_tpl == null) {
244  $a_tpl = $tpl;
245  }
246 
247  include_once("./Services/YUI/classes/class.ilYuiUtil.php");
249 
250  $a_tpl->addJavascript("./Services/MediaObjects/js/MediaObjects.js?1");
251 
252  include_once("./Services/MediaObjects/classes/class.ilPlayerUtil.php");
254  }
static initConnection(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Connection module.
global $DIC
Definition: goto.php:24
static initMediaElementJs($a_tpl=null)
Init mediaelement.js scripts.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAlternativeVideoFile()

ilMediaPlayerGUI::setAlternativeVideoFile (   $a_val)

Set alternative video file.

Parameters
string$a_valalternative video file

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

70  {
71  $this->alt_video_file = $a_val;
72  }

◆ setAlternativeVideoMimeType()

ilMediaPlayerGUI::setAlternativeVideoMimeType (   $a_val)

Set alternative video mime type.

Parameters
string$a_valalternative video mime type

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

88  {
89  $this->alt_video_mime = $a_val;
90  }

◆ setDescription()

ilMediaPlayerGUI::setDescription (   $a_val)

Set description.

Parameters
string$a_valdescription

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

184  {
185  $this->description = $a_val;
186  }

◆ setDisplayHeight()

ilMediaPlayerGUI::setDisplayHeight (   $dHeight)

set display height

Parameters
int$dHeight

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

106  {
107  $this->displayHeight = $dHeight;
108  }

◆ setDisplayWidth()

ilMediaPlayerGUI::setDisplayWidth (   $a_val)

Set display width.

Parameters
string$a_valdisplay width

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

124  {
125  $this->displayWidth = $a_val;
126  }

◆ setDownloadLink()

ilMediaPlayerGUI::setDownloadLink (   $a_val)

Set download link.

Parameters
string$a_valdownload link

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

220  {
221  $this->download_link = $a_val;
222  }

◆ setFile()

ilMediaPlayerGUI::setFile (   $a_file)

Set File.

Parameters
string$a_fileFile

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

Referenced by ilDclMobRecordRepresentation\getHTML(), and ilObjMediaCastGUI\showGallery().

52  {
53  $this->file = $a_file;
54  }
+ Here is the caller graph for this function:

◆ setForceAudioPreview()

ilMediaPlayerGUI::setForceAudioPreview (   $a_val)

Set force audio preview.

Parameters
boolean$a_valforce audio preview picture

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

202  {
203  $this->force_audio_preview = $a_val;
204  }

◆ setMimeType()

ilMediaPlayerGUI::setMimeType (   $value)

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

138  {
139  $this->mimeType = $value;
140  }

◆ setTitle()

ilMediaPlayerGUI::setTitle (   $a_val)

Set Title.

Parameters
string$a_valtitle

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

166  {
167  $this->title = $a_val;
168  }

◆ setVideoPreviewPic()

ilMediaPlayerGUI::setVideoPreviewPic (   $a_val,
  $a_alt = "" 
)

Set video preview picture.

Parameters
string$a_valvideo preview picture

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

147  {
148  $this->video_preview_pic = $a_val;
149  $this->video_preview_pic_alt = $a_alt;
150  }

Field Documentation

◆ $current_nr

ilMediaPlayerGUI::$current_nr
protected

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

◆ $description

ilMediaPlayerGUI::$description
protected

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

Referenced by getDescription().

◆ $displayHeight

ilMediaPlayerGUI::$displayHeight = ""
protected

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

Referenced by getDisplayHeight().

◆ $displayWidth

ilMediaPlayerGUI::$displayWidth = ""
protected

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

Referenced by getDisplayWidth().

◆ $download_link

ilMediaPlayerGUI::$download_link = ""
protected

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

Referenced by getDownloadLink().

◆ $event_callback_url

ilMediaPlayerGUI::$event_callback_url = ""
protected

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

◆ $file

ilMediaPlayerGUI::$file
protected

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

Referenced by getFile().

◆ $lightbox_initialized

ilMediaPlayerGUI::$lightbox_initialized = false
staticprotected

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

◆ $lng

ilMediaPlayerGUI::$lng
protected

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

Referenced by getMp3PlayerHtml().

◆ $mimeType

ilMediaPlayerGUI::$mimeType
protected

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

Referenced by getMp3PlayerHtml().

◆ $nr

ilMediaPlayerGUI::$nr = 1
staticprotected

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

◆ $title

ilMediaPlayerGUI::$title
protected

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

Referenced by getTitle().

◆ $tpl

ilMediaPlayerGUI::$tpl
protected

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

Referenced by getMp3PlayerHtml(), and initJavascript().


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