From 87a835bca8da9592fb2df20b621986cbf63b2350 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 1 Apr 2018 15:33:51 +0200 Subject: fix bw-labeling for Safari/HLS, fixes #65" --- template/assemblies/player/dash.phtml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'template/assemblies/player/dash.phtml') 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'; } -- cgit v1.2.3