373   HTML JS

1,通过纯HTML5

<video width="320" height="240" controls="controls">
  <!-- Internet Explorer、Chrome 以及 Safari -->
  <source src="movie.mp4" type="video/mp4" />
  <!-- Firefox 和 Opera -->
  <source src="movie.ogg" type="video/ogg" />
  <source src="movie.webm" type="video/webm" />
  <object data="movie.mp4" width="320" height="240">
    <!-- Flash插件,ios 不支持 -->
    <embed src="movie.swf" width="320" height="240" />
  </object>
</video>

 

 

2,借助外部视频播放器

<embed src="http://player.youku.com/player.php/sid/XMzI2NTc4NTMy/v.swf" 
width="480" height="400" 
type="application/x-shockwave-flash">
</embed>



Leave a Reply

Your email address will not be published. Required fields are marked *