r/firefox • • 18d ago

💻 Help Does FF not support embedded mkv-videos?

This works:

<video width="400" controls> <source src="test1.mp4" type="video/mp4"></video>

This doesn't work:

<video width="400" controls> <source src="test2.mkv" type="video/mkv"></video>

6 Upvotes

2 comments sorted by

3

u/Lundorff 18d ago

And changing it from video/mkv to video/x-matroska makes no difference.

I can play mkv-files directly i.e. these links https://test-videos.co.uk/jellyfish/mkv but I can't embed it.

2

u/juraj_m www.FastAddons.com 18d ago

MKV should be supported since Firefox 145:
https://bugzilla.mozilla.org/show_bug.cgi?id=1422891

But they mention video type as "video/x-matroska", and that seems to work.

Open the page you've linked, open console, and execute this to create a video element on top of the page:

document.body.prepend(Object.assign(document.createElement('video'), {src: 'https://test-videos.co.uk/vids/jellyfish/mkv/360/Jellyfish_360_10s_1MB.mkv', type: 'video/x-matroska', controls: true}))