From: Larry Bouthillier <[EMAIL PROTECTED]>
Subject: Re: SMIL and JavaScript???
I think you can skip steps 3 thru 5 by simply making your URL from step 2 of
the
form "javascript:myfunc()". This will trigger the called function in the
currently loaded browser page without any special callback handlers in the
page.
Larry
RealForum wrote:
> From: Nicholas Hart <[EMAIL PROTECTED]>
> Subject: Re: SMIL and JavaScript???
>
> Yes, this is possible, but it requires a little bit of html/javascript (and
> possibly java) authoring on your part.
>
> There are several steps.
>
> 1. You need to put URL events in your presentation. See the RealProducer's
> documentation on rmevents for information on how to do this with a
> RealMedia file.
>
> 2. Make the URL events in your presentation be any arbitrary string or
> javascript function call you want. (ie. instead of "http://mysite.com" use
> "myfunc()" or "slide1")
>
> 3. In the embed/object tag for your embedded RealPlayer make sure you use
> the parameter AutoGotoURL and specify FALSE. This will prevent the
> embedded ActiveX control or Netscape plugin from sending URL events to the
> browser and will instead send them to a javascript/VBScript callback.
>
> 4. Add support for the OnAutoGotoURL callback in your HTML. This is easy
> on IE, more difficult on Netscape and will require some Java. See the
> embedded RealPlayer extended functionality guide for more info on how to
> accomplish this.
http://service.real.com/help/library/guides/extend/embed.htm
>
> 5. In your OnAutoGotoURL callback handler, do whatever you like with the
> URL string passed in. This is where you will receive your "myfunc()" or
> "slide1" strings (using the earlier example.) Using javascript you can
> then do any arbitrary action you like and use the string passed in as a cue.
>
> A caveat: I haven't personally done this exact thing to make a presentation
> cause the browser to execute some javascript, but I am certain it is
> possible. I do know that by providing your own support for the AutoGotoURL
> feature in javascript you should be able to handle URL events pretty much
> any way you like.
>
> At 05:30 PM 8/5/99 -0400, you wrote:
> >
> >Thanks for the great insight. Let me ask about the SMIL time line. Is is
> >possible
> >to trigger javascript functions at certain points during a presentation?
> >This is exactly
> >where I am stuck. All I am trying to do is set a powerpoint image in a
> window
> >and have the real video clip change the pix as the file is played.
> >
> >I am also trying to add a form drop down to select different starting
> >points in the
> >real video file. What is the best javascript function for this? (I am
> >reading all the docs
> >but on a real tight deadline. I appreciate all your help everyone!)...
--
Larry Bouthillier -- [EMAIL PROTECTED]
Head of Multimedia Production
Harvard Business School
(617)495-6393