Html视频ogg不工作
大家好,有人能解释一下为什么当我尝试使用Firefox的oog视频时,它不起作用。别介意我用的把手。mp4可以正常工作,但oog有一个错误 错误Html视频ogg不工作,html,firefox,meteor,video,Html,Firefox,Meteor,Video,大家好,有人能解释一下为什么当我尝试使用Firefox的oog视频时,它不起作用。别介意我用的把手。mp4可以正常工作,但oog有一个错误 错误 HTTP “Content-Type” of “text/html” is not supported. 代码 <div class="video-cont"> <video class="responsive-video center-align" id="video-player" > <source
HTTP “Content-Type” of “text/html” is not supported.
代码
<div class="video-cont">
<video class="responsive-video center-align" id="video-player" >
<source src={{video}} type="video/ogg">
</video>
您的HTTP服务器未配置为正确处理
ogg
文件。当浏览器请求something.ogg
时,服务器的响应是“这是一个HTML文档”,然后是somthing.ogg
的内容
您需要配置HTTP服务器以发送正确的内容类型HTTP响应头。好的,在meteor服务器上执行此操作是有意义的,我不知道,但我会研究一下。您知道如何在meteor中执行此操作吗