3

I am using HTML5 Video with this code:

<div id="lightBox1" class="lightBox">
    <video id="video" controls preload="metadata">
        <source width="100%" height="470" src="/ImageworkzAsia/video/iworkzvid.mp4" type="video/mp4">
        <source width="100%" height="470" src="/ImageworkzAsia/video/iworkzvid.ogv" type="video/ogg">
        <source width="100%" height="470" src="/ImageworkzAsia/video/iworkzvid.m4v" type="video/m4v">
        <p style="text-align:center;">Your browser does not support HTML5 Video.</p><br />
    </video>
</div>

The problem is that it does not play in Mobile Safari but it does play in desktop Safari. It also plays in chrome, firefox as expected. I have not yet tested this in an android device. Any ideas ?

4

2 回答 2

3

几件事要尝试:

  1. 在“Video src”属性中使用绝对 URL

  2. 某些设备可能需要很少的额外时间来加载视频

  3. 更换设备并尝试(如您所说)

希望这会有所帮助。

于 2012-05-24T06:45:07.033 回答
-3

您的手机浏览器可能不支持 HTML5 ..

于 2012-05-24T07:52:22.500 回答