diff options
-rw-r--r-- | templates/embed.tpl | 6 | ||||
-rw-r--r-- | templates/video.tpl | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/templates/embed.tpl b/templates/embed.tpl index 4cf4135..b3c4cef 100644 --- a/templates/embed.tpl +++ b/templates/embed.tpl @@ -35,7 +35,7 @@ </script> </head> <body> - <video id="player-ply" controls poster="{$librethumb}" data-setup="{}"> + <video id="player" controls poster="{$librethumb}" data-setup="{}"> {$breaklink} {foreach $streamFormats as $stream} <source data-res="{trim($stream->resolution, 'p')}" src="{$stream->url}" type='{$stream->type}'/> @@ -46,7 +46,7 @@ <script> // @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later document.addEventListener('DOMContentLoaded', () => { - const player = new Plyr(document.getElementById('player-ply'), { + const player = new Plyr(document.getElementById('player'), { disableContextMenu: false, controls: [ 'play-large', @@ -61,8 +61,6 @@ 'fullscreen' ] }); - // debug - // window.player = player; }); // @license-end </script> diff --git a/templates/video.tpl b/templates/video.tpl index 13b36cf..2e413db 100644 --- a/templates/video.tpl +++ b/templates/video.tpl @@ -84,7 +84,7 @@ {/foreach} {$breakdownload} <div class="librevideojs"> - <video id="player-ply" + <video id="player" poster="{$librethumb}" controls playsinline @@ -102,7 +102,7 @@ <!--Plyr--> <script> document.addEventListener('DOMContentLoaded', () => { - const player = new Plyr(document.getElementById('player-ply'), { + const player = new Plyr(document.getElementById('player'), { disableContextMenu: false, controls: [ 'play-large', @@ -117,8 +117,6 @@ 'fullscreen' ] }); - // debug - // window.player = player; }); </script> <!--EndPlyr--> |