From: "Fred Doddridge" <[EMAIL PROTECTED]>
Subject: Re: Controlling CallBack Methods via JavaScript
We're doing this type of thing with our player. To answer some of your
questions:
Yes, it is possible. The way to handle the callbacks depends on the
browser. The plugin in IE will fire callbacks to vbscript handlers, while
the plugin in netscape requires an applet to catch the callbacks and handle
them (usually in javascript, using liveconnect).
Since you are only focusing on the IE browser, you could just catch the
callback using vbscript, then call a javascript function with the event's
parameters.
ie:
<script language="VBScript">
Sub RVOCX_OnClipOpened(byVal clipName, byVal url)
newStream(clipName, url)
End Sub
</script>
<script language="javascript">
function newStream()
{
do something...
}
</script>
It's a pretty simple process. If you would like some examples, email me
directly, and I'll be happy to send some sample code.
There are also several examples on RealNetworks site you should check out.
Fred Doddridge [[EMAIL PROTECTED]]
Player Project Manager . theDial
----- Original Message -----
From: RealForum <[EMAIL PROTECTED]>
Sent: Tuesday, February 22, 2000 2:32 PM
Subject: Controlling CallBack Methods via JavaScript
> From: "Rob Hoch" <[EMAIL PROTECTED]>
> Subject: Controlling CallBack Methods via JavaScript
>
> I would like to have several clips played sequentially in one .smi file on
> an embedded player. Between each clip I may want to take control of the
> process, (for example, pausing the start of the next clip to wait for user
> interaction), before the next clip starts. For simplicity sake I am only
> worrying about output to IE 5 (& up) browsers. I am also using JavaScript
> for browser scripting.
>
> After reviewing the "Embedded Real Player Extended Functionality Guide" I
> think I can accomplish this using the various CallBack Methods, but the
> examples focus on Netscape and JavaScript vs. IE and VBScript. The trick,
> as I see it, is that the browser will have to be smart enough to know when
a
> clip ends and run some JavaScript (or VBScript) when that happens.
>
> Here are my questions:
> 1) Is my approach possible?
> 2) Assuming my approach is possible, can I use JavaScript to reference the
> callback methods? (or do I need to use VBScript?)
> 3) Do I need to include some sort of Java applet to accomplish this?
> 4) Are there any examples of this type of interactivity?
>
> TIA,
> Robert E. Hoch
> Evergreen Information Systems, Inc.
>
*******************************************************
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]>