diff options
author | Jesús <heckyel@hyperbola.info> | 2020-12-06 17:10:40 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-12-06 17:10:40 -0500 |
commit | 6a3a940d7344a81081294d9ad3a33b75af303ced (patch) | |
tree | f8eb6c190123e6fb24614deb6cfd80909ae465f9 /templates/embed.tpl | |
parent | 8103275cffa5aeb2a38a46b6121545f622178c41 (diff) | |
download | ytlibre-6a3a940d7344a81081294d9ad3a33b75af303ced.tar.lz ytlibre-6a3a940d7344a81081294d9ad3a33b75af303ced.tar.xz ytlibre-6a3a940d7344a81081294d9ad3a33b75af303ced.zip |
Make core extract
Diffstat (limited to 'templates/embed.tpl')
-rw-r--r-- | templates/embed.tpl | 67 |
1 files changed, 37 insertions, 30 deletions
diff --git a/templates/embed.tpl b/templates/embed.tpl index b29dd68..085a8bb 100644 --- a/templates/embed.tpl +++ b/templates/embed.tpl @@ -41,39 +41,46 @@ </script> </head> <body> - <video id="player" controls poster="{$librethumb}" data-setup="{}"> - {if $breaklink === TRUE} - <source data-res="{$breakquality}" src="{$breakurl}" type='{$formatdrm}'/> - {else} + {if $islive == false } + <video id="player" + poster="{$videoThumbURL}" + controls + playsinline + onmouseleave='{$videoTitle}' + oncontextmenu='{$videoTitle}' + onmouseenter='{$videoTitle}' + title='{$videoTitle}'> {foreach $streamFormats as $stream} - <source data-res="{trim($stream->resolution, 'p')}" src="{$stream->url}" type='{$stream->type}'/> + <source data-res="{trim($stream['resolution'], 'p')}" src="{$stream['url']}" type='{$stream['type']}'/> {/foreach} - {/if} - <p>Lo siento, este navegador no soporta vídeo en HTML5. Por favor, cambia o actualiza tu navegador web</p> - </video> - <!--Plyr--> - <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'), { - disableContextMenu: false, - controls: [ - 'play-large', - 'play', - 'progress', - 'current-time', - 'mute', - 'volume', - 'captions', - 'settings', - 'download', - 'fullscreen' - ] + <p>Lo siento, este navegador no soporta vídeo en HTML5. Por favor, cambia o actualiza tu navegador web</p> + </video> + <!--Plyr--> + <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'), { + disableContextMenu: false, + controls: [ + 'play-large', + 'play', + 'progress', + 'current-time', + 'mute', + 'volume', + 'captions', + 'settings', + 'download', + 'fullscreen' + ] + }); }); - }); - // @license-end - </script> - <!--EndPlyr--> + // @license-end + </script> + <!--EndPlyr--> + {else} + <p>I sorry not live support for now.</p> + {/if} <script src="{$javascript.plyr}" integrity="sha512-YjLaaKupD6GUZwnkLn8LbzL73ZhgY01zYCaeCscD/+khdOtmPfz02tw/cb9kYySUSPlpQoBT8HGY/ggiKAjA7A=="></script> </body> </html> |