aboutsummaryrefslogtreecommitdiffstats
path: root/templates/embed.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/embed.tpl')
-rw-r--r--templates/embed.tpl67
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>