Embeding Video Players in web pages Summary

简介: 1. Windows Media Player   2.

1. Windows Media Player

 

<object id="avewmplayer" height="320" width="400" classid="CLSID:{6BF52A52-394A-11d3-B153-00C04F79FAA6}"> <param name="AutoStart" value="0"> <param name="Balance" value="0"> <param name="enabled" value="-1"> <param name="EnableContextMenu" value="-1"> <param name="url" value="filename"> <param name="PlayCount" value="1"> <param name="rate" value="1"> <param name="currentPosition" value="0"> <param name="currentMarker" value="0"> <param name="defaultFrame" value=""> <param name="invokeURLs" value="0"> <param name="baseURL" value=""> <param name="stretchToFit" value="0"> <param name="volume" value="50"> <param name="mute" value="0"> <param name="uiMode" value="Full"> <param name="windowlessVideo" value="0"> <param name="fullScreen" value="0"> <param name="enableErrorDialogs" value="-1"> <embed style="FILTER: xray" mce_style="FILTER: xray" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="filename" mce_src="filename" width="400" height="320" type="application/x-mplayer2" autosize="False" autostart="true" showcontrols="true" ShowStatusBar="1" loop="undefined" EnableContextMenu="0"> </embed> </object>

 

2. Real Player

<object id="RP" classid="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" height="320" width="400"> <param name="_ExtentX" value="10583"> <param name="_ExtentY" value="8467"> <param name="SRC" value="filename"> <param name="AUTOSTART" value="0"> <param name="SHUFFLE" value="0"> <param name="PREFETCH" value="0"> <param name="NOLABELS" value="0"> <param name="CONTROLS" value="ImageWindow,ControlPanel"> <param name="CONSOLE" value="AveClip"> <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 autostart="False" console="AveClip" controls="ImageWindow,ControlPanel" height="320" src="filename" mce_src="filename" type="audio/x-pn-realaudio-plugin" width="400"> </embed> </object>

 

3. Flash Player

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="400" height="320"> <param name="movie" value="flashpalyerurl//.swf" /> <param name="quality" value="high" /> <param name="allowFullScreen" value="true" /> <param name="FlashVars" value="vcastr_file=filename" /> <embed src="flashpalyerurl//.swf" mce_src="flashpalyerurl/.swf" allowfullscreen="true" flashvars="vcastr_file=filename" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="320"> </embed> </object>

 

4. QuickTime Player

<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="640" width="800"> <param name="autoplay" value="False" /> <param name="controller" value="true" /> <param name="quality" value="high" /> <param name="kioskmode" value="true" /> <param name="CORRECTION" value="none" /> <param name="src" value="filename" /> <embed autoplay="False" controller="true" height="640" quality="high" src="filename" mce_src="filename" type="video/quicktime" width="800"> </embed> </object>

PS: The QuickTime Player plug-in has a shortage that if the size set smaller than the video, the video will can't be display totally.

 

5. PDF

<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="100%" height="100%"> <param name="SRC" value="filename"> <param name="_StockProps" value="0"> <param name="_Version" value="65539"> <param name="_ExtentX" value="20108"> <param name="_ExtentY" value="10866"> <embed src="filename" mce_src="filename" type="application/pdf" width="100%" height="100%"> </embed> </object>

 

Note:

Object label is used for IE browser of Windows platform, and the embed label is for Netscape Navigator browser of Windows and Macintosh platforms and IE browser of Macintosh platform. The IE of Windows platform plays video by Active-X plug-in but others by Netscape plug-in. So when we use this, be sure we write both of them to support as many browsers as possible.

相关文章
|
1月前
|
开发框架 前端开发 JavaScript
ASP.NET Web Pages - 教程
ASP.NET Web Pages 是一种用于创建动态网页的开发模式,采用HTML、CSS、JavaScript 和服务器脚本。本教程聚焦于Web Pages,介绍如何使用Razor语法结合服务器端代码与前端技术,以及利用WebMatrix工具进行开发。适合初学者入门ASP.NET。
|
1月前
|
开发框架 .NET PHP
ASP.NET Web Pages - 添加 Razor 代码
ASP.NET Web Pages 使用 Razor 标记添加服务器端代码,支持 C# 和 Visual Basic。Razor 语法简洁易学,类似于 ASP 和 PHP。例如,在网页中加入 `@DateTime.Now` 可以实时显示当前时间。
|
Web App开发 .NET
一起谈.NET技术,ASP.NET MVC3 基础教程 – Web Pages 1.0
  I:Web Pages 1.0中以“_”开头的特别文件(文件命名时不区分大小写)   “_appstart.cshtml” & “_pagestart.cshtml” & “_viewstart.cshtml”   _appstart.cshtml - 应用程序启动时在Global. Application_Start方法后执行。
1118 0
|
Web App开发 .NET
ASP.NET MVC3 基础教“.NET技术”程 – Web Pages 1.0
  I:Web Pages 1.0中以“_”开头的特别文件(文件命名时不区分大小写)   “_appstart.cshtml” & “_pagestart.cshtml” & “_viewstart.cshtml”   _appstart.cshtml - 应用程序启动时在Global. Application_Start方法后执行。
1078 0
|
Web App开发 .NET
ASP.NET MV“.NET研究”C3 基础教程 – Web Pages 1.0
  I:Web Pages 1.0中以“_”开头的特别文件(文件命名时不区分大小写)   “_appstart.cshtml” & “_pagestart.cshtml” & “_viewstart.cshtml”   _appstart.cshtml - 应用程序启动时在Global. Application_Start方法后执行。
1141 0
|
Web App开发 Python
Python crawler access to web pages the get requests a cookie
Python in the process of accessing the web page,encounter with cookie,so we need to get it. cookie in Python is form of a dictionary exists ,so coo...
1452 0
|
前端开发 .NET Windows
ASP.NET Web Pages 的冲突版本问题
随着VS版本和.NET MVC版本、EF的版本的不断更新,虽然很多功能随着版本的提升而更完善,但对于旧版本开发的软件就有点悲催了,或许很多开发者都遇到类似的问题! 最近有一个项目是用.NET MVC3+EXT.NET MVC开发的(当时使用本博客中Ext.Net MVC 配置(2)进行配置的),现在要移植到MVC4的环境中,就遇到了各种各样的问题,都快奔溃了,现在就来总结下: 1、ASP.NET Web Pages版本问题 调试后浏览器提示:  检测到 ASP.NET Web Pages 的冲突版本: 指定的版本为“1.0.0.0”,而 bin 中的版本为“2.0.0.0”。
1379 0
Did you know&hellip; How to quickly comment and uncomment in your web pages?
Select the lines you want to be commented in your ASPX, HTML, web config file etc  and click on the Comment/ Uncomment icon in Toolbar.
807 0