aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player/dash.phtml
blob: 8a70d258f063327782cd7bbc17fc9fca79cd2915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<script type="text/javascript" src="<?=h($assets)?>clapprio/clappr.min.js"></script>
<script type="text/javascript" src="<?=h($assets)?>clapprio/dash-shaka-playback.js"></script>
<script type="text/javascript" src="<?=h($assets)?>clapprio/level-selector.min.js"></script>
<script type="text/javascript" src="<?=h($assets)?>clapprio/audio-selector.min.js"></script>

<div class="dashContainer">
	<div id="player"></div>
</div>

<!--
 this is an experimental hack, trying to protect the remaining page from
 interference with the new dash-player.
-->
<script type="text/javascript">
	var player = new Clappr.Player({
			// source: "http://dash.edgesuite.net/envivio/EnvivioDash3/manifest.mpd",
			source: '<?=h($room->getDashManifestUrl())?>',
			width: "100%",
			plugins: [DashShakaPlayback, LevelSelector, AudioSelector],
			shakaConfiguration: {
				preferredAudioLanguage: 'de-DE',
				streaming: {
					rebufferingGoal: 15
				}
			},
			autoPlay: true,
			parentId: '#player'
		});
</script>
<style type="text/css">
#player > [data-player] {
	padding-bottom: 56.25%;
	height: auto !important;
}
body.room .player-wrap.tab-content {
	padding: 0;
}
.level_selector[data-level-selector] {
	margin-top: 7px;
}
.level_selector[data-level-selector] button,
.level_selector[data-level-selector] li {
	font-size: 12px;
}
</style>