我在 Firefox 中播放 mp4 时遇到了一些问题(这并不奇怪)。大多数时候,建议在我的 .htaccess 文件中添加一些 MIME 类型。就像是:
AddType video/mp4 mp4 m4v
AddType audio/mp4 m4a
AddType video/ogg ogv
AddType audio/ogg ogg oga
AddType video/webm webm
有些人提出了相同的建议,但有一个前导点:
AddType video/mp4 .mp4 .m4v
AddType audio/mp4 .m4a
AddType video/ogg .ogv
AddType audio/ogg .ogg .oga
AddType video/webm .webm
这两个片段有什么区别?
最佳答案
The extension argument is case-insensitive and can be specified with or without a leading dot.
所以简而言之,这没什么区别,它们都会达到相同的结果。 Read more about AddType here.
关于.htaccess - .htaccess 中的 MIME 类型带或不带前导点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18485765/