简体   繁体   English

在外部播放器中打开媒体文件

[英]Open Media File In External Player

Is there a way to make a browser open video links in an external player? 有没有一种方法可以使浏览器在外部播放器中打开视频链接? Similar to how mailto links are handled. 类似于处理mailto链接的方式。

Specifically, I'd like to be able to link to an mp4 file but open an external player specified by the user. 具体来说,我希望能够链接到mp4文件,但是打开用户指定的外部播放器。 Thanks! 谢谢!

Just link to it. 只需链接到它。

Keep in mind that sometimes that "external player" though is the browser itself, and there's nothing you can/should do about this, if you want to go the "pure" route. 请记住,有时“外部播放器”虽然是浏览器本身,但是如果您想走“纯”路线,对此您无能为力。

For some players, you could use an M3U file. 对于某些播放器,您可以使用M3U文件。 So, just a text file formatted like this: 因此,只是一个文本文件,其格式如下:

#EXTM3U
https://example.com/your-video.mp4

Use application/mpegurl for the content type. 使用application/mpegurl作为内容类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM