Skip to content

Filename extension is .x-matroska instead of .mkv #464

@malthejorgensen

Description

@malthejorgensen

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions