求网页中的视频播放代码
答案:1 悬赏:20 手机版
解决时间 2021-08-18 00:51
- 提问者网友:太高姿态
- 2021-08-17 16:59
需要显示控制条的(可拖动),而且声音大小也可以用的,我的视频格式是swf,其他格式的也有,最主要的是可以在大多数电脑上可以播放,如果不是window media player的更好,最主要的是兼容更多的电脑,高手,拜托了……
最佳答案
- 五星知识达人网友:独行浪子会拥风
- 2021-08-17 17:44
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns=" http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>視頻播放</title></head><body><script language="javascript" type="text/javascript" src=" http://bj.homev.cn/sale/jS/swfobject.js"></script></head><body> <!--视频播放器--><div class="z_shipin"><div id="HouseVideo"></div><script language="javascript" type="text/javascript">var first_img = ' http://bj.images.homev.cn/Sale/MAX//2008/5/21/200805211138365724.jpg';var player = new SWFObject(" http://lib.homev.cn/player/v1/videoPlayerV1.swf", "newIndexFlash", "468", "386", "9", "#FFffff");var videoindex = 0;player.addParam("allowScriptAccess","sameDomain");player.addParam("bgcolor","#effff0");player.addParam("allowFullScreen","true"); player.addVariable("videoList","[]");player.addVariable("videoListType",0);////服务器player.addVariable("host"," http://bj.homev.cn/sale/");//视频地址类型1为id//0为绝对地址。player.addVariable("videoUrlType",1);player.addVariable("navToVideoDetailEnabled",-1);player.addVariable("path","");player.addVariable("parentId",173788);player.addVariable("videoId",485);player.addVariable("currentVideoImg",first_img);if ( document.getElementById("HouseVideo") != null ) player.write("HouseVideo");</script><!--视频播放器结束--></body></html>
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯