📄 media_quicktime.asp
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Object Element - Quick Time Video</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />
<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<link rel="stylesheet" type="text/css" href="../stdtheme.css" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<a name="top"></a>
<table cellpadding="0" cellspacing="0" width="100%" bgcolor="#808080">
<tr>
<td width="234" valign="top">
<a href="../default.htm"><img src="../images/w3default80.jpg" border="0" alt="W3Schools" /></a>
</td>
<th valign="middle" align="left" class="right">
<script type="text/javascript"><!--
google_ad_client = "pub-3440800076797949";
/*txtimg*/
google_ad_slot = "5330033957";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript" src="../../pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<noscript>
<a href="../default.asp" target="_blank"><img src="../banners/w6.gif" border="0" alt="W3Schools" /></a>
</noscript>
<br /></th>
</tr>
</table>
<table style="margin-left:1px" width="800px" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="137" class="content" valign="top"><br />
<a class="left" href="../default.asp" target="_top">
<img src="../images/homeicon.gif" border="0" alt="home" /></a>
<a class="left" href="../default.asp" target="_top">
<b>HOME</b></a>
<br /><br />
<b>Media Basic</b><br />
<a class="left" target="_top" href="default.asp" >Media HOME</a><br />
<a class="left" target="_top" href="media_intro.asp" >Media Intro</a><br />
<a class="left" target="_top" href="media_soundformats.asp" >Sound Formats</a><br />
<a class="left" target="_top" href="media_videoformats.asp" >Video Formats</a><br />
<a class="left" target="_top" href="media_browsersounds.asp" >Playing Sounds</a><br />
<a class="left" target="_top" href="media_browservideos.asp" >Playing Videos</a><br />
<a class="left" target="_top" href="media_windowsformats.asp" >Windows Formats</a><br />
<br />
<b>Object Element</b><br />
<a class="left" target="_top" href="media_object.asp" >Object Intro</a><br />
<a class="left" target="_top" href="media_quicktime.asp" style='font-weight:bold;'>Object QuickTime</a><br />
<a class="left" target="_top" href="media_realvideo.asp" >Object RealVideo</a><br />
<br />
<b>References</b><br />
<a class="left" target="_top" href="media_tagref.asp" >Tag Reference</a><br />
<a class="left" target="_top" href="media_playerref.asp" >Media Player Ref</a><br />
<a class="left" target="_top" href="media_mimeref.asp" >MIME Reference</a><br /><br />
<b>Selected Reading</b><br />
<a class="left" target="_top" href="../browsers/browsers_stats.asp">Web Statistics</a><br />
<a class="left" target="_top" href="../site/site_glossary.asp">Web Glossary</a><br />
<a class="left" target="_top" href="../hosting/default.asp">Web Hosting</a><br />
<a class="left" target="_top" href="../quality/default.asp">Web Quality</a><br /><br />
<a class="left" target="_top" href="../forum/default.asp">W3Schools Forum</a><br /><br />
<a class="left" target="_top" href="../about/about_helping.asp">Helping W3Schools</a><br /><br />
<script type="text/javascript"><!--
google_ad_client = "pub-3440800076797949";
/*LeftLinkUnit*/
google_ad_slot = "4854527104";
google_ad_width = 120;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="../../pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td valign="top">
<table style="border: 1px solid gray" width="100%" bgcolor="#FFFFFF" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>
<h1>Playing QuickTime Movies</h1>
<a href="media_object.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="media_realvideo.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>
<hr />
<p><b>The <object> element can play QuickTime movies.</b></p>
<hr />
<h2>The QuickTime Format</h2>
<p>The QuickTime format is developed by Apple. Videos stored in the QuickTime format have the extension .mov.</p>
<p>QuickTime is a common format on the Internet, but QuickTime movies cannot be
played on a Windows computer without an extra (free) component installed.</p>
<p>With the object element, code that will play a QuickTime movie can easily be
added to a web page. The object can be set to automatically install a QuickTime
player if it is not already installed on the users computer.</p>
<hr />
<h2>The Solution</h2>
<p>This is the code required to play a QuickTime movie:</p>
<table width="100%" border="1" class="ex" cellspacing="0">
<tr><td>
<pre><object width="160" height="144"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="sample.mov">
<param name="autoplay" value="true">
<param name="controller" value="false"></pre>
<pre><embed src="sample.mov" width="160" height="144"
autoplay="true" controller="false"
pluginspage="http://www.apple.com/quicktime/download/">
</embed></pre>
<pre></object></pre>
</td></tr>
</table>
<br />
<hr />
<h2>The <object> Element</h2>
<p>The <b>width</b> and <b>height</b> attributes of the object element should
match the size of the movie in pixels.</p>
<p>The <b>classid</b> attribute uniquely identifies the player software to use.
It must be set
to "clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B". This unique code
identifies an ActiveX control that must be installed on the users PC before the
movie can be played. If the user does not have the ActiveX control installed,
the browser can automatically download and install it. </p>
<p>The <b>codebase</b> attribute specifies the base path used to resolve
relative URIs specified by the classid, data, and archive attributes. When
absent, its default value is the base URI of the current document. <b>Note:</b>
Internet Explorer uses this attribute to specify a location from where the player can
be downloaded. It must be
set to "http://www.apple.com/qtactivex/qtplugin.cab". This location
will always contain the latest version of the QuickTime player.</p>
<p>The <b>src</b> parameter should point to the movie file.</p>
<p>The <b>autoplay</b> parameter should have the value "true" if you want the
movie to play automatically.</p>
<p>The <b>controller</b> parameter should have the value "false" if you don't
want the control buttons to show.</p>
<hr />
<h2>The <embed> Element</h2>
<p>The <b>embed</b> element is added to support browsers that don't support the
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -