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
This commit is contained in:
Ned Batchelder
2017-10-23 14:23:06 -04:00
committed by GitHub

View File

@@ -286,7 +286,7 @@ function(VideoPlayer, i18n, moment, _) {
*/
function extractHLSVideoSources(state) {
return _.filter(state.config.sources, function(source) {
return /\.m3u8$/.test(source);
return /\.m3u8(\?.*)?$/.test(source);
});
}