aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2018-04-01 15:33:51 +0200
committerMaZderMind2018-04-01 15:33:56 +0200
commit87a835bca8da9592fb2df20b621986cbf63b2350 (patch)
tree16b11ec03e3fb26ceb0341d5637287682fc048f7
parent41291d16a45d556ca8ba6310c060114ea90c50fb (diff)
fix bw-labeling for Safari/HLS, fixes #65"
Diffstat (limited to '')
-rw-r--r--template/assemblies/player/dash.phtml5
1 files changed, 4 insertions, 1 deletions
diff --git a/template/assemblies/player/dash.phtml b/template/assemblies/player/dash.phtml
index f2a4140..8e43864 100644
--- a/template/assemblies/player/dash.phtml
+++ b/template/assemblies/player/dash.phtml
@@ -61,7 +61,10 @@
},
levelSelectorConfig: {
labelCallback: function(playbackLevel, customLabel) {
- var bw = playbackLevel.videoBandwidth;
+ // playbackLevel.videoBandwidth is set for DASH
+ // playbackLevel.level.bitrate is set for HLS
+ var bw = playbackLevel.videoBandwidth || playbackLevel.level.bitrate;
+
if(bw <= 100000) {
return 'Slides';
}