Html5 视频(mp4 & ogg)无法从 apache2/phusion-乘客上的流星应用程序中识别。
Apache MIME 类型已配置。
添加了 mp4 和 ogg 的乘客 MIME 类型:
video/mp4 mp4;
video/ogg ogg ogv;
我总是在火虫中收到以下消息:
HTTP "Content-Type" of "text/html" is not supported. Load of media resource myvideo.mp4 failed.
HTTP "Content-Type" of "text/html" is not supported. Load of media resource myvideo.ogg failed.
我该如何解决这个问题?会不会是流星问题?
我找到了答案,这有点奇怪...在这种情况下(流星/阿帕奇/乘客),视频的 MIMETYPE 需要大写。
<video ...>
<source src="/video/myvideo.MP4" type="video/mp4">
<source src="/video/myvideo.OGG" type="video/ogg">
</video>
myvideo.MP4而不是myvideo.mp4。