在网页中嵌入视频播放器代码
网页插入FLASH播放器
插入各种网页播放器代码(2007-03-25 12:18:58)1、插入Flash代码:<embed src="Flash地址" width=500 height=340></embed>其中“Flash地址”必须以“http://”开头和“.swf”结尾,width是指播放画面宽度,height指高度。
如果需要居中,在上面代码前面加入<Palign=center>。
2、插入mp3代码:<EMBED src="mp3地址" width=310 height=35type=audio/x-pn-realaudio-plugin controls="ControlPanel,StatusBar" loop="true">支持rm或mid格式(随机播放):<EMBED src="rm\mp3\mid地址" width=150 height=25type=audio/x-pn-realaudio-plugin controls="ControlPanel" >非自动播放:<EMBED name=player1 src="rm\mp3地址" width=248 height=66type=audio/x-pn-realaudio-plugin border="0">隐藏mp3播放器:<embed width="0" height="0" src="MP3地址"type="application/x-shockwave-flash"></embed>3、视频常用播放器[MTV]<embed src="视频地址" type="audio/x-pn-realaudio-plugin"console="Clip1" controls="ControlPanel,StatusBar" height="330"width="450" >4、插入背景音乐的代码:<bgsound src="mp3\mid地址" loop="-1">音乐地址一般都以mid或者mp3的形式结尾后面的数字是播放次数。
video.js 用法
video.js 用法摘要:1.video.js 简介2.video.js 的使用方法3.video.js 的应用示例4.video.js 的优势与不足正文:【1.video.js 简介】video.js 是一款基于JavaScript 的视频播放器,它提供了一种简单、轻量级的方式在网页上嵌入视频。
video.js 可以兼容多种视频格式,如MP4、WebM 和Ogg 等,并且支持HTML5 视频元素。
使用video.js,用户可以在不依赖Flash 插件的情况下实现视频播放,从而提升网页的性能和用户体验。
【2.video.js 的使用方法】要使用video.js,首先需要在网页中引入video.js 的相关文件。
具体做法是,在HTML 文件中的<head> 标签内,加入以下代码:```html<script src="path/to/video.js"></script>```接下来,在HTML 文件中创建一个视频容器,例如:```html<div id="video-container"></div>```然后,在JavaScript 文件中,通过以下代码实例化video.js 播放器:```javascriptvar videoPlayer = videojs("video-container", {// 设置视频文件的URLsrc: "path/to/video.mp4",// 设置视频的标题title: "我的视频标题",// 设置视频的描述description: "这是一段视频描述"});```最后,通过videoPlayer 对象的方法和属性,可以实现视频播放、暂停、音量调整等功能。
【3.video.js 的应用示例】以下是一个简单的video.js 应用示例:1.创建一个HTML 文件,并在其中引入video.js:```html<!DOCTYPE html><html lang="zh"><head><meta charset="UTF-8"><title>video.js 示例</title><script src="path/to/video.js"></script></head><body><div id="video-container"></div><script src="script.js"></script></body></html>```2.创建一个JavaScript 文件(如script.js),实例化video.js 播放器:```javascriptvar videoPlayer = videojs("video-container", {src: "path/to/video.mp4",title: "我的视频标题",description: "这是一段视频描述"});```通过这种方式,可以在网页上实现视频播放功能。
如何在网页设计中插入视频播放器
如何在网页设计中插入视频播放器
在网页设计中,除了图文并茂外,很多时候加入视频可以让用户得到更好的体验,那么如何在网页中插入视频呢?今天北京新华小明就给你答案
最基本又简单的播放代码如下:
<embed src="地址" autostart="true" loop="true" width="200" height="150" ></embed>
注:src后跟视频地址,这个视频地址在一些视频的分享选项中可以得到;
Autostart代表是否自动播放,参数为true和false
Loop为循环参数
Width是视频窗口宽度、height是高度
这是我经常用到的,希望能给需要的人得到帮助。
网页视频播放器代码大全,格式包括rm,rmvb,wmv等
收集最常用的网页中嵌入视频代码大全,各种各样的网页视频播放器代码.网页中嵌入视频代码综合完全版1.avi格式代码片断如下:程序代码:<objectid="video"width="400"height="200"border="0"classid="clsid:CFCDAA03-8BE4-11cf-B8 4B-0020AFBBCCFA"><paramname="ShowDisplay"value="0"><paramname="ShowControls"value="1"><paramname="AutoStart"value="1"><paramname="AutoRewind"value="0"><paramname="PlayCount"value="0"><paramname="Appearancevalue="0value="""><paramname="BorderStylevalue="0value="""><paramname="MovieWindowHeight"value="240"><paramname="MovieWindowWidth"value="320"><paramname="FileName"value="/Mbar.avi"><embedwidth="400"height="200"border="0"showdisplay="0"showcontrols="1"autostart="1"auto rewind="0"playcount="0"moviewindowheight="240"moviewindowwidth="320"filename="/Mbar .avi"src="Mbar.avi"></embed></object>2.mpg格式代码片断如下:程序代码:<objectclassid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A"id="ActiveMovie1"width="239"height="250"><paramname="Appearance"value="0"><paramname="AutoStart"value="-1"><paramname="AllowChangeDisplayMode"value="-1"><paramname="AllowHideDisplay"value="0"><paramname="AllowHideControls"value="-1"><paramname="AutoRewind"value="-1"><paramname="Balance"value="0"><paramname="CurrentPosition"value="0"><paramname="DisplayBackColor"value="0"><paramname="DisplayForeColor"value="16777215"><paramname="DisplayMode"value="0"><paramname="Enabled"value="-1"><paramname="EnableContextMenu"value="-1"><paramname="EnablePositionControls"value="-1"><paramname="EnableSelectionControls"value="0"><paramname="EnableTracker"value="-1"><paramname="Filename"value="/mpeg/halali.mpg"valuetype="ref"> <paramname="FullScreenMode"value="0"><paramname="MovieWindowSize"value="0"><paramname="PlayCount"value="1"><paramname="Rate"value="1"><paramname="SelectionStart"value="-1"><paramname="SelectionEnd"value="-1"><paramname="ShowControls"value="-1"><paramname="ShowDisplay"value="-1"><paramname="ShowPositionControls"value="0"><paramname="ShowTracker"value="-1"><paramname="V olume"value="-480"></object>3.smi格式代码片断如下:程序代码:<OBJECTid=RVOCXc lassid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA width=240he ight=180><paramname="_ExtentX"value="6350"><paramname="_ExtentY"value="4763"><paramname="AUTOSTART"value="-1"><paramname="SHUFFLE"value="0"><paramname="PREFETCH"value="0"><paramname="NOLABELS"value="-1"><paramname="SRC"value="rm.rm"><paramname="CONTROLS"value="ImageWindow"><paramname="CONSOLE"value="console1"><paramname="LOOP"value="0"><paramname="NUMLOOP"value="0"><paramname="CENTER"value="0"><paramname="MAINTAINASPECT"value="0"><paramname="BACKGROUNDCOLOR"value="#000000"><embedsrc="real.smi"type="audio/x -pn-realaudio-plugin"console="Console1"controls="ImageWindow"height="180"width="240"aut ostart="t"您好,欢迎访问阿里西西![注册]或[登陆] 建站素材加入收藏设为首页阿里论坛网页特效电子书籍源码下载网站首页文章下载酷站论坛书籍|网页书籍|编程书籍|数据库|服务器|设计|运营| 素材|模板|图标|图片|动画|字体库| 源码|企业|商城|行业|门户|办公|建站| 特效|广告代码|菜单|时间|文字|窗口|图像教程|前端技术|编程开发|数据库|服务器|脚本|动画| 下载|软件|工具|编程|图像|服务器| 站长|优化|盈利|经验|推广|新闻|域名| 酷站|韩国酷站|欧美|中国|收录|查询|旧版阿里西西FTP贵宾资源史上最全SEO资料韩国网页设计大师商业网站源码FLASH整站源码全年网站源码打包合辑5元一张DVD网页模板前端首页HTML基础XHTML标准XML教程CSS教程脚本技术动画媒体界面设计开发文档AJAX教程您的位置:阿里西西> 前端技术> 动画媒体> 正文分类条件HTML基础XHTML标准XML教程CSS教程脚本技术动画媒体界面设计相关文档AJAX教程8顶网页视频播放器代码大全互联网Alixixi 2009-08-07 点击:13620 字体:大中小我要评论收集最常用的网页中嵌入视频代码大全,各种各样的网页视频播放器代码.-网页中嵌入视频代码综合完全版1.avi格式代码片断如下:程序代码<objectid="video"width="400"height="200"border="0"classid="clsid:CFCDAA03-8BE4-11cf-B8 4B-0020AFBBCCFA"><paramname="ShowDisplay"value="0"><paramname="ShowControls"value="1"><paramname="AutoStart"value="1"><paramname="AutoRewind"value="0"><paramname="PlayCount"value="0"><paramname="Appearancevalue="0value="""><paramname="BorderStylevalue="0value="""><paramname="MovieWindowHeight"value="240"><paramname="MovieWindowWidth"value="320"><paramname="FileName"value="/Mbar.avi"><embedwidth="400"height="200"border="0"showdisplay="0"showcontrols="1"autostart="1"auto rewind="0"playcount="0"moviewindowheight="240"moviewindowwidth="320"filename="/Mbar .avi"src="Mbar.avi"></embed></object>2.mpg格式代码片断如下:程序代码<objectclassid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A"id="ActiveMovie1"width=" 239"height="250"><paramname="Appearance"value="0"><paramname="AutoStart"value="-1"><paramname="AllowChangeDisplayMode"value="-1"><paramname="AllowHideDisplay"value="0"><paramname="AllowHideControls"value="-1"><paramname="AutoRewind"value="-1"><paramname="Balance"value="0"><paramname="CurrentPosition"value="0"><paramname="DisplayBackColor"value="0"><paramname="DisplayForeColor"value="16777215"><paramname="DisplayMode"value="0"><paramname="Enabled"value="-1"><paramname="EnableContextMenu"value="-1"><paramname="EnablePositionControls"value="-1"><paramname="EnableSelectionControls"value="0"><paramname="EnableTracker"value="-1"><paramname="Filename"value="/mpeg/halali.mpg"valuetype="ref"> <paramname="FullScreenMode"value="0"><paramname="MovieWindowSize"value="0"><paramname="PlayCount"value="1"><paramname="Rate"value="1"><paramname="SelectionStart"value="-1"><paramname="SelectionEnd"value="-1"><paramname="ShowControls"value="-1"><paramname="ShowDisplay"value="-1"><paramname="ShowPositionControls"value="0"><paramname="ShowTracker"value="-1"><paramname="V olume"value="-480"></object>3.smi格式代码片断如下:程序代码<OBJECTid=RVOCXc lassid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA width=240he ight=180><paramname="_ExtentX"value="6350"><paramname="_ExtentY"value="4763"><paramname="AUTOSTART"value="-1"><paramname="SHUFFLE"value="0"><paramname="PREFETCH"value="0"><paramname="NOLABELS"value="-1"><paramname="SRC"value="rm.rm"><paramname="CONTROLS"value="ImageWindow"><paramname="CONSOLE"value="console1"><paramname="LOOP"value="0"><paramname="NUMLOOP"value="0"><paramname="CENTER"value="0"><paramname="MAINTAINASPECT"value="0"><paramname="BACKGROUNDCOLOR"value="#000000"><embedsrc="real.smi"type="audio/x-pn-realaudio-plugin"console="Console1"controls="ImageWindow"height="180"width="240"aut ostart="true"></OBJECT>4.rm格式代码片断如下:程序代码<OBJECTID=video1CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"HEIGH T=288WIDTH=352><paramname="_ExtentX"value="9313"><paramname="_ExtentY"value="7620"><paramname="AUTOSTART"value="0"><paramname="SHUFFLE"value="0"><paramname="PREFETCH"value="0"><paramname="NOLABELS"value="0"><paramname="SRC"value="rtsp://203.*.*.35/vod/dawan-a.rm"><paramname="CONTROLS"value="ImageWindow"><paramname="CONSOLE"value="Clip1"><paramname="LOOP"value="0"><paramname="NUMLOOP"value="0"><paramname="CENTER"value="0"><paramname="MAINTAINASPECT"value="0"><paramname="BACKGROUNDCOLOR"value="#000000"><embedSRCtype="audio/x-pn-reala udio-plugin"CONSOLE="Clip1"CONTROLS="ImageWindow"HEIGHT="288"WIDTH="352"A UTOSTART="false"></OBJECT>5.wmv格式代码片断如下:程序代码<objectid="NSPlay"width=200height=180classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7 e95"codebase="/activex/controls/mplayer/en/nsmp2inf.cab#V ersion=6,4,5,715"standby="LoadingMicrosoftWindowsMediaPlayercomponents. .."type="application/x-oleobject"align="right"hspace="5"><paramname="AutoRewind"value=1><paramname="FileName"value="/blog/******.wmv"><paramname="ShowControls"value="1"><paramname="ShowPositionControls"value="0"><paramname="ShowAudioControls"value="1"><paramname="ShowTracker"value="0"><paramname="ShowDisplay"value="0"><paramname="ShowStatusBar"value="0"><paramname="ShowGotoBar"value="0"><paramname="ShowCaptioning"value="0"><paramname="AutoStart"value=1><paramname="V olume"value="-2500"><paramname="AnimationAtStart"value="0"><paramname="TransparentAtStart"value="0"><paramname="AllowChangeDisplaySize"value="0"><paramname="AllowScan"value="0"><paramname="EnableContextMenu"value="0"><paramname="ClickToPlay"value="0"></object>6.wma格式放在<body>里面。
网页视频播放器代码大全
网页视频播放器代码大全1.avi格式代码片断如下:<object id="video" width="400" height="200" border="0" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"><param name="ShowDisplay" value="0"><param name="ShowControls" value="1"><param name="AutoStart" value="1"><param name="AutoRewind" value="0"><param name="PlayCount" value="0"><param name="Appearance value="0 value="""><param name="BorderStyle value="0 value="""><param name="MovieWindowHeight" value="240"><param name="MovieWindowWidth" value="320"><param name="FileName" value="/Mbar.avi"><embed width="400" height="200" border="0" showdisplay="0" showcontrols="1" autostart="1" autorewind="0" playcount="0" moviewindowheight="240" moviewindowwidth="320" filename="/Mbar.avi" src="Mbar.avi"></embed></object>2.mpg格式代码片断如下:<object classid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A" id="ActiveMovie1" width="239" height="250"><param name="Appearance" value="0"><param name="AutoStart" value="-1"><param name="AllowChangeDisplayMode" value="-1"><param name="AllowHideDisplay" value="0"><param name="AllowHideControls" value="-1"><param name="AutoRewind" value="-1"><param name="Balance" value="0"><param name="CurrentPosition" value="0"><param name="DisplayBackColor" value="0"><param name="DisplayForeColor" value="16777215"><param name="DisplayMode" value="0"><param name="Enabled" value="-1"><param name="EnableContextMenu" value="-1"><param name="EnablePositionControls" value="-1"><param name="EnableSelectionControls" value="0"><param name="EnableTracker" value="-1"><param name="Filename" value="/mpeg/halali.mpg" valuetype="ref"><param name="FullScreenMode" value="0"><param name="MovieWindowSize" value="0"><param name="PlayCount" value="1"><param name="SelectionStart" value="-1"><param name="SelectionEnd" value="-1"><param name="ShowControls" value="-1"><param name="ShowDisplay" value="-1"><param name="ShowPositionControls" value="0"><param name="ShowTracker" value="-1"><param name="Volume" value="-480"></object>3.smi格式代码片断如下:<OBJECT id=RVOCX classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA width=240 height=180><param name="_ExtentX" value="6350"><param name="_ExtentY" value="4763"><param name="AUTOSTART" value="-1"><param name="SHUFFLE" value="0"><param name="PREFETCH" value="0"><param name="NOLABELS" value="-1"><param name="SRC" value="rm.rm"><param name="CONTROLS" value="ImageWindow"><param name="CONSOLE" value="console1"><param name="LOOP" value="0"><param name="NUMLOOP" value="0"><param name="CENTER" value="0"><param name="MAINTAINASPECT" value="0"><param name="BACKGROUNDCOLOR" value="#000000"><embed src="real.smi" type="audio/x-pn-realaudio-plugin" console="Console1" controls="ImageWindow" height="180" width="240" autostart="true"></OBJECT>4.rm格式代码片断如下:<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT=288 WIDTH=352><param name="_ExtentX" value="9313"><param name="_ExtentY" value="7620"><param name="AUTOSTART" value="0"><param name="SHUFFLE" value="0"><param name="PREFETCH" value="0"><param name="NOLABELS" value="0"><param name="SRC" value="rtsp://203.*.*.35/vod/dawan-a.rm"><param name="CONTROLS" value="ImageWindow"><param name="CONSOLE" value="Clip1"><param name="LOOP" value="0"><param name="NUMLOOP" value="0"><paramname="MAINTAINASPECT" value="0"><param name="BACKGROUNDCOLOR" value="#000000"><embed SRC type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1" CONTROLS="ImageWindow" HEIGHT="288" WIDTH="352" AUTOSTART="false"></OBJECT>5.wmv格式代码片断如下:<object id="NSPlay" width=200 height=180 classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"codebase="/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" align="right" hspace="5"><param name="AutoRewind" value=1><param name="FileName" value="/blog/******.wmv"><param name="ShowControls" value="1"><param name="ShowPositionControls" value="0"><param name="ShowAudioControls" value="1"><param name="ShowTracker" value="0"><param name="ShowDisplay" value="0"><param name="ShowStatusBar" value="0"><param name="ShowGotoBar" value="0"><param name="ShowCaptioning" value="0"><param name="AutoStart" value=1><param name="Volume" value="-2500"><param name="AnimationAtStart" value="0"><param name="TransparentAtStart" value="0"><param name="AllowChangeDisplaySize" value="0"><param name="AllowScan" value="0"><param name="EnableContextMenu" value="0"><param name="ClickToPlay" value="0"></object>6.wma格式放在 <body> 里面。
网页视频播放器代码大全
网页视频播放器代码大全.txt大悲无泪,大悟无言,大笑无声。
我们手里的金钱是保持自由的一种工具。
女人在约会前,一定先去美容院;男人约会前,一定先去银行。
网页视频播放器代码大全收集最常用的网页中嵌入视频代码大全,各种各样的网页视频播放器代码.网页中嵌入视频代码综合完全版1.avi格式代码片断如下:程序代码<objectid="video"width="400"height="200"border="0"classid="clsid:CFCDAA03-8BE4-1 1cf-B84B-0020AFBBCCFA"><paramname="ShowDisplay"value="0"><paramname="ShowControls"value="1"><paramname="AutoStart"value="1"><paramname="AutoRewind"value="0"><paramname="PlayCount"value="0"><paramname="Appearancevalue="0value="""><paramname="BorderStylevalue="0value="""><paramname="MovieWindowHeight"value="240"><paramname="MovieWindowWidth"value="320"><paramname="FileName"value="/Mbar.avi"><embedwidth="400"height="200"border="0"showdisplay="0"showcontrols="1"autostart= "1"autorewind="0"playcount="0"moviewindowheight="240"moviewindowwidth="320"filen ame="/Mbar.avi"src="Mbar.avi"></embed></object>2.mpg格式代码片断如下:程序代码<objectclassid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A"id="ActiveMovie1"widt h="239"height="250"><paramname="Appearance"value="0"><paramname="AutoStart"value="-1"><paramname="AllowChangeDisplayMode"value="-1"><paramname="AllowHideDisplay"value="0"><paramname="AllowHideControls"value="-1"><paramname="AutoRewind"value="-1"><paramname="Balance"value="0"><paramname="CurrentPosition"value="0"><paramname="DisplayBackColor"value="0"><paramname="DisplayForeColor"value="16777215"><paramname="DisplayMode"value="0"><paramname="Enabled"value="-1"><paramname="EnableContextMenu"value="-1"><paramname="EnablePositionControls"value="-1"><paramname="EnableSelectionControls"value="0"><paramname="EnableTracker"value="-1"><paramname="Filename"value="/mpeg/halali.mpg"valuetype="ref"><paramname="FullScreenMode"value="0"><paramname="MovieWindowSize"value="0"><paramname="PlayCount"value="1"><paramname="Rate"value="1"><paramname="SelectionStart"value="-1"><paramname="SelectionEnd"value="-1"><paramname="ShowControls"value="-1"><paramname="ShowDisplay"value="-1"><paramname="ShowPositionControls"value="0"><paramname="ShowTracker"value="-1"><paramname="Volume"value="-480"></object>3.smi格式代码片断如下:程序代码<OBJECTid=RVOCXclassid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAwidth=240height =180><paramname="_ExtentX"value="6350"><paramname="_ExtentY"value="4763"><paramname="AUTOSTART"value="-1"><paramname="SHUFFLE"value="0"><paramname="PREFETCH"value="0"><paramname="NOLABELS"value="-1"><paramname="SRC"value="rm.rm"><paramname="CONTROLS"value="ImageWindow"><paramname="CONSOLE"value="console1"><paramname="LOOP"value="0"><paramname="NUMLOOP"value="0"><paramname="CENTER"value="0"><paramname="MAINTAINASPECT"value="0"><paramname="BACKGROUNDCOLOR"value="#000000"><embedsrc="real.smi"type="audio/x-pn -realaudio-plugin"console="Console1"controls="ImageWindow"height="180"width="240 "autostart="true"></OBJECT>4.rm格式代码片断如下:程序代码<OBJECTID=video1CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"HEIGHT=288WI DTH=352><paramname="_ExtentX"value="9313"><paramname="_ExtentY"value="7620"><paramname="AUTOSTART"value="0"><paramname="SHUFFLE"value="0"><paramname="PREFETCH"value="0"><paramname="NOLABELS"value="0"><paramname="SRC"value="rtsp://203.*.*.35/vod/dawan-a.rm"><paramname="CONTROLS"value="ImageWindow"><paramname="CONSOLE"value="Clip1"><paramname="LOOP"value="0"><paramname="NUMLOOP"value="0"><paramname="CENTER"value="0"><paramname="MAINTAINASPECT"value="0"><paramname="BACKGROUNDCOLOR"value="#000000"><embedSRCtype="audio/x-pn-realaudio-plugin"CONSOLE="Clip1"CONTROLS="ImageWindow"HEIGHT="288"WIDTH="352"AUTOSTART="fa lse"></OBJECT>5.wmv格式代码片断如下:程序代码<objectid="NSPlay"width=200height=180classid="CLSID:22d6f312-b0f6-11d0-94ab-0080 c74c7e95"codebase="/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"standby="LoadingMicrosoftWindowsMediaPlayercompo nents..."type="application/x-oleobject"align="right"hspace="5"><paramname="AutoRewind"value=1><paramname="FileName"value="/blog/******.wmv"><paramname="ShowControls"value="1"><paramname="ShowPositionControls"value="0"><paramname="ShowAudioControls"value="1"><paramname="ShowTracker"value="0"><paramname="ShowDisplay"value="0"><paramname="ShowStatusBar"value="0"><paramname="ShowGotoBar"value="0"><paramname="ShowCaptioning"value="0"><paramname="AutoStart"value=1><paramname="Volume"value="-2500"><paramname="AnimationAtStart"value="0"><paramname="TransparentAtStart"value="0"><paramname="AllowChangeDisplaySize"value="0"><paramname="AllowScan"value="0"><paramname="EnableContextMenu"value="0"><paramname="ClickToPlay"value="0"></object>6.wma格式放在<body>里面。
网页中使用的各个播放器代码
<param name="Balance" value="0">
<param name="CurrentPosition" value="0">
<param name="DisplayBackColor" value="0">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="1.swf" />
<param name="menu" value="false" />
<param name="scale" value="noborder" />
<param name="wmode" value="transparent" />
<embed src="1.swf" menu="false" quality="high" scale="noborder" wmode="transparent" width="980" height="180" name="banner" align="left"
网页视频播放器代码大全,格式包括rm,rmvb,wmv等
收集最常用的网页中嵌入视频代码大全,各种各样的网页视频播放器代码.网页中嵌入视频代码综合完全版1.avi格式代码片断如下:程序代码:<objectid="video"width="400"height="200"border="0"classid="clsid:CFCDAA03-8BE4-11cf-B8 4B-0020AFBBCCFA"><paramname="ShowDisplay"value="0"><paramname="ShowControls"value="1"><paramname="AutoStart"value="1"><paramname="AutoRewind"value="0"><paramname="PlayCount"value="0"><paramname="Appearancevalue="0value="""><paramname="BorderStylevalue="0value="""><paramname="MovieWindowHeight"value="240"><paramname="MovieWindowWidth"value="320"><paramname="FileName"value="/Mbar.avi"><embedwidth="400"height="200"border="0"showdisplay="0"showcontrols="1"autostart="1"auto rewind="0"playcount="0"moviewindowheight="240"moviewindowwidth="320"filename="/Mbar .avi"src="Mbar.avi"></embed></object>2.mpg格式代码片断如下:程序代码:<objectclassid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A"id="ActiveMovie1"width="239"height="250"><paramname="Appearance"value="0"><paramname="AutoStart"value="-1"><paramname="AllowChangeDisplayMode"value="-1"><paramname="AllowHideDisplay"value="0"><paramname="AllowHideControls"value="-1"><paramname="AutoRewind"value="-1"><paramname="Balance"value="0"><paramname="CurrentPosition"value="0"><paramname="DisplayBackColor"value="0"><paramname="DisplayForeColor"value="16777215"><paramname="DisplayMode"value="0"><paramname="Enabled"value="-1"><paramname="EnableContextMenu"value="-1"><paramname="EnablePositionControls"value="-1"><paramname="EnableSelectionControls"value="0"><paramname="EnableTracker"value="-1"><paramname="Filename"value="/mpeg/halali.mpg"valuetype="ref"> <paramname="FullScreenMode"value="0"><paramname="MovieWindowSize"value="0"><paramname="PlayCount"value="1"><paramname="Rate"value="1"><paramname="SelectionStart"value="-1"><paramname="SelectionEnd"value="-1"><paramname="ShowControls"value="-1"><paramname="ShowDisplay"value="-1"><paramname="ShowPositionControls"value="0"><paramname="ShowTracker"value="-1"><paramname="V olume"value="-480"></object>3.smi格式代码片断如下:程序代码:<OBJECTid=RVOCXc lassid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA width=240he ight=180><paramname="_ExtentX"value="6350"><paramname="_ExtentY"value="4763"><paramname="AUTOSTART"value="-1"><paramname="SHUFFLE"value="0"><paramname="PREFETCH"value="0"><paramname="NOLABELS"value="-1"><paramname="SRC"value="rm.rm"><paramname="CONTROLS"value="ImageWindow"><paramname="CONSOLE"value="console1"><paramname="LOOP"value="0"><paramname="NUMLOOP"value="0"><paramname="CENTER"value="0"><paramname="MAINTAINASPECT"value="0"><paramname="BACKGROUNDCOLOR"value="#000000"><embedsrc="real.smi"type="audio/x -pn-realaudio-plugin"console="Console1"controls="ImageWindow"height="180"width="240"aut ostart="t"您好,欢迎访问阿里西西![注册]或[登陆] 建站素材加入收藏设为首页阿里论坛网页特效电子书籍源码下载网站首页文章下载酷站论坛书籍|网页书籍|编程书籍|数据库|服务器|设计|运营| 素材|模板|图标|图片|动画|字体库| 源码|企业|商城|行业|门户|办公|建站| 特效|广告代码|菜单|时间|文字|窗口|图像教程|前端技术|编程开发|数据库|服务器|脚本|动画| 下载|软件|工具|编程|图像|服务器| 站长|优化|盈利|经验|推广|新闻|域名| 酷站|韩国酷站|欧美|中国|收录|查询|旧版阿里西西FTP贵宾资源史上最全SEO资料韩国网页设计大师商业网站源码FLASH整站源码全年网站源码打包合辑5元一张DVD网页模板前端首页HTML基础XHTML标准XML教程CSS教程脚本技术动画媒体界面设计开发文档AJAX教程您的位置:阿里西西> 前端技术> 动画媒体> 正文分类条件HTML基础XHTML标准XML教程CSS教程脚本技术动画媒体界面设计相关文档AJAX教程8顶网页视频播放器代码大全互联网Alixixi 2009-08-07 点击:13620 字体:大中小我要评论收集最常用的网页中嵌入视频代码大全,各种各样的网页视频播放器代码.-网页中嵌入视频代码综合完全版1.avi格式代码片断如下:程序代码<objectid="video"width="400"height="200"border="0"classid="clsid:CFCDAA03-8BE4-11cf-B8 4B-0020AFBBCCFA"><paramname="ShowDisplay"value="0"><paramname="ShowControls"value="1"><paramname="AutoStart"value="1"><paramname="AutoRewind"value="0"><paramname="PlayCount"value="0"><paramname="Appearancevalue="0value="""><paramname="BorderStylevalue="0value="""><paramname="MovieWindowHeight"value="240"><paramname="MovieWindowWidth"value="320"><paramname="FileName"value="/Mbar.avi"><embedwidth="400"height="200"border="0"showdisplay="0"showcontrols="1"autostart="1"auto rewind="0"playcount="0"moviewindowheight="240"moviewindowwidth="320"filename="/Mbar .avi"src="Mbar.avi"></embed></object>2.mpg格式代码片断如下:程序代码<objectclassid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A"id="ActiveMovie1"width=" 239"height="250"><paramname="Appearance"value="0"><paramname="AutoStart"value="-1"><paramname="AllowChangeDisplayMode"value="-1"><paramname="AllowHideDisplay"value="0"><paramname="AllowHideControls"value="-1"><paramname="AutoRewind"value="-1"><paramname="Balance"value="0"><paramname="CurrentPosition"value="0"><paramname="DisplayBackColor"value="0"><paramname="DisplayForeColor"value="16777215"><paramname="DisplayMode"value="0"><paramname="Enabled"value="-1"><paramname="EnableContextMenu"value="-1"><paramname="EnablePositionControls"value="-1"><paramname="EnableSelectionControls"value="0"><paramname="EnableTracker"value="-1"><paramname="Filename"value="/mpeg/halali.mpg"valuetype="ref"> <paramname="FullScreenMode"value="0"><paramname="MovieWindowSize"value="0"><paramname="PlayCount"value="1"><paramname="Rate"value="1"><paramname="SelectionStart"value="-1"><paramname="SelectionEnd"value="-1"><paramname="ShowControls"value="-1"><paramname="ShowDisplay"value="-1"><paramname="ShowPositionControls"value="0"><paramname="ShowTracker"value="-1"><paramname="V olume"value="-480"></object>3.smi格式代码片断如下:程序代码<OBJECTid=RVOCXc lassid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA width=240he ight=180><paramname="_ExtentX"value="6350"><paramname="_ExtentY"value="4763"><paramname="AUTOSTART"value="-1"><paramname="SHUFFLE"value="0"><paramname="PREFETCH"value="0"><paramname="NOLABELS"value="-1"><paramname="SRC"value="rm.rm"><paramname="CONTROLS"value="ImageWindow"><paramname="CONSOLE"value="console1"><paramname="LOOP"value="0"><paramname="NUMLOOP"value="0"><paramname="CENTER"value="0"><paramname="MAINTAINASPECT"value="0"><paramname="BACKGROUNDCOLOR"value="#000000"><embedsrc="real.smi"type="audio/x-pn-realaudio-plugin"console="Console1"controls="ImageWindow"height="180"width="240"aut ostart="true"></OBJECT>4.rm格式代码片断如下:程序代码<OBJECTID=video1CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"HEIGH T=288WIDTH=352><paramname="_ExtentX"value="9313"><paramname="_ExtentY"value="7620"><paramname="AUTOSTART"value="0"><paramname="SHUFFLE"value="0"><paramname="PREFETCH"value="0"><paramname="NOLABELS"value="0"><paramname="SRC"value="rtsp://203.*.*.35/vod/dawan-a.rm"><paramname="CONTROLS"value="ImageWindow"><paramname="CONSOLE"value="Clip1"><paramname="LOOP"value="0"><paramname="NUMLOOP"value="0"><paramname="CENTER"value="0"><paramname="MAINTAINASPECT"value="0"><paramname="BACKGROUNDCOLOR"value="#000000"><embedSRCtype="audio/x-pn-reala udio-plugin"CONSOLE="Clip1"CONTROLS="ImageWindow"HEIGHT="288"WIDTH="352"A UTOSTART="false"></OBJECT>5.wmv格式代码片断如下:程序代码<objectid="NSPlay"width=200height=180classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7 e95"codebase="/activex/controls/mplayer/en/nsmp2inf.cab#V ersion=6,4,5,715"standby="LoadingMicrosoftWindowsMediaPlayercomponents. .."type="application/x-oleobject"align="right"hspace="5"><paramname="AutoRewind"value=1><paramname="FileName"value="/blog/******.wmv"><paramname="ShowControls"value="1"><paramname="ShowPositionControls"value="0"><paramname="ShowAudioControls"value="1"><paramname="ShowTracker"value="0"><paramname="ShowDisplay"value="0"><paramname="ShowStatusBar"value="0"><paramname="ShowGotoBar"value="0"><paramname="ShowCaptioning"value="0"><paramname="AutoStart"value=1><paramname="V olume"value="-2500"><paramname="AnimationAtStart"value="0"><paramname="TransparentAtStart"value="0"><paramname="AllowChangeDisplaySize"value="0"><paramname="AllowScan"value="0"><paramname="EnableContextMenu"value="0"><paramname="ClickToPlay"value="0"></object>6.wma格式放在<body>里面。
ckplayer 案例
CKPlayer 是一个在网页上播放视频的JavaScript 库,它支持多种视频格式和流媒体协议。
它是一个第三方库,可以让开发者在网页上轻松地嵌入和控制视频播放。
由于CKPlayer 是一个第三方库,具体的案例可能会涉及版权、隐私、安全和其他法律问题。
因此,在这里不能提供具体的案例。
然而,我可以给你一个关于如何使用CKPlayer 的基本示例。
使用CKPlayer 的基本步骤:1. 引入CKPlayer 库:首先,你需要在你的HTML 页面中引入CKPlayer 的JavaScript 文件。
html<script type="text/javascript" src="path/to/ckplayer.js"></script>2. 准备视频播放器容器:在HTML 页面中,你需要一个用来放置视频播放器的容器。
html<div id="video-container"></div>3. 初始化CKPlayer:通过JavaScript,你可以初始化CKPlayer 并指定视频的来源和其他选项。
javascriptvar player = new CKPlayer({container: 'video-container', // 播放器容器IDsource: 'path/to/your/video.mp4', // 视频文件路径type: 'video/mp4', // 视频类型width: '100%', // 播放器宽度height: 'auto' // 播放器高度});4. 控制播放器:你还可以通过JavaScript 控制播放器的播放、暂停、停止等行为。
javascriptplayer.play(); // 播放player.pause(); // 暂停player.stop(); // 停止上述代码只是一个基本的示例,实际使用时可能需要根据你的需求进行调整。
网页视频播放器代码大全+21个为您的网站和博客提供的免费视频播放器
⽹页视频播放器代码⼤全+21个为您的⽹站和博客提供的免费视频播放器推荐使⽤极酷 Web在线播放器。
⽹页中嵌⼊视频代码综合完全版 1.avi格式 代码⽚断如下: 程序代码 <objectid="video"width="400"height="200"border="0"classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"> <paramname="ShowDisplay"value="0"> <paramname="ShowControls"value="1"> <paramname="AutoStart"value="1"> <paramname="AutoRewind"value="0"> <paramname="PlayCount"value="0"> <paramname="Appearancevalue="0value="""> <paramname="BorderStylevalue="0value="""> <paramname="MovieWindowHeight"value="240"> <paramname="MovieWindowWidth"value="320"> <paramname="FileName"value="/Mbar.avi"><embedwidth="400"height="200"border="0"showdisplay="0"showcontrols="1"autostart="1"autorewind="0"playcount="0"moviewindowheight="240"moviewindowwidth="320"filename="/Mbar.avi"src="M </embed> </object> 2.mpg格式 代码⽚断如下: 程序代码 <objectclassid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A"id="ActiveMovie1"width="239"height="250"> <paramname="Appearance"value="0"> <paramname="AutoStart"value="-1"> <paramname="AllowChangeDisplayMode"value="-1"> <paramname="AllowHideDisplay"value="0"> <paramname="AllowHideControls"value="-1"> <paramname="AutoRewind"value="-1"> <paramname="Balance"value="0"> <paramname="CurrentPosition"value="0"> <paramname="DisplayBackColor"value="0"> <paramname="DisplayForeColor"value="16777215"> <paramname="DisplayMode"value="0"> <paramname="Enabled"value="-1"> <paramname="EnableContextMenu"value="-1"> <paramname="EnablePositionControls"value="-1"> <paramname="EnableSelectionControls"value="0"> <paramname="EnableTracker"value="-1"> <paramname="Filename"value="/mpeg/halali.mpg"valuetype="ref"> <paramname="FullScreenMode"value="0"> <paramname="MovieWindowSize"value="0"> <paramname="PlayCount"value="1"> <paramname="Rate"value="1"> <paramname="SelectionStart"value="-1"> <paramname="SelectionEnd"value="-1"> <paramname="ShowControls"value="-1"> <paramname="ShowDisplay"value="-1"> <paramname="ShowPositionControls"value="0"> <paramname="ShowTracker"value="-1"> <paramname="Volume"value="-480"> </object> 3.smi格式 代码⽚断如下: 程序代码 <OBJECTid=RVOCXclassid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAwidth=240height=180> <paramname="_ExtentX"value="6350"> <paramname="_ExtentY"value="4763"> <paramname="AUTOSTART"value="-1"> <paramname="SHUFFLE"value="0"> <paramname="PREFETCH"value="0"> <paramname="NOLABELS"value="-1"> <paramname="SRC"value="rm.rm"> <paramname="CONTROLS"value="ImageWindow"> <paramname="CONSOLE"value="console1"> <paramname="LOOP"value="0"> <paramname="NUMLOOP"value="0"> <paramname="CENTER"value="0"> <paramname="MAINTAINASPECT"value="0"> <paramname="BACKGROUNDCOLOR"value="#000000"><embedsrc="real.smi"type="audio/x-pn-realaudio-plugin"console="Console1"controls="ImageWindow"height="180"width="240"autostart="true"></OBJECT> 4.rm格式 代码⽚断如下: 程序代码 <OBJECTID=video1CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"HEIGHT=288WIDTH=352> <paramname="_ExtentX"value="9313"> <paramname="_ExtentY"value="7620"> <paramname="AUTOSTART"value="0"> <paramname="SHUFFLE"value="0"> <paramname="PREFETCH"value="0"> <paramname="NOLABELS"value="0"> <paramname="SRC"value="rtsp://203.*.*.35/vod/dawan-a.rm"> <paramname="CONTROLS"value="ImageWindow"> <paramname="CONSOLE"value="Clip1"> <paramname="LOOP"value="0"> <paramname="NUMLOOP"value="0"> <paramname="CENTER"value="0"> <paramname="MAINTAINASPECT"value="0"> <paramname="BACKGROUNDCOLOR"value="#000000"><embedSRCtype="audio/x-pn-realaudio-plugin"CONSOLE="Clip1"CONTROLS="ImageWindow"HEIGHT="288"WIDTH="352"AUTOSTART="false"> </OBJECT> 5.wmv格式 代码⽚断如下: 程序代码 <objectid="NSPlay"width=200height=180classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"codebase="/activex/controls/mplayer/en /nsmp2inf.cab#Version=6,4,5,715"standby="LoadingMicrosoftWindowsMediaPlayercomponents..."type="application/x-oleobject"align="right"hspace="5"> <paramname="AutoRewind"value=1> <paramname="FileName"value="/blog/******.wmv"> <paramname="ShowControls"value="1"> <paramname="ShowPositionControls"value="0"> <paramname="ShowAudioControls"value="1"> <paramname="ShowTracker"value="0"> <paramname="ShowDisplay"value="0"> <paramname="ShowStatusBar"value="0"> <paramname="ShowGotoBar"value="0"> <paramname="ShowCaptioning"value="0"> <paramname="AutoStart"value=1> <paramname="Volume"value="-2500"> <paramname="AnimationAtStart"value="0"> <paramname="TransparentAtStart"value="0"> <paramname="AllowChangeDisplaySize"value="0"> <paramname="AllowScan"value="0"> <paramname="EnableContextMenu"value="0"> <paramname="ClickToPlay"value="0"> </object> 6.wma格式 放在<body>⾥⾯。
页面嵌入播放器代码
页面嵌入播放器代码页面插入REAL播放器代码:<object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=60 id=video1 styl e=LEFT:0px;TOP:0px width=209><param name=_ExtentX value=5530><param name=_ExtentY value=1588><param name=AUTOSTART value=1><param name=S HUFFLE value=0><param name=PREFETCH value=0><param name=NOLABELS value=0><param name=SRC value=RM.RAM.RA等音乐文件绝对地址><param name=CONTROLS value=StatusBar,ControlPanel><param name=CONSOLE value=RAPLAYER><param name=LOOP value=0><param name=NUMLOOP value=0><param name=CENTER value=0><param name=MAINTAINASPECT value=0><param name=BACKGROUNDCOLOR value=#000000></object>页面插入Media Player播放器代码:<OBJECT id=mPlayer1 classid=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6 width =220 height=64 type='application/x-oleobject"'><PARAM NAME="URL" VALUE="WMA音乐文件绝对地址"><PARAM NAME="rate" VALUE="1"><PARAM NAME="balance" VALUE="0"><PARAM NAME="currentPosition" VALUE="0"><PARAM NAME="defaultFrame" VALUE=""><PARAM NAME="playCount" VALUE="100"><PARAM NAME="autoStart" VALUE="-1"><PARAM NAME="currentMarker" VALUE="0"><PARAM NAME="invokeURLs" VALUE="-1"><PARAM NAME="baseURL" VALUE=""><PARAM NAME="volume" VALUE="100"><PARAM NAME="mute" VALUE="0"><PARAM NAME="uiMode" VALUE="full"><PARAM NAME="stretchToFit" VALUE="0"><PARAM NAME="windowlessVideo" VALUE="0"><PARAM NAME="enabled" VALUE="-1"><PARAM NAME="enableContextMenu" VALUE="0"><PARAM NAME="fullScreen" VALUE="0"><PARAM NAME="SAMIStyle" VALUE=""><PARAM NAME="SAMILang" VALUE=""><PARAM NAME="SAMIFilename" VALUE=""><PARAM NAME="captioningID" VALUE=""></OBJECT>页面插入Media Player(视频)播放器代码:<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer1" height=260 width=320><param name="Filename" value="MTV视频文件绝对地址"><param name="PlayCount" value="0"><param name="AutoStart" value="1"><param name="ClickToPlay" value="1"><param name="EnableFullScreen Controls" value="1"><param name="ShowAudio Controls" value="1"><param name="EnableContext Menu" value="1"><param name="ShowDisplay" value="0"></object>附:1.avi格式代码片断如下:<object id="video" width="400" height="200" border="0" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"><param name="ShowDisplay" value="0"><param name="ShowControls" value="1"><param name="AutoStart" value="1"><param name="AutoRewind" value="0"><param name="PlayCount" value="0"><param name="Appearance value="0 value="""><param name="BorderStyle value="0 value="""><param name="MovieWindowHeight" value="240"><param name="MovieWindowWidth" value="320"><param name="FileName" value="/Mbar.avi"><embed width="400" height="200" border="0" showdisplay="0" showcontrols="1" autost art="1" autorewind="0" playcount="0" moviewindowheight="240" moviewindowwidth="32 0" filename="/Mbar.avi" src="Mbar.avi"></embed></object>2.mpg格式代码片断如下:<object classid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A" id="ActiveMovie1" width ="239" height="250"><param name="Appearance" value="0"><param name="AutoStart" value="-1"><param name="AllowChangeDisplayMode" value="-1"><param name="AllowHideDisplay" value="0"><param name="AllowHideControls" value="-1"><param name="AutoRewind" value="-1"><param name="Balance" value="0"><param name="CurrentPosition" value="0"><param name="DisplayBackColor" value="0"><param name="DisplayForeColor" value="16777215"><param name="DisplayMode" value="0"><param name="Enabled" value="-1"><param name="EnableContextMenu" value="-1"><param name="EnablePositionControls" value="-1"><param name="EnableSelectionControls" value="0"><param name="EnableTracker" value="-1"><param name="Filename" value="/mpeg/halali.mpg" valuetype="ref"><param name="FullScreenMode" value="0"><param name="MovieWindowSize" value="0"><param name="PlayCount" value="1"><param name="Rate" value="1"><param name="SelectionStart" value="-1"><param name="SelectionEnd" value="-1"><param name="ShowControls" value="-1"><param name="ShowDisplay" value="-1"><param name="ShowPositionControls" value="0"><param name="ShowTracker" value="-1"><param name="Volume" value="-480"></object>3.smi格式代码片断如下:<OBJECT id=RVOCX classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA width=240 h eight=180><param name="_ExtentX" value="6350"><param name="_ExtentY" value="4763"><param name="AUTOSTART" value="-1"><param name="S HUFFLE" value="0"><param name="PREFETCH" value="0"><param name="NOLABELS" value="-1"><param name="SRC" value="rm.rm"><param name="CONTROLS" value="ImageWindow"><param name="CONSOLE" value="console1"><param name="LOOP" value="0"><param name="NUMLOOP" value="0"><param name="CENTER" value="0"><param name="MAINTAINASPECT" value="0"><param name="BACKGROUNDCOLOR" value="#000000"><embed src="real.smi" type="audio/x-pn-realaudio-plugin" console="Console1" controls="ImageWindow" height="180" wi dth="240" autostart="true"></OBJECT>4.rm格式代码片断如下:<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT =288 WIDTH=352><param name="_ExtentX" value="9313"><param name="_ExtentY" value="7620"><param name="AUTOSTART" value="0"><param name="S HUFFLE" value="0"><param name="PREFETCH" value="0"><param name="NOLABELS" value="0"><param name="SRC" value="rtsp://203.*.*.35/vod/dawan-a.rm"><param name="CONTROLS" value="ImageWindow"><param name="CONSOLE" value="Clip1"><param name="LOOP" value="0"><param name="NUMLOOP" value="0"><param name="CENTER" value="0"><param name="MAINTAINASPECT" value="0"><param name="BACKGROUNDCOLOR" value="#000000"><embed SRC type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1" CONTROLS="ImageWindow" HEIGHT="288" WIDTH=" 352" AUTOSTART="false"></OBJECT>5.wmv格式代码片断如下:<object id="NSPlay" width=200 height=180 classid="CLSID:22d6f312-b0f6-11d0-94ab-008 0c74c7e95" codebase="/activex/controls/mplayer/en/nsmp2inf.c ab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" align="right" hspace="5"><param name="AutoRewind" value=1><param name="FileName" value="/blog/******.wmv"><param name="ShowControls" value="1"><param name="ShowPositionControls" value="0"><param name="ShowAudioControls" value="1"><param name="ShowTracker" value="0"><param name="ShowDisplay" value="0"><param name="ShowStatusBar" value="0"><param name="ShowGotoBar" value="0"><param name="ShowCaptioning" value="0"><param name="AutoStart" value=1><param name="Volume" value="-2500"><param name="AnimationAtStart" value="0"><param name="TransparentAtStart" value="0"><param name="AllowChangeDisplaySize" value="0"><param name="AllowScan" value="0"><param name="EnableContextMenu" value="0"><param name="ClickToPlay" value="0"></object>6.wma格式放在<body> 里面。
网页中嵌入视频播放器代码大全
二. mpg格式
代码如下:
三. smi格式
代码如下:
网页中嵌入视频播放器代码大全 网页视频播放器代码大全网页mtv播放器代码 一. rm格式(无边框按钮)realplayer 代码如下: 二. rm格式(带边框按钮)realplayer 代码如下: 三. wmv格式(带边框按钮)windows media player 代码如下: 其他网页视频播放代码 一. avi格式 代码如下: 二. mpg格式 代码如下: 三. smi格式 代码如下: 下载文档原格式( word原格式 ,共7页)
网页中嵌入视频播放器代码大全
网页视频播放器代码大全网ห้องสมุดไป่ตู้mtv播放器代码
一. RM格式(无边框按钮)RealPlayer
代码如下:
二. RM格式(带边框按钮)RealPlayer
代码如下:
三. WMV格式(带边框按钮)Windows Media Player
代码如下:
其他网页视频播放代码
一. avi格式
网页视频播放器程序代码(通用代码)
***********************************************'函数名:SelPlay'作 用:在网页中播放视频'参 数:strUrl ---- 视频地址 strWidth ---显示视频宽 strHeight ---显示视频高'***********************************************Sub SelPlay(strUrl,strWidth,StrHeight)Dim Exts,isExtIf strUrl <> "" Then isExt = LCase(Mid(strUrl,InStrRev(strUrl, ".")+1)) Else isExt = ""End IfExts = "avi,wmv,asf,mov,rm,ra,ram"If Instr(Exts,isExt)=0 Then Response.write "非法视频文件"Else Select Case isExt Case "avi","wmv","asf","mov" Response.write "<EMBED id=MediaPlayer src="&a mp;strUrl&" width="&strWidth&" height="&strHeight&" loop=""false"" autostart=""true""></EMBED>" Case "mov","rm","ra","ram" Response.Write "<OBJECT height="&strHeight& " width="&strWidth&" classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020 AFBBCCFA>" Response.Write "<PARAM NAME=""_ExtentX"" V ALUE=""12700"">" Response.Write "<PARAM NAME=""_ExtentY"" V ALUE=""9525"">" Response.Write "<PARAM NAME=""AUTOSTART""&nb sp;V ALUE=""-1"">" Response.Write "<PARAM NAME=""SHUFFLE"" V ALUE=""0"">" Response.Write "<PARAM NAME=""PREFETCH""  ;V ALUE=""0"">" Response.Write "<PARAM NAME=""NOLABELS""&nbs p;V ALUE=""0"">" Response.Write "<PARAM NAME=""SRC"" V ALU E="""&strUrl&""">" Response.Write "<PARAM NAME=""CONTROLS""&nbs p;V ALUE=""ImageWindow"">" Response.Write "<PARAM NAME=""CONSOLE"" V ALUE=""Clip"">" Response.Write "<PARAM NAME=""LOOP"" V AL UE=""0"">" Response.Write "<PARAM NAME=""NUMLOOP""  ;V ALUE=""0"">" Response.Write "<PARAM NAME=""CENTER"" V ALUE=""0"">" Response.Write "<PARAM NAME=""MAINTAINASPECT "" V ALUE=""0"">" Response.Write "<PARAM NAME=""BACKGROUNDCO LOR"" V ALUE=""#000000"">" Response.Write "</OBJECT>" Response.Write "<BR>" Response.Write "<OBJECT height=32 width="& ;strWidth&" classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA>" Response.Write "<PARAM NAME=""_ExtentX"" V ALUE=""12700"">" Response.Write "<PARAM NAME=""_ExtentY"" V ALUE=""847"">" Response.Write "<PARAM NAME=""AUTOSTART""&nb sp;V ALUE=""0"">" Response.Write "<PARAM NAME=""SHUFFLE"" V ALUE=""0"">" Response.Write "<PARAM NAME=""PREFETCH""  ;V ALUE=""0"">" Response.Write "<PARAM NAME=""NOLABELS""&nbs p;V ALUE=""0"">" Response.Write "<PARAM NAME=""CONTROLS""&nbs p;V ALUE=""ControlPanel,StatusBar"">" Response.Write "<PARAM NAME=""CONSOLE"" V ALUE=""Clip"">" Response.Write "<PARAM NAME=""LOOP"" V AL UE=""0"">" Response.Write "<PARAM NAME=""NUMLOOP""  ;V ALUE=""0"">" Response.Write "<PARAM NAME=""CENTER"" V ALUE=""0"">" Response.Write "<PARAM NAME=""MAINTAINASPECT "" V ALUE=""0"">" Response.Write "<PARAM NAME=""BACKGROUNDCO LOR"" V ALUE=""#000000"">" Response.Write "</OBJECT>" End SelectEnd IfEnd Sub 调用程序代码Call SelPlay(DvUrl,280,220)更多信息请查看IT技术专栏。
使用HTML5在网页中嵌入音频和视频播放的基本方法
使⽤HTML5在⽹页中嵌⼊⾳频和视频播放的基本⽅法HTML5 特性,包括原⽣⾳频和视频⽀持⽽⽆需 Flash。
HTML5 <audio> 和 <video> 标签让我们给站点添加媒体变得简单。
我们只需要设置 src 属性来识别媒体资源,包含 controls 属性让⽤户可以播放和暂停媒体。
嵌⼊视频下⾯是在 Web 页⾯中嵌⼊视频⽂件最简单的形式:XML/HTML Code复制内容到剪贴板1. <video src="foo.mp4" width="300" height="200" controls>2. Your browser does not support the <video> element.3. </video>⽬前的 HTML5 规范草案还没有指定浏览器应该在 video 标签中⽀持哪种视频格式。
但是最常⽤的视频格式是:Ogg:带有 Thedora 视频编码器和 Vorbis ⾳频编码器的 Ogg ⽂件。
mpeg4:带有 H.264 视频编码器和 AAC ⾳频编码器的 MPEG4 ⽂件。
我们可以使⽤带有媒体类型和其他属性的 <source> 标签指定媒体⽂件。
video 元素允许使⽤多个 source 元素,浏览器会使⽤第⼀个认可的格式:XML/HTML Code复制内容到剪贴板1. <!DOCTYPE HTML>2. <html>3. <body>4. <video width="300" height="200" controls autoplay>5. <source src="/html5/foo.ogg" type="video/ogg" />6. <source src="/html5/foo.mp4" type="video/mp4" />7. Your browser does not support the <video> element.8. </video>9. </body>10. </html>Video 属性规范HTML5 video 标签可以使⽤多个属性控制外观和感觉以及各种控制功能:属性描述autoplay如果指定这个布尔值属性,只要没有停⽌加载数据,视频就会⽴刻开始⾃动播放。
网页中嵌入视频播放器代码大全
网页视频播放器代码大全网页mtv播放器代码一. RM格式(无边框按钮)RealPlayer代码如下:<OBJECT ID=video1 CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" HEIGHT=288 WIDTH=352><param name="_ExtentX" value="9313"><param name="_ExtentY" value="7620"><param name="AUTOSTART" value="1"><!--AUTOSTART 不自动播放为0,自动播放为1--><param name="SHUFFLE" value="0"><param name="PREFETCH" value="0"><param name="NOLABELS" value="0"><param name="SRC" value="/old/gansu/huatingzhibo/move/88.rm"><!--播放文件地址--><param name="CONTROLS" value="ImageWindow"><param name="CONSOLE" value="Clip1"><param name="LOOP" value="0"><param name="NUMLOOP" value="0"><param name="CENTER" value="0"><param name="MAINTAINASPECT" value="0"><param name="BACKGROUNDCOLOR" value="#000000"><embed SRC type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1"CONTROLS="ImageWindow" HEIGHT="288" WIDTH="352" AUTOSTART="false"></OBJECT>二. RM格式(带边框按钮)RealPlayer代码如下:<object id="vid" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="427" height="300"><param name="_ExtentX" value="11298" /><param name="_ExtentY" value="7938" /><param name="AUTOSTART" value="-1" /><!--AUTOSTART 0为打开页面处于待命状态,为-1时打开页面直接播放--><param name="SHUFFLE" value="0" /><param name="PREFETCH" value="0" /><param name="NOLABELS" value="-1" /><param name="SRC" value="/mtv/20010618/001.ram"; /><!--播放文件地址--><param name="CONTROLS" value="Imagewindow" /><param name="CONSOLE" value="clip1" /><param name="LOOP" value="0" /><param name="NUMLOOP" value="0" /><param name="CENTER" value="0" /><param name="MAINTAINASPECT" value="0" /><param name="BACKGROUNDCOLOR" value="#000000" /></object><br /><object id="vid2" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="427" height="30"><param name="_ExtentX" value="11298" /><param name="_ExtentY" value="794" /><param name="AUTOSTART" value="-1" /><param name="SHUFFLE" value="0" /><param name="PREFETCH" value="0" /><param name="NOLABELS" value="-1" /><param name="SRC" value="/mtv/20010618/001.ram"; /><!--播放文件地址--><param name="CONTROLS" value="ControlPanel" /><param name="CONSOLE" value="clip1" /><param name="LOOP" value="0" /><param name="NUMLOOP" value="0" /><param name="CENTER" value="0" /><param name="MAINTAINASPECT" value="0" /><param name="BACKGROUNDCOLOR" value="#000000" /></object>三. WMV格式(带边框按钮)Windows Media Player代码如下:<object classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95codebase="/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,1,5,217"id=MediaPlayer type=application/x-oleobject width=427 height=329 standby="Loading Microsoft Windows Media Playercomponents..." VIEWASTEXT align=MIDDLE><param name=AutoSize value=0><param name=AutoStart value=1><param name=AnimationAtStart value=0><param name=AllowScan value=-1><param name=AllowChangeDisplaySize value=0><param name=AutoRewind value=0><param name=Balance value=0><param name=BaseURL value=""><param name=BufferingTime value=5><param name=CaptioningID value=""><param name=ClickToPlay value=0><param name=CursorType value=32512><param name=CurrentPosition value=-1><param name=CurrentMarker value=0><param name=DefaultFrame value=1><param name=DisplayBackColor value=0><param name=DisplayForeColor value=16777215><param name=DisplayMode value=0><param name=DisplaySize value=0><param name=Enabled value=-1><param name=EnableContextMenu value=-1><param name=EnablePositionControls value=0><param name=EnableFullScreenControls value=0><param name=EnableTracker value=1><param name=Filename value="/nystx/splx/zhang.wmv"><!--播放文件地址--><param name=InvokeURLs value=-1><param name=Language value=-1><param name=Mute value=0><param name=PlayCount value=1><param name=PreviewMode value=0><param name=Rate value=1><param name=SelectionStart value=0><param name=SelectionEnd value=true><param name=SendOpenStateChangeEvents value=-1><param name=SendWarningEvents value=-1><param name=SendErrorEvents value=-1><param name=SendKeyboardEvents value=0><param name=SendMouseClickEvents value=0><param name=SendMouseMoveEvents value=0><param name=SendPlayStateChangeEvents value=-1><param name=ShowCaptioning value=0>其他网页视频播放代码一. avi格式代码如下:二. mpg格式代码如下:三. smi格式代码如下:。
网页视频播放器代码大全,格式包括rm,rmvb,wmv等道
收集最常用的网页中嵌入视频代码大全各种各样的网页视频播放器代码.网页中嵌入视频代码综合完全版1.avi 格式代码片断如下:程序代码:ltobjectidquotvideoquotwidthquot400quotheightquot200quotborderquot0quotclassidq uotclsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAquotgt ltparamnamequotShowDisplayquotvaluequot0quotgt ltparamnamequotShowControlsquotvaluequot1quotgt ltparamnamequotAutoStartquotvaluequot1quotgt ltparamnamequotAutoRewindquotvaluequot0quotgt ltparamnamequotPlayCountquotvaluequot0quotgt ltparamnamequotAppearancevaluequot0valuequotquotquotgt ltparamnamequotBorderStylevaluequot0valuequotquotquotgt ltparamnamequotMovieWindowHeightquotvaluequot240quotgt ltparamnamequotMovieWindowWidthquotvaluequot320quotgt ltparamnamequotFileNamequotvaluequot/Mbar.aviquotgtltembedwidthquot400quotheigh tquot200quotborderquot0quotshowdisplayquot0quotshowcontrolsquot1quotautostartquot 1quotautorewindquot0quotplaycountquot0quotmoviewindowheightquot240quotmoviewi ndowwidthquot320quotfilenamequot/Mbar.aviquotsrcquotMbar.aviquotgt lt/embedgtlt/objectgt2.mpg 格式代码片断如下:程序代码:ltobjectclassidquotclsid:05589FA1-C356-11CE-BF01-00AA0055595AquotidquotActi veMovie1quotwidthquot239quotheightquot250quotgt ltparamnamequotAppearancequotvaluequot0quotgt ltparamnamequotAutoStartquotvaluequot-1quotgt ltparamnamequotAllowChangeDisplayModequotvaluequot-1quotgt ltparamnamequotAllowHideDisplayquotvaluequot0quotgt ltparamnamequotAllowHideControlsquotvaluequot-1quotgt ltparamnamequotAutoRewindquotvaluequot-1quotgt ltparamnamequotBalancequotvaluequot0quotgt ltparamnamequotCurrentPositionquotvaluequot0quotgt ltparamnamequotDisplayBackColorquotvaluequot0quotgt ltparamnamequotDisplayForeColorquotvaluequot16777215quotgt ltparamnamequotDisplayModequotvaluequot0quotgt ltparamnamequotEnabledquotvaluequot-1quotgt ltparamnamequotEnableContextMenuquotvaluequot-1quotgt ltparamnamequotEnablePositionControlsquotvaluequot-1quotgt ltparamnamequotEnableSelectionControlsquotvaluequot0quotgt ltparamnamequotEnableTrackerquotvaluequot-1quotgt ltparamnamequotFilenamequotvaluequot/mpeg/halali.mpgquotvaluetypequotrefquotgt ltparamnamequotFullScreenModequotvaluequot0quotgt ltparamnamequotMovieWindowSizequotvaluequot0quotgt ltparamnamequotPlayCountquotvaluequot1quotgt ltparamnamequotRatequotvaluequot1quotgt ltparamnamequotSelectionStartquotvaluequot-1quotgt ltparamnamequotSelectionEndquotvaluequot-1quotgt ltparamnamequotShowControlsquotvaluequot-1quotgt ltparamnamequotShowDisplayquotvaluequot-1quotgt ltparamnamequotShowPositionControlsquotvaluequot0quotgtltparamnamequotShowTrackerquotvaluequot-1quotgt ltparamnamequotVolumequotvaluequot-480quotgt lt/objectgt3.smi 格式代码片断如下:程序代码:ltOBJECTidRVOCXclassidclsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAwi dth240height180gt ltparamnamequot_ExtentXquotvaluequot6350quotgt ltparamnamequot_ExtentYquotvaluequot4763quotgt ltparamnamequotAUTOSTARTquotvaluequot-1quotgt ltparamnamequotSHUFFLEquotvaluequot0quotgt ltparamnamequotPREFETCHquotvaluequot0quotgt ltparamnamequotNOLABELSquotvaluequot-1quotgt ltparamnamequotSRCquotvaluequotrm.rmquotgt ltparamnamequotCONTROLSquotva ltparamnamequotCONSOLEquotvaluequotconsole1quotgt ltparamnamequotLOOPquotvaluequot0quotgt ltparamnamequotNUMLOOPquotvaluequot0quotgt ltparamnamequotCENTERquotvaluequot0quotgt ltparamnamequotMAINTAINASPECTquotvaluequot0quotgtltparamnamequotBACKGR OUNDCOLORquotvaluequot000000quotgtltembedsrcquotreal.smiquottypequotaudio/x-pn-realaudio-pluginquotconsolequotConsole1quotcontrolsquotImageWindowquotheightq uot180quotwidthquot240quotautostartquottquot您好,欢迎访问阿里西西!注册或登陆建站素材加入收藏设为首页阿里论坛网页特效电子书籍源码下载网站首页文章下载酷站论坛书籍网页书籍编程书籍数据库服务器设计运营素材模板图标图片动画字体库源码企业商城行业门户办公建站特效广告代码菜单时间文字窗口图像教程前端技术编程开发数据库服务器脚本动画下载软件工具编程图像服务器站长优化盈利经验推广新闻域名酷站韩国酷站欧美中国收录查询旧版阿里西西FTP 贵宾资源史上最全SEO 资料韩国网页设计大师商业网站源码FLASH 整站源码全年网站源码打包合辑5 元一张DVD 网页模板前端首页HTML 基础XHTML 标准XML 教程CSS 教程脚本技术动画媒体界面设计开发文档AJAX 教程您的位置:阿里西西gt 前端技术gt 动画媒体gt 正文分类条件HTML 基础XHTML 标准XML 教程CSS 教程脚本技术动画媒体界面设计相关文档AJAX 教程8 顶网页视频播放器代码大全互联网Alixixi 2009-08-07 点击:13620 字体:大中小我要评论收集最常用的网页中嵌入视频代码大全各种各样的网页视频播放器代码.-网页中嵌入视频代码综合完全版1.avi 格式代码片断如下:程序代码ltobjectidquotvideoquotwidthquot400quotheightquot200quotborderquot0quotclassidquot clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAquotgt ltparamnamequotShowDisplayquotvaluequot0quotgt ltparamnamequotShowControlsquotvaluequot1quotgt ltparamnamequotAutoStartquotvaluequot1quotgt ltparamnamequotAutoRewindquotvaluequot0quotgt ltparamnamequotPlayCountquotvaluequot0quotgt ltparamnamequotAppearancevaluequot0valuequotquotquotgt ltparamnamequotBorderStylevaluequot0valuequotquotquotgt ltparamnamequotMovieWindowHeightquotvaluequot240quotgt ltparamnamequotMovieWindowWidthquotvaluequot320quotgtltparamnamequotFileNamequotvaluequot/Mbar.aviquotgtltembedwidthquot400quotheigh tquot200quotborderquot0quotshowdisplayquot0quotshowcontrolsquot1quotautostartquot 1quotautorewindquot0quotplaycountquot0quotmoviewindowheightquot240quotmoviewi ndowwidthquot320quotfilenamequot/Mbar.aviquotsrcquotMbar.aviquotgt lt/embedgtlt/objectgt 2.mpg 格式代码片断如下:程序代码ltobjectclassidquotclsid:05589FA1-C356-11CE-BF01-00AA0055595AquotidquotActive Movie1quotwidthquot239quotheightquot250quotgt ltparamnamequotAppearancequotvaluequot0quotgt ltparamnamequotAutoStartquotvaluequot-1quotgt lt ltparamnamequotAllowHideDisplayquotvaluequot0quotgt ltparamnamequotAllowHideControlsquotvaluequot-1quotgtltparamnamequotAutoRewin dquotvaluequot-1quotgtltparamnamequotBalancequotvaluequot0quotgtltparamnamequot CurrentPositionquotvaluequot0quotgtltparamnamequotDisplayBackColorquotvaluequot0 quotgtltparamnamequotDisplayForeColorquotvaluequot16777215quotgtltparamnamequo tDisplayModequotvaluequot0quotgtltparamnamequotEnabledquotvaluequot-1quotgtltpar amnamequotEnableContextMenuquotvaluequot-1quotgtltparamnamequotEnablePosition Controlsquotvaluequot-1quotgtltparamnamequotEnableSelectionControlsquotvaluequot0 quotgtltparamnamequotEnableTrackerquotvaluequot-1quotgtltparamnamequotFilenameq uotvaluequot/mpeg/halali.mpgquotvaluetypequotrefquotgtltparamnamequotFullScreenM odequotvaluequot0quotgtltparamnamequotMovieWindowSizequotvaluequot0quotgtltpar amnamequotPlayCountquotvaluequot1quotgtltparamnamequotRatequotvaluequot1quotgt ltparamnamequotSelectionStartquotvaluequot-1quotgtltparamnamequotSelectionEndquot valuequot-1quotgtltparamnamequotShowControlsquotvaluequot-1quotgtltparamnamequo tShowDisplayquotvaluequot-1quotgtltparamnamequotShowPositionControlsquotvaluequ ot0quotgtltparamnamequotShowTrackerquotvaluequot-1quotgt ltparamnamequotVolumequotvaluequot-480quotgt lt/objectgt 3.smi 格式代码片断如下:程序代码ltOBJECTidRVOCXclassidclsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAwidth 240height180gt ltparamnamequot_ExtentXquotvaluequot6350quotgt ltparamnamequot_ExtentYquotvaluequot4763quotgt ltparamnamequotAUTOSTARTquotvaluequot-1quotgt ltparamnamequotSHUFFLEquotvaluequot0quotgt ltparamnamequotPREFETCHquotvaluequot0quotgt ltparamnamequotNOLABELSquotvaluequot-1quotgt ltparamnamequotSRCquotvaluequotrm.rmquotgt ltparamnamequotCONTROLSquotvaluequotImageWindowquotgt ltparamnamequotCONSOLEquotvaluequotconsole1quotgt ltparamnamequotLOOPquotvaluequot0quotgt ltparamnamequotNUMLOOPquotvaluequot0quotgt ltparamnamequotCENTERquotvaluequot0quotgt ltparamnamequotMAINTAINASPECTquotvaluequot0quotgtltparamnamequotBACKGR OUNDCOLORquotvaluequot000000quotgtltembedsrcquotreal.smiquottypequotaudio/x-pn-realaudio-pluginquotconsolequotConsole1quotcontrolsquotImageWindowquotheightq uot180quotwidthquot240quotautostartquottruequotgtlt/OBJECTgt 4.rm 格式代码片断如下:程序代码ltOBJECTIDvideo1CLASSIDquotclsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFAquotHEIGHT288WIDTH352gt ltparamnamequot_ExtentXquotvaluequot9313quotgt ltparamnamequot_ExtentYquotvaluequot7620quotgt ltparamnamequotAUTOSTARTquotvaluequot0quotgt ltparamnamequotSHUFFLEquotvaluequot0quotgt ltparamnamequotPREFETCHquotvaluequot0quotgt ltparamnamequotNOLABELSquotvaluequot0quotgt ltparamnamequotSRCquotvaluequotrtsp://203...35/vod/dawan-a.rmquotgt ltparamnamequotCONTROLSquotvaluequotImageWindowquotgt ltparamnamequotCONSOLEquotvaluequotClip1quotgt ltparamnamequotLOOPquotvaluequot0quotgt ltparamnamequotNUMLOOPquotvaluequot0quotgt ltparamnamequotCENTERquotvaluequot0quotgt ltparamnamequotMAINTAINASPECTquotvaluequot0quotgt ltparamnamequotBACKGROUNDCOLORquotvaluequot000000quotgtltembedSRCtylt/OBJECTgt 5.wmv 格式代码片断如下:程序代码ltobjectidquotNSPlayquotwidth200height180classidquotCLSID:22d6f312-b0f6-11d0-94a b-0080c74c7e95quotcodebasequot/activex/controls/mplayer/ en/nsmp2inf.cabVersion645715quotstandbyquotLoadingMicrosoftWindowsMediaPlayer components...quottypequotapplication/x-oleobjectquotalignquotrightquothspacequot5quo tgt ltparamnamequotAutoRewindquotvalue1gt ltparamnamequotFileNamequotvaluequot/blog/.wmvquotgt ltparamnamequotShowControlsquotvaluequot1quotgt ltparamnamequotShowPositionControlsquotvaluequot0quotgt ltparamnamequotShowAudioControlsquotvaluequot1quotgt ltparamnamequotShowTrackerquotvaluequot0quotgt ltparamnamequotShowDisplayquotvaluequot0quotgt ltparamnamequotShowStatusBarquotvaluequot0quotgt ltparamnamequotShowGotoBarquotvaluequot0quotgt ltparamnamequotShowCaptioningquotvaluequot0quotgt ltparamnamequotAutoStartquotvalue1gt ltparamnamequotVolumequotvaluequot-2500quotgt ltparamnamequotAnimationAtStartquotvaluequot0quotgt ltparamnamequotTransparentAtStartquotvaluequot0quotgt ltparamnamequotAllowChangeDisplaySizequotvaluequot0quotgt ltparamnamequotAllowScanquotvaluequot0quotgt ltparamnamequotEnableContextMenuquotvaluequot0quotgt ltparamnamequotClickToPlayquotvaluequot0quotgt lt/objectgt 6.wma 格式放在ltbodygt里面。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
<!--控件设置:当前位置-->
<!--控件设置:当前标记-->
<param name="ShowPositionControls" value="1" />
<!--是否自动播放-->
<param name="enableErrorDialogs" value="-1" />
<param name="SAMIStyle" value="" />
<!--播放的文件地址-->
<!--播放次数控制,为整数-->
<!--SAMI语言-->
<!--字幕ID-->
</object>
<!--播放器显示模式:Full显示全部;mini最简化;None不显示播放控制,只显示视频窗口;invisible全部不显示-->
<!--如果是0可以允许全屏,否则只能在窗口中查看-->
<param name="SAMILang" value="" />
<param name="SAMIFilename" value="" />
</embed>
</object>
2.mpg格式
<objectid="video2"classid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A"width="320"height="240">
<param name="currentMarker" value="0" />
<param name="defaultFrame" value="" />
<param name="invokeURLs" value="0" />
<param name="baseURL" value="" />
<paramname="Appearance"value="0">
<paramname="AutoStart"value="-1">
<paramname="AllowChangeDisplayMode"value="-1">
ay"value="0">
function LoadMusic(FilePath)
{
document.getElementById("player").setAttribute("url",FilePath);
}
<object id="player" height="147" width="196" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="url" value="" />
<param name="PlayCount" value="1" />
<!--是否按比例伸展-->
<!--默认声音大小0%-100%,50则为50%-->
<!--是否静音-->
<paramname="FileName"value="/temp.avi">
<embedwidth="320"height="240"border="0"showdisplay="0"showcontrols="1"autostart="1"autorewind="0"playcount="0"moviewindowheight="240"moviewindowwidth="320"filename="/temp.avi"src="/temp/temp.avi">
<param name="stretchToFit" value="0" />
<param name="volume" value="50" />
<paramname="AllowHideControls"value="-1">
<!--显示默认框架-->
<!--脚本命令设置:是否调用URL-->
<!--脚本命令设置:被调用的URL-->
<param name="windowlessVideo" value="0" />
<param name="fullScreen" value="0" />
<paramname="ShowControls"value="1">
<paramname="AutoStart"value="1">
<paramname="AutoRewind"value="0">
<paramname="PlayCount"value="0">
<param name="mute" value="0" />
<param name="uiMode" value="Full" />
1.avi格式<objectid="video1"classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"width="320"height="240"border="0">
<paramname="ShowDisplay"value="0">
<paramname="Appearancevalue="0value=""">
<paramname="BorderStylevalue="0value=""">
<paramname="MovieWindowHeight"value="240">
<paramname="MovieWindowWidth"value="320">
<param name="AutoStart" value="-1" />
<param name="Balance" value="0" />
<param name="rate" value="1" />
<param name="currentPosition" value="0" />
<param name="enabled" value="-1" />
<param name="EnableContextMenu" value="" />
<!--调整左右声道平衡,同上面旧播放器代码-->
<!--播放器是否可人为控制-->
<!--是否启用上下文菜单-->
<!--开始播放是否自动全屏-->
<!--是否启用错误提示报告-->
<!--SAMI样式-->