Browse Source

polish clappr.io

main
Hendrik Langer 5 years ago
parent
commit
7d22c2fed5
  1. 33
      content/live/index.de.html
  2. 21
      content/live/index.de.md
  3. 1
      content/live/index.en.html
  4. 1
      content/live/index.en.md
  5. 1
      static/js/clappr.min.js
  6. 1
      static/js/clappr.min.js.map

33
content/live/index.de.html

@ -0,0 +1,33 @@
---
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>

21
content/live/index.de.md

@ -1,21 +0,0 @@
---
title: Live
#date: 2020-05-04
license: All rights reserved
---
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/clappr@latest/dist/clappr.min.js"></script>
<div id="player"></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: '720',
actualLiveTime: true,
autoPlay: true,
});
</script>

1
content/live/index.en.html

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

1
content/live/index.en.md

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

1
static/js/clappr.min.js

File diff suppressed because one or more lines are too long

1
static/js/clappr.min.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save