Commit 59490244 by Ned Batchelder Committed by GitHub

Merge pull request #16193 from open-craft/josh/fix-vimeo-m3u8-urls

Fix regex in video xmodule to check for HTML5 video urls which contain parameters
parents 5cc73bc7 4c3ea079
...@@ -286,7 +286,7 @@ function(VideoPlayer, i18n, moment, _) { ...@@ -286,7 +286,7 @@ function(VideoPlayer, i18n, moment, _) {
*/ */
function extractHLSVideoSources(state) { function extractHLSVideoSources(state) {
return _.filter(state.config.sources, function(source) { return _.filter(state.config.sources, function(source) {
return /\.m3u8$/.test(source); return /\.m3u8(\?.*)?$/.test(source);
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment