Browse Source

update livestream

main
Hendrik Langer 4 years ago
parent
commit
60e2b8b69d
  1. 33
      content/live/index.de.html
  2. 10
      content/live/index.de.md
  3. 1
      content/live/index.en.html
  4. 1
      content/live/index.en.md
  5. 2
      layouts/shortcodes/rawhtml.html

33
content/live/index.de.html

@ -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>

10
content/live/index.de.md

@ -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
content/live/index.en.html

@ -1 +0,0 @@
index.de.html

1
content/live/index.en.md

@ -0,0 +1 @@
index.de.md

2
layouts/shortcodes/rawhtml.html

@ -0,0 +1,2 @@
<!-- raw html -->
{{.Inner}}
Loading…
Cancel
Save