Hendrik Langer
4 years ago
5 changed files with 13 additions and 34 deletions
@ -1,33 +0,0 @@ |
|||
--- |
|||
title: Live |
|||
description: Livestream |
|||
#date: 2020-05-04 |
|||
license: All rights reserved |
|||
--- |
|||
|
|||
<script type="text/javascript" src="/js/clappr.min.js"></script> |
|||
<div class="embed-responsive embed-responsive-16by9"> |
|||
<div class="embed-responsive-item" id="player"></div> |
|||
</div> |
|||
<script> |
|||
var player = new Clappr.Player({ |
|||
source: "https://h3ndrik.de/hls/test.m3u8", |
|||
parentId: "#player", |
|||
language: 'de-DE', |
|||
poster: 'player.jpg', |
|||
//width: '100%', |
|||
//height: 'auto', |
|||
actualLiveTime: true, |
|||
autoPlay: true, |
|||
}); |
|||
|
|||
function resizePlayer(){ |
|||
var aspectRatio = 16/9; |
|||
var newWidth = document.getElementById('player').parentElement.offsetWidth; |
|||
var newHeight = Math.round(newWidth / aspectRatio); |
|||
player.resize({width: newWidth, height: newHeight}); |
|||
} |
|||
|
|||
resizePlayer(); |
|||
window.onresize = resizePlayer; |
|||
</script> |
@ -0,0 +1,10 @@ |
|||
--- |
|||
title: Live |
|||
description: Livestream |
|||
#date: 2020-05-04 |
|||
license: All rights reserved |
|||
--- |
|||
|
|||
<iframe width="720" height="405" sandbox="allow-same-origin allow-scripts allow-popups" src="https://tube.xd0.de/videos/embed/31980128-74cf-4090-b2d6-004d897c682d?autoplay=1&warningTitle=0" frameborder="0" allowfullscreen></iframe> |
|||
|
|||
|
@ -1 +0,0 @@ |
|||
index.de.html |
@ -0,0 +1 @@ |
|||
index.de.md |
@ -0,0 +1,2 @@ |
|||
<!-- raw html --> |
|||
{{.Inner}} |
Loading…
Reference in new issue