diff --git a/xmodule/js/src/video/02_html5_hls_video.js b/xmodule/js/src/video/02_html5_hls_video.js index cb6a1a2fda27..ce1db6ae068c 100644 --- a/xmodule/js/src/video/02_html5_hls_video.js +++ b/xmodule/js/src/video/02_html5_hls_video.js @@ -26,6 +26,12 @@ // do common initialization independent of player type this.init(el, config); + // set a default audio codec if not provided, this helps reduce issues + // switching audio codecs during playback + if (!this.config.defaultAudioCodec) { + this.config.defaultAudioCodec = "mp4a.40.5"; + } + _.bindAll(this, 'playVideo', 'pauseVideo', 'onReady'); // If we have only HLS sources and browser doesn't support HLS then show error message.