From: Nicholas Hart <[EMAIL PROTECTED]>
Subject: Re: Using the Netscape Plugin and dhtml with DoPlay() etc.

This is a bug in netscape.  Try something like this instead:

document.playerDiv.document.embeds[0].DoPlay();


At 12:31 PM 1/19/00 -0800, RealForum wrote:
 >From: "Matt Friedman" <[EMAIL PROTECTED]>
 >Subject: Using the Netscape Plugin and dhtml with DoPlay() etc.
 >
 >As you can see below, I have my RealPlayer inside of a div tag in a web =
 >page that I want to use in Netscape.
 >
 >I am testing the method DoPlay() but I can't seem to reference the =
 >player properly, although I am following examples that I have seen which =
 >do just this.
 >
 >If anyone can tell me why the input button below causes a Javascript =
 >error, I would really appreciate it.
 >
 >Thanks,
 >Matt.
 >
 ><body>
 ><div id="playerDiv" style="position:absolute; left:50; top:50;">
 ><OBJECT ID="realPlay" WIDTH=400  HEIGHT=250 =
 >CLASSID="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA">
 >  <PARAM NAME="SRC" VALUE=3D"global.smil">
 >  <PARAM NAME="AUTOSTART" VALUE="1">
 >  <PARAM NAME="NOLABELS" VALUE="0">
 >  <PARAM NAME="AutoGotoURL" VALUE="0">
 >  <PARAM NAME="Controls" VALUE="ImageWindow">
 ><EMBED name=realPlay SRC="global.smil" WIDTH=400  HEIGHT=250
 >  CONTROLS="ImageWindow" AUTOSTART=FALSE TYPE="audio/x-pn-realaudio-plugin">
 ></EMBED>
 ></OBJECT>
 ></div>
 >
 ><form>
 ><input type=button value="Play" =
 >onclick="document.playerDiv.document.realPlay.DoPlay();">
 ></form>
 >
 ></body>
 >


*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites.  Archives of RealForum can
be found at http://realforum.real.com

If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:

    unsubscribe realforum

or from another account, besides the address you subscribed with:

    unsubscribe realforum <[EMAIL PROTECTED]>

Reply via email to