From: Steve McMillen <[EMAIL PROTECTED]>
Subject: Re: Javascript SetPosition() hangs on buffering
I am sorry, I left out some important details in my post.
The behavior you are reporting is expected. Since you are calling SetPosition
right when the stream connects, PREFETCH is still working and once done it's
normal behavior is to put the player in pause mode.
What you need to do is to use a callback from the RealPlayer in order to be
notified that PREFETCH is done. Then you can call SetPosition(ms) and
DoPlay() from the callback. The way this works is that you tell the player
you would like to be notified of some event, in this case OnPreFetchComplete()
is the method you should look for.
There is a sample page I have up that demonstrates using the callbacks in the
RealPlayer as these can be a bit complicated (though a very cool feature),
especially in Netscape. The code should be documented well enough at
http://demos.real.com/tools/clipinfo.htm tough it is not intended to be
official doc on this topic (for that you should turn to the Embedded Player
Extended Functionality Guide at
http://service.real.com/help/library/encoders.html
cheers!
[EMAIL PROTECTED]
RealForum wrote:
>
> From: [EMAIL PROTECTED]
> Subject: RE: Javascript SetPosition() hangs on buffering
>
> I just got through with this issue and here's what I found for the ActiveX
> control.
>
> If prefetch=true and you use SetPosition() when the user hits a button, the
> stream will jump to that point and pause. Then the user has to push play
> again.There seems to be no way to programmatically start the stream.
>
> If prefetch=false then DoPlay and SetPosition work fine, confirming the
> suspicion about PREFETCH, except that it works opposite what is stated below
> in this case.
>
> Doug
> -----Original Message-----
> From: RealForum [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 20, 2000 12:45 PM
> Subject: Re: Javascript SetPosition() hangs on buffering
>
> From: Steve McMillen <[EMAIL PROTECTED]>
> Subject: Re: Javascript SetPosition() hangs on buffering
>
> Try preloading the page with PREFETCH=TRUE in the EMBED/OBJECT tag to see if
> that allows you to call SetPosition w/out having to start the stream first
> with DoPlay. The reason I think this will work is set position establishes
> the connection to the server immediately upon plugin load and also
> prefetches
> information about the stream. It is essentially like hitting play and then
> pausing the stream right before it begins.
>
> [EMAIL PROTECTED]
*******************************************************
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]>