-
-
Notifications
You must be signed in to change notification settings - Fork 312
Description
Description
It seems that Chrome 81 has started reporting the mimetype of recorded videos as video/x-matroska
instead of the previous video/webm
. This breaks the filename-generation code in videojs-record:
videojs-record/src/js/utils/file-util.js
Line 90 in 1130ed4
let fileExtension = '.' + fileObj.type.split('/')[1]; |
The file extension becomes x-matroska
which can't be played.
This only happens on macOS – Windows is not affected.
Steps to reproduce
Record a video with videojs-record. Get video blob with .convertedData
-- use .convertedData.name
to save file.
JSBin example based off examples/video-only.html
:
https://output.jsbin.com/bobexem (source)
Results
Expected
.recordedData.name
to be 945380622933178.mkv
or 945380622933178.webm
Actual
.recordedData.name
is 945380622933178.x-matroska
Error output
No errors.
Additional Information
versions
videojs
3.11.0 (latest, but most likely all previous versions are affected too)
browsers
Chrome 81
OSes
macOS 10.15 (Catalina) down to macOS 10.9 (Yosemite).
Windows 10 is not affected.