From 0a3d8781cf496c0e132252679be3f4c18d5db113 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 3 Nov 2016 12:59:28 -0400 Subject: [PATCH] update audio fix --- dashboard-ui/scripts/mediaplayer.js | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/dashboard-ui/scripts/mediaplayer.js b/dashboard-ui/scripts/mediaplayer.js index cfcae08d5..badca83b1 100644 --- a/dashboard-ui/scripts/mediaplayer.js +++ b/dashboard-ui/scripts/mediaplayer.js @@ -153,24 +153,16 @@ define(['appSettings', 'userSettings', 'appStorage', 'datetime'], function (appS if (!AppInfo.isNativeApp) { var disableHlsVideoAudioCodecs = []; - if (!self.canPlayNativeHls()) { - // hls.js does not support this + if (!self.canPlayNativeHls() || (browserInfo.edge && !item.RunTimeTicks)) { + // hls.js does not support these disableHlsVideoAudioCodecs.push('mp3'); - } - if (!item.RunTimeTicks) { - // hls.js does not support this disableHlsVideoAudioCodecs.push('ac3'); } - options.enableMkvProgressive = item.RunTimeTicks != null; - - if (item.RunTimeTicks == null) { - options.enableHls = true; - } - options.enableMkvProgressive = false; options.disableHlsVideoAudioCodecs = disableHlsVideoAudioCodecs; } + return options; }