tag:help.rocksolidthemes.com,2012-07-23:/discussions/contao/62742-verwendung-download-unterbinden-in-contao-49-html5-videoplayerRockSolid Themes: Discussion 2020-12-01T11:16:26Ztag:help.rocksolidthemes.com,2012-07-23:Comment/488687522020-12-01T11:16:24Z2020-12-01T11:16:24ZVerwendung: Download unterbinden in contao 4.9 html5 videoplayer<div><p>Vielen Dank für Ihre Frage.</p>
<p>Mit <code>if (!$this->isVideo)</code> wird der entsprechende Code nur für die Audio-Player angewendet. Damit alle Player das <code>controlslist="nodownload"</code>-Attribut erhalten kann das Template z. B. folgendermaßen aussehen:</p>
<pre>
<code><?php $this->extend('ce_player') ?>
<?php
if (!$this->isVideo) {
$this->size = ' width="100%"';
}
$this->attributes = array_merge($this->attributes, ['controlslist="nodownload"']);
?></code>
</pre></div>RockSolid Themes