aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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';
}