playerObject Property

MS Office DHTML, HTML & CSS

playerObject Property


This document describes technologies available as an experimental implementation of HTML+TIME within Internet Explorer 5. While we encourage you to evaluate these features and to send us your feedbackInternet Link, please note that these features are subject to change.

Retrieves the object that plays media files.

Syntax

HTML N/A
Scripting [ oPlayer = ] object.playerObject

Possible Values

oPlayer Player object used for rendering the element's media.

The property is read-only with no default value.

Remarks

The PLAYER attribute specifies the object that plays media files.

This property provides access to all the properties, methods, and events available on the player object.

Example

This example plays a video clip with the Microsoft® Windows® Media Player control. The video clip begins playing five seconds after the page loads, and continues playing for 20 seconds. The playerObject is used to access the muteInternet Link Non-MSDN link property and aboutboxInternet Link Non-MSDN link method available on the Windows Media Player control.

Sample Code

<HTML>
<HEAD>
<TITLE>playerObject</TITLE>
<XML:NAMESPACE PREFIX="t"/>
<STYLE>
.time            { behavior: url(#default#time);}
</STYLE>
<SCRIPT>
function toggleVol() {
    if (cBox.checked == true) {
        mp.playerObject.mute = false;
    }
    else {
        mp.playerObject.mute = true;
    }
}
</SCRIPT>
</HEAD>
<BODY>
<SPAN STYLE="width:175; position:absolute; left:20; top:50; 
    padding:5; z-index:-1; border:1pt solid red;">
	A video clip is played here 5 seconds after the page is loaded.
</SPAN>

<!-- Add clip with HTML+TIME video element and specify the GUID for
Windows Media Player control with the PLAYER attribute -->
<t:VIDEO ID="mp" CLASS="time" STYLE="width:200; height:200"
t:PLAYER="{22d6f312-b0f6-11d0-94ab-0080c74c7e95}" 
t:SRC="/workshop/samples/author/behaviors/media/movie.avi" t:BEGIN="5" 
t:DUR="20" />

<BR><BR>
<INPUT TYPE="BUTTON" VALUE="About Player" 
    onclick="mp.playerObject.AboutBox();" >
<INPUT ID="cBox" TYPE=Checkbox CHECKED 
    onpropertychange="toggleVol();">
	  Volume On
</BODY>
</HTML>
This feature requires Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
animation, audio, img, media, video

See Also

multimedia extensions to html+timeInternet Link, PLAYER

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.