diff --git a/components/ILIAS/UI/src/Implementation/Component/Player/Renderer.php b/components/ILIAS/UI/src/Implementation/Component/Player/Renderer.php index 8aa7d519b883..bd05fc0964a2 100755 --- a/components/ILIAS/UI/src/Implementation/Component/Player/Renderer.php +++ b/components/ILIAS/UI/src/Implementation/Component/Player/Renderer.php @@ -45,9 +45,6 @@ public function renderAudio(Component\Component $component, RendererInterface $d { $tpl = $this->getTemplate("tpl.audio.html", true, true); - $component = $component->withAdditionalOnLoadCode(function ($id) { - return "$('#$id').mediaelementplayer({stretching: 'responsive'});"; - }); $id = $this->bindJavaScript($component); if ($component->getTranscription() != "") { @@ -170,12 +167,4 @@ protected function isYoutube( } return false; } - - public function registerResources(\ILIAS\UI\Implementation\Render\ResourceRegistry $registry): void - { - parent::registerResources($registry); - $registry->register('https://player.vimeo.com/api/player.js'); - } - - } diff --git a/components/ILIAS/UI/src/templates/default/Player/tpl.audio.html b/components/ILIAS/UI/src/templates/default/Player/tpl.audio.html index be4d7212310f..5154733099b8 100755 --- a/components/ILIAS/UI/src/templates/default/Player/tpl.audio.html +++ b/components/ILIAS/UI/src/templates/default/Player/tpl.audio.html @@ -1,5 +1,5 @@