最近刚做完一个在线视频点播,开始时试图使用Html页面下传统的来实现,但最总发现在JSP页面下视频无法播放,于是上网搜了一些帖子,一边研读一边尝试,由于这其中大部分是转帖,代码没经过验证,所以只有少数的代码可以运行,现总结如下。
1、传统的html格式下的实现方法
简易型:
type=audio/mpeg loop="0">
标签型:
width=240 height=140 transparentatstart=true animationatstart=false
autostart=true
autosize=false volume=100 displaysize=0 showdisplay=true
showstatusbar=true showcontrols=true showaudiocontrols=true showtracker=true
showpositioncontrols=true balance=true
src="路径">
多功能型 不仅可以放曲子,还能放Flash和其它视频文件。
align=middle classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
class=OBJECT
id=MediaPlayer width=196
height=196>
value=0