From: Nicholas Hart <[EMAIL PROTECTED]>
Subject: Re: Realplayer and Java with liveconnect
In your Start() method, get the plugin object and call G2Advise. If you do
this in Init() then it only happens once, and when you refresh the page,
Netscape destroys the plugin and your applet loses its connection. Since
Netscape calls Stop() and Start() on your applet when the page is
refreshed, it can reconnect in Start().
At 12:08 PM 1/7/00 -0800, you wrote:
>From: "Arts Video R&D" <[EMAIL PROTECTED]>
>Subject: Realplayer and Java with liveconnect
>
>Hello,
>
>I am trying to access RealPlayer, embedded in my HTML, from an applet, =
>using LiveConnect and Netscape 4.5.
>
>The first time it works. But when I refresh the HTML page, it doesn't =
>work anymore. I have a nullpointerexception error caused by the =
>getMember function in the code bellow :
>
> // Java code
> win =3D JSObject.getWindow(this);
> doc =3D (JSObject) win.getMember("document");
>
> ra =3D (RAPlayer)doc.getMember("MyVideo"); // ERROR
> // End of java code
>
>
>Anyone has an idea about this problem ?
>
>Thanks a lot,
>
>Florent NOEL
>
>
*******************************************************
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]>