用的是googleplayer播放器,方法如下:
http://download.csdn.net/source/2371117
有缩略图点击播放:
<embed src="http://video.google.com/googleplayer.swf?videoUrl=http://music1.hexun.com/Save/Video/2006/1206/126/M_7E83044DFF2983F3.FLV&thumbnailUrl=http://www.eooeo.com/IMAGES1/top2.jpg&playerMode=normal" type="application/x-shockwave-flash" wmode="transparent" quality="high" width="450" height="370" autostart="true"></embed>
有缩略图自动播放:
<embed src="http://video.google.com/googleplayer.swf?videoUrl=http://music1.hexun.com/Save/Video/2006/1206/126/M_7E83044DFF2983F3.FLV&thumbnailUrl=http://www.eooeo.com/IMAGES1/top2.jpg&playerMode=normal&autoPlay=true" type="application/x-shockwave-flash" wmode="transparent" quality="high" width="450" height="370" autostart="true"></embed>
缩率图也可以不要:
<embed src="http://video.google.com/googleplayer.swf?videoUrl=http://music1.hexun.com/Save/Video/2006/1206/126/M_7E83044DFF2983F3.FLV" type="application/x-shockwave-flash" wmode="transparent" quality="high" width="450" height="370" autostart="true"></embed>
但是存在实际尝试了n遍,发现无效。播放器放在本地可以,但是flv视频放在本地就无效,视频不大就几分钟的视频。
而如果flv是网络视频,则又可以。
我在Tomcat下测试的,使用的是8080端口。比如项目名为Demo,视频放在WebRoot下,则我引用本地视频的网址是:
http://localhost:8080/Demo/shipin.flv
求高人支个招!