Go homepage(回首页) Upload pictures (上传图片) Write articles (发文字帖)
The author:(作者)归海一刀published in(发表于) 2014/3/30 5:35:52 符合web标准的媒体播放器代码_[Html教程]_0
再见了Embed,一些媒体播放器的符合web标准的代码
由于Embed标签是Netscape的私有财产,故一直未被W3C认可,对于各种媒体文件使用Embed标签是非标准的,如何改变?Elizabeth Castro的 Bye Bye Embed 一文对于各种媒体播放器给出了很好的符合web标准的代码。
在线媒体播放--Google Video and YouTube
data="http://video.google.com/googleplayer.swf? »8755581808731033658" width="400" height="326" id="VideoPlayback"> value="http://video.google.com/googleplayer.swf? »docId=8755581808731033658" />
其实就是FLASH文件的调用
Windows Media Player 文件
data="http://www.sarahsnotecards.com/catalunyalive/ »fishstore.wmv" width="320" height="260"> value="http://www.sarahsnotecards.com/catalunyalive/ »fishstore.wmv" />
上面的代码没有Windows Media Player特有的classid,作者在IE5.5, IE6, IE7, Opera Win/Mac, Firefox Win/Mac, Safari下测试通过。
QuickTime movies 没有 embed 标签
codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="320" height="260"> value="http://www.sarahsnotecards.com/catalunyalive/ »diables.mov" /> data="http://www.sarahsnotecards.com/catalunyalive/ »diables.mov" width="320" height="260">
赞