Verwendung: Download unterbinden in contao 4.9 html5 videoplayer
Produkt: Oneo Contao
Contao-Version: 4.9.0
Browser und Browserversionen: Google Chrome ist auf dem neuesten Stand. Version 80.0.3987.162 (Offizieller Build) (64-Bit)
Liebes Supportteam,
ich möchte den Download von Videos im html5 videoplayer beim Theme Oneo verhindern und habe dafür das Template oneo/ce_player.html5 folgendermaßen angepasst:
<?php $this->extend('ce_player') ?>
<?php
if (!$this->isVideo) {
$this->size = ' width="100%"';
$this->attributes = array_merge($this->attributes, ['controlslist="nodownload"']);
}
?>
Leider zeigt der html5 Videoplayer trotzdem noch den Downloadbutton an. Was mache ich falsch?
Vielen Dank für einen letzten Tipp, würde mir sehr helfen ;-)
-
Download_html5-Player.jpg 298 KB
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by RockSolid Theme... on 01 Dec, 2020 11:16 AM
Vielen Dank für Ihre Frage.
Mit
if (!$this->isVideo)
wird der entsprechende Code nur für die Audio-Player angewendet. Damit alle Player dascontrolslist="nodownload"
-Attribut erhalten kann das Template z. B. folgendermaßen aussehen: