From: Michael Benchoff <[EMAIL PROTECTED]>
Subject: Re: Javascript to control RealPlayer

RealForum wrote:
 >
 > From: "Matt Mitchell" <[EMAIL PROTECTED]>
 > Subject: Javascript to control RealPlayer
 >
 > I want to control the RealPlayer with my own custom buttons. Is this a
 > JavaScript code that I need to do this with? And can anybody point me in the
 > right direction for the proper embed code for IE and Netscape? I looked in
 > the RealProducer manual, but I'm having a hard time finding the correct
 > info. any help is appreciated, thanks!
 >
 > Matt

Matt,

Proper <EMBED> code:

<embed src="yourvideo.rpm" controls="ImageWindow" width="256"
height="192" autostart="true" type="audio/x-pn-realaudio-plugin"
pluginsurl="http://www.real.com/products/player/index.html"
pluginspage="http://www.real.com/products/player/index.html"
NAME="vidPlayer" NOJAVA="false" CENTER="true" BGCOLOR="#000000"></EMBED>
<noembed><a href="yourvideo.ram">please click here</a></noembed>

    Always remember to end your <EMBED> tag & to provide a link within a
<NOEMBED> tag for browsers that don't support the <EMBED> tag or for
people behind firewalls.

...

My page was set up using frames, so here is what I had:

<SCRIPT LANGUAGE="Javascript">
        <!-- begin

        function play() {
                top.frames[4].frames[4].document.vidPlayer.DoPlay()
                }

        function pause() {
                top.frames[4].frames[4].document.vidPlayer.DoPause()
                }

        function stop() {
                top.frames[4].frames[4].document.vidPlayer.DoStop()
                }

        // end -->
</SCRIPT>

<CENTER><A HREF="javascript:play()" TITLE="Play the video"><IMG
SRC="graphics/playbutton.gif" ALT="play" WIDTH="25" HEIGHT="18"
HSPACE="3" VSPACE="0" BORDER="0"></A><A HREF="javascript:pause()"
TITLE="Pause the video"><IMG SRC="graphics/pausebutton.gif" ALT="pause"
WIDTH="25" HEIGHT="18" HSPACE="3" VSPACE="0" BORDER="0"></A><A
HREF="javascript:stop()" TITLE="Stop the video"><IMG
SRC="graphics/stopbutton.gif" ALT="stop" WIDTH="25" HEIGHT="18"
HSPACE="3" VSPACE="0" BORDER="0"></A></CENTER>

...

If you have any more problems, check out
http://service.real.com/help/library/guides/production/realpgd.htm
(Chapter 8) or feel free to e-mail me.

--

[mike]
:.

*******************************************************
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