简体   繁体   English

网络上视频的最佳MIME类型是什么?

[英]What's the best MIME type for video on the web?

I'm the admin for a large media intensive site. 我是大型媒体密集型网站的管理员。 We've done some experimentation with our video MIME types. 我们已经对视频MIME类型做了一些实验。 We've alternated between forcing the download using Content-Disposition: attachment + Content-type: application/octet-stream and actually returning the proper MIME type. 我们在使用Content-Disposition:附件+ Content-type:application / octet-stream强制下载与实际返回正确的MIME类型之间进行了交替。

We've had complaints either way we set it up. 无论是哪种设置方式,我们都曾抱怨过。 With the proper MIME type many people have broken or incompatible browser plugins that try to play the content, but fail due to either format incompatibility or other issues. 使用正确的MIME类型,许多人尝试运行内容的浏览器插件已损坏或不兼容,但由于格式不兼容或其他问题而失败。 This leaves us with support emails trying to help customers configure their broken browsers. 这给我们留下了支持电子邮件,试图帮助客户配置损坏的浏览器。 On the other hand, not using the proper MIME types upsets people who like to click on a file and have the plugin launch shortly thereafter. 另一方面,不使用正确的MIME类型会使喜欢单击文件并在此后不久启动插件的人感到不适。

We've seen maybe 20% fewer complaints when forcing the browser to download the file, so we're pretty sure we're going to stick with that, but I'd like to hear what other people think about this, since it seems like a real gray area. 强迫浏览器下载文件时,我们收到的投诉可能减少了20%,因此,我们很确定自己会坚持这一点,但是我想听听其他人对此的看法,因为看来像一个真正的灰色区域。

For the record our file formats are WMV, XviD, QT mpeg4 mov, and Ipod m4v along with streaming flash. 为了记录在案,我们的文件格式是WMV,XviD,QT mpeg4 mov和Ipod m4v以及流媒体闪存。

是否可以同时提供这两个选项(例如,两个链接,一个链接说“观看电影[使用浏览器插件]”,另一个链接说“下载文件[如果观看失败]”和一个FAQ条目或类似的内容来解释)问题并提供一些典型的解决方案)?

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

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