4. HTML 视频

一:

    方法:

 

1. <embed> 标签

    <embed src = "movie.swf" height = "200" width = "200" />

 

2. <object>

    <object data = "movie.swf" />

 

3. 最好的解决方法。

    HTML5 + <object> + <embed>

    <video width = "320" height = "240" controls = "controls">

        <source src = "movie.mp4" type = "video/mp4" />

        <source src = "movie.ogg" type = "video/ogg" />

        <source src = "movie.webm" type = "video/webm" />

        <object data = "movie.mp4" width = "320" height = "240">

            <embed  src = "movie.swf" width = "320" height = "240" />

        </object>

    </video>

 

注释, 使用<!DOCTYPE html> (HTML 5)解决验证问题。

 

4. 优酷解决方案

    上传到优酷等视频空间。

    <embed src = "......" widht = "320" height = "240" type = "application/x-shockwave-flash">

    </embed>

 

5. 使用超链接

    <a href = "movie.swf">Play the video.</a>

posted @ 2013-07-22 15:57  安心种田  阅读(246)  评论(0编辑  收藏  举报