From: "Hussain Munawar" <[EMAIL PROTECTED]>
Subject: SetSource() to a SMIL file anchor


Hello

I want to use the SetSource() method and set the source of an embedded
player to a RealVideo clip which is an anchor inside a SMIL file. I can get
it to work in IE with an ActiveX control, but not in Navigator. Why is this?
My source is:

if (ns)
{
        document.embeds[0].DoStop();
        document.embeds[0].SetSource('my_demo.smil#video1');
        document.embeds[0].DoPlay();
}
else
{
        // this code works fine in IE as an ActiveX control
        document.all.Real_Player_Name.DoStop();
        document.all.Real_Player_Name.SetSource('my_demo.smil#video1');
        document.all.Real_Player_Name.DoPlay();
}

if i execute a JavaScript alert() on the value of the source in Navigator
after setting it with SetSource(), it returns an empty string???

thanks in advance

muni


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