[GH-ISSUE #454] 如何让mkv文件在浏览器直接播放,而不是下载 #244

Closed
opened 2026-04-08 16:51:27 +03:00 by zhus · 3 comments
Owner

Originally created by @carlsue on GitHub (Sep 11, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/454

如题。如何让mkv文件在浏览器直接播放,而不是下载。
我看了下https://github.com/sigoden/dufs/tree/main/assets/index.js 其中const IFRAME_FORMATS =可以添加后缀,是不是添加重新编译就可以了呢?

Originally created by @carlsue on GitHub (Sep 11, 2024). Original GitHub issue: https://github.com/sigoden/dufs/issues/454 如题。如何让mkv文件在浏览器直接播放,而不是下载。 我看了下https://github.com/sigoden/dufs/tree/main/assets/index.js 其中const IFRAME_FORMATS =可以添加后缀,是不是添加重新编译就可以了呢?
zhus closed this issue 2026-04-08 16:51:27 +03:00
Author
Owner

@sigoden commented on GitHub (Sep 11, 2024):

No, modern browsers like Chrome don't natively support the MKV (Matroska) video format.

<!-- gh-comment-id:2342963317 --> @sigoden commented on GitHub (Sep 11, 2024): No, modern browsers like Chrome don't natively support the MKV (Matroska) video format.
Author
Owner

@ElTopo commented on GitHub (Sep 22, 2024):

@carlsue With chrome/edge, you can install "Media Player" addon, and then right click on .mkv file link, use "Play with Media Player", the .mkv will be played in a browser window (if Media Player addon has proper codec).

See:
https://chromewebstore.google.com/detail/mediaplayer-video-and-aud/mgmhnaapafpejpkhdhijgkljhpcpecpj?snuoi&pli=1

<!-- gh-comment-id:2365481866 --> @ElTopo commented on GitHub (Sep 22, 2024): @carlsue With chrome/edge, you can install "Media Player" addon, and then right click on .mkv file link, use "Play with Media Player", the .mkv will be played in a browser window (if Media Player addon has proper codec). See: https://chromewebstore.google.com/detail/mediaplayer-video-and-aud/mgmhnaapafpejpkhdhijgkljhpcpecpj?snuoi&pli=1
Author
Owner

@carlsue commented on GitHub (Sep 24, 2024):

@carlsue With chrome/edge, you can install "Media Player" addon, and then right click on .mkv file link, use "Play with Media Player", the .mkv will be played in a browser window (if Media Player addon has proper codec).

See: https://chromewebstore.google.com/detail/mediaplayer-video-and-aud/mgmhnaapafpejpkhdhijgkljhpcpecpj?snuoi&pli=1

it's working,thanks!

<!-- gh-comment-id:2370000102 --> @carlsue commented on GitHub (Sep 24, 2024): > @carlsue With chrome/edge, you can install "Media Player" addon, and then right click on .mkv file link, use "Play with Media Player", the .mkv will be played in a browser window (if Media Player addon has proper codec). > > See: https://chromewebstore.google.com/detail/mediaplayer-video-and-aud/mgmhnaapafpejpkhdhijgkljhpcpecpj?snuoi&pli=1 it's working,thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#244