◆ __construct()
◆ audio()
      
        
          | ilMediaObjectsPlayerWrapperGUI::audio  | 
          ( | 
          ilObjMediaObject  | 
          $mob,  | 
        
        
           | 
           | 
          int  | 
          $tracking_container_ref_id = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Exceptions
 - 
  
  
 
Definition at line 101 of file class.ilMediaObjectsPlayerWrapperGUI.php.
References $id, $url, ilMediaCastSettings\_getInstance(), ilObject\getId(), ilObjMediaObject\getMediaItem(), ilObjMediaObject\getStandardSrc(), and ILIAS\Repository\int().
Referenced by getComponent().
  104      : ?\ILIAS\UI\Component\Player\Audio {
   105         $main_tpl = $this->gui->ui()->mainTemplate();
   107         $ctrl = $this->gui->ctrl();
   111         if (is_null($med) || !$this->media_type->isAudio($med->getFormat())) {
   115         $audio = $this->gui->ui()->factory()->player()->audio(
   120         if ($tracking_container_ref_id > 0) {
   123             $treshold = (
int) $mcst_settings->getVideoCompletionThreshold();
   125             $main_tpl->addJavaScript(
"assets/js/MediaObjectsCompletion.js");
   126             $ctrl->setParameter($this, 
"mob_tracking_ref_id", $tracking_container_ref_id);
   127             $ctrl->setParameter($this, 
"mob_tracking_mob_id", $mob->
getId());
   128             $url = $ctrl->getLinkTarget($this, 
"saveCompletion");
   129             $audio = $audio->withAdditionalOnLoadCode(
function (
$id) use (
$url, $treshold) {
   131                 document.getElementById(
'$id').dataset.mobCompletionCallback = 
'$url';
   132                 document.getElementById(
'$id').dataset.mobCompletionThreshold = 
'$treshold';
   133                 il.MediaObjectsCompletion.init();
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ executeCommand()
      
        
          | ilMediaObjectsPlayerWrapperGUI::executeCommand  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 46 of file class.ilMediaObjectsPlayerWrapperGUI.php.
   48         $ctrl = $this->gui->ctrl();
    50         $next_class = $ctrl->getNextClass($this);
    51         $cmd = $ctrl->getCmd();
    53         switch ($next_class) {
    55                 if (in_array($cmd, array(
"saveCompletion"))) {
  
 
 
◆ getComponent()
      
        
          | ilMediaObjectsPlayerWrapperGUI::getComponent  | 
          ( | 
          ilObjMediaObject  | 
          $mob,  | 
        
        
           | 
           | 
          int  | 
          $tracking_container_ref_id = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ image()
      
        
          | ilMediaObjectsPlayerWrapperGUI::image  | 
          ( | 
          ilObjMediaObject  | 
          $mob,  | 
        
        
           | 
           | 
          int  | 
          $tracking_container_ref_id = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Exceptions
 - 
  
  
 
Definition at line 144 of file class.ilMediaObjectsPlayerWrapperGUI.php.
References $id, $url, ilMediaCastSettings\_getInstance(), ilObject\getId(), ilObjMediaObject\getMediaItem(), ilObjMediaObject\getStandardSrc(), ilObject\getTitle(), and ILIAS\Repository\int().
Referenced by getComponent().
  147      : ?\ILIAS\UI\Component\Image\Image {
   148         $main_tpl = $this->gui->ui()->mainTemplate();
   150         $ctrl = $this->gui->ctrl();
   154         if (is_null($med) || !$this->media_type->isImage($med->getFormat())) {
   160         $image = $this->gui->ui()->factory()->image()->responsive($source, $mob->
getTitle());
   162         if ($tracking_container_ref_id > 0) {
   165             $treshold = (
int) $mcst_settings->getVideoCompletionThreshold();
   167             $main_tpl->addJavaScript(
"assets/js/MediaObjectsCompletion.js");
   168             $ctrl->setParameter($this, 
"mob_tracking_ref_id", $tracking_container_ref_id);
   169             $ctrl->setParameter($this, 
"mob_tracking_mob_id", $mob->
getId());
   170             $url = $ctrl->getLinkTarget($this, 
"saveCompletion");
   171             $audio = $image->withAdditionalOnLoadCode(
function (
$id) use (
$url, $treshold) {
   173                 document.getElementById(
'$id').dataset.mobCompletionCallback = 
'$url';
   174                 document.getElementById(
'$id').dataset.mobCompletionThreshold = 
'$treshold';
   175                 il.MediaObjectsCompletion.init();
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ renderComponent()
      
        
          | ilMediaObjectsPlayerWrapperGUI::renderComponent  | 
          ( | 
          ilObjMediaObject  | 
          $mob,  | 
        
        
           | 
           | 
          int  | 
          $tracking_container_ref_id = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ saveCompletion()
  
  
      
        
          | ilMediaObjectsPlayerWrapperGUI::saveCompletion  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
 
◆ video()
      
        
          | ilMediaObjectsPlayerWrapperGUI::video  | 
          ( | 
          ilObjMediaObject  | 
          $mob,  | 
        
        
           | 
           | 
          int  | 
          $tracking_container_ref_id = 0  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Exceptions
 - 
  
  
 
Definition at line 186 of file class.ilMediaObjectsPlayerWrapperGUI.php.
References $id, $url, ilMediaCastSettings\_getInstance(), ilObject\getId(), ilObjMediaObject\getMediaItem(), ilObjMediaObject\getStandardSrc(), and ILIAS\Repository\int().
Referenced by getComponent().
  189      : ?\ILIAS\UI\Component\Player\Video {
   190         $main_tpl = $this->gui->ui()->mainTemplate();
   192         $ctrl = $this->gui->ctrl();
   196         if (is_null($med) || !$this->media_type->isVideo($med->getFormat())) {
   202         $video = $this->gui->ui()->factory()->player()->video(
   207         if ($tracking_container_ref_id > 0) {
   210             $treshold = (
int) $mcst_settings->getVideoCompletionThreshold();
   212             $main_tpl->addJavaScript(
"assets/js/MediaObjectsCompletion.js");
   213             $ctrl->setParameter($this, 
"mob_tracking_ref_id", $tracking_container_ref_id);
   214             $ctrl->setParameter($this, 
"mob_tracking_mob_id", $mob->
getId());
   215             $url = $ctrl->getLinkTarget($this, 
"saveCompletion");
   216             $audio = $video->withAdditionalOnLoadCode(
function (
$id) use (
$url, $treshold) {
   218                 document.getElementById(
'$id').dataset.mobCompletionCallback = 
'$url';
   219                 document.getElementById(
'$id').dataset.mobCompletionThreshold = 
'$treshold';
   220                 il.MediaObjectsCompletion.init();
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
 
 
 
◆ $domain
◆ $gui
◆ $media_type
  
  
      
        
          | ILIAS MediaObjects MediaType MediaTypeManager ilMediaObjectsPlayerWrapperGUI::$media_type | 
         
       
   | 
  
protected   | 
  
 
 
◆ $request
  
  
      
        
          | ILIAS MediaObjects Player PlayerGUIRequest ilMediaObjectsPlayerWrapperGUI::$request | 
         
       
   | 
  
protected   | 
  
 
 
◆ $tracking
  
  
      
        
          | ILIAS MediaObjects Tracking TrackingManager ilMediaObjectsPlayerWrapperGUI::$tracking | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: