From: [EMAIL PROTECTED] (Damon Betlow)
Subject: SetPosition when not playing?

Can someone please tell me a way to seek inside an embedded smil file.

This is what I'm trying (works most of time):

Function SeekTo ( ) {
if (window.document.vid.CanPlay())
     {
        window.document.vid.DoPlay();  // start the player
        var temp = 0;

        do
        {
        temp += 1;
        } while (temp != 10000);

        window.document.vid.SetPosition(window.document.form1.video.value *
1000);
        }
        else {

window.document.vid.SetPosition(window.document.form1.video.value * 1000);
        }

        return true;
}
}

The problem is when you tell it to seek right after telling it to play, it
ignores you.

If it is already playing it works fine.  I tried someone else's suggestion
about looping while GetPlayState != 3, but that didn't work either.

Please help.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damon E. Betlow
Rochester Institute of Technology


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