We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c25331c commit abe3247Copy full SHA for abe3247
1 file changed
src/loader/filetypes/VideoFile.js
@@ -259,12 +259,21 @@ VideoFile.getVideoURL = function (game, urls)
259
{
260
var url = GetFastValue(urls[i], 'url', urls[i]);
261
262
- if (url.indexOf('blob:') === 0 || url.indexOf('data:') === 0)
+ if (url.indexOf('blob:') === 0)
263
264
return url;
265
}
266
267
- var videoType = url.match(/\.([a-zA-Z0-9]+)($|\?)/);
+ var videoType;
268
+
269
+ if (url.indexOf('data:') === 0)
270
+ {
271
+ videoType = url.split(',')[0].match(/\/(.*?);/);
272
+ }
273
+ else
274
275
+ videoType = url.match(/\.([a-zA-Z0-9]+)($|\?)/);
276
277
278
videoType = GetFastValue(urls[i], 'type', (videoType) ? videoType[1] : '').toLowerCase();
279
0 commit comments