1

我不明白为什么我的嵌入式总是自动播放。

<div id="body15">
    <video width="480" height="270" controls>
        <source src="videos/ryan1.ogg" type="video/ogg">
        <source src="videos/ryan1.mp4" type="video/mp4">
        <source src="videos/ryan1.webm" type="video/webm">
        <object data="videos/ryan1.mp4" width="480" height="270">
            <embed width="600" height="270" src="movie.swf">
        </object>
    </video>
</div>
4

1 回答 1

1

你试过controls="controls"吗?

<video width="480" height="270" controls="controls">
    <source src="videos/ryan1.ogg" type="video/ogg">
    <source src="videos/ryan1.mp4" type="video/mp4">
    <source src="videos/ryan1.webm" type="video/webm">
    <object data="videos/ryan1.mp4" width="480" height="270">
        <embed width="600" height="270" src="movie.swf">
    </object>
</video>
于 2012-12-30T00:54:11.073 回答