diff options
author | Anton Schubert | 2017-12-23 21:59:23 +0100 |
---|---|---|
committer | MaZderMind | 2018-01-24 23:33:55 +0100 |
commit | 317f94d5e3c80f5b342208bad5192a0139a398ea (patch) | |
tree | 9b3a55beafb90131bb812f86f7ed87b870ef636c /template/assemblies/player | |
parent | 80f79007a7ddcfe51b441ff601bdc65e4fa2d40e (diff) |
update adaptive player plugins for better hls
Diffstat (limited to 'template/assemblies/player')
-rw-r--r-- | template/assemblies/player/dash.phtml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/template/assemblies/player/dash.phtml b/template/assemblies/player/dash.phtml index 9ca654b..54f685c 100644 --- a/template/assemblies/player/dash.phtml +++ b/template/assemblies/player/dash.phtml @@ -11,9 +11,9 @@ interference with the new dash-player. --> <script type="text/javascript"> - var nativeHLS = document.createElement('video').canPlayType('application/vnd.apple.mpegURL') != ""; + var hasWebM = document.createElement('video').canPlayType('video/webm') != ""; var player = new Clappr.Player({ - source: nativeHLS ? '<?=h($room->getHLSPlaylistUrl())?>' : '<?=h($room->getDashManifestUrl())?>', + source: hasWebM ? '<?=h($room->getDashManifestUrl())?>' : '<?=h($room->getHLSPlaylistUrl())?>', width: "100%", plugins: [DashShakaPlayback, LevelSelector, AudioSelector], shakaConfiguration: { @@ -27,6 +27,12 @@ }, levelSelectorConfig: { labels: { + // HLS + 0: 'Slides', + 1: 'SD', + 2: 'HD', + + // DASH 7: 'HD', 8: 'SD', 9: 'Slides', |