From: Michael Litzkow <[EMAIL PROTECTED]>
Subject: Netscape Plug-in callbacks

I've been trying to figure out how to get callbacks from G2 using the G2 SDK
(g2_kit.zip).  I can't get the example code to compile, and I wonder if
anybody can provide a working example which uses callbacks with the Plug-in?

The example packaged in the kit appears to have several problems as far as I
can see.

1. When I unzipped it, almost every line in "callback.java"
had been broken in the middle of a String, causing all kinds of syntax
errors.  (I tried unzipping with 2 different zip utilities, but got the
same result.)  I went ahead and glued all the lines back together and
got rid of the syntax errors.

2. There seems to be some version mismatch
between the provided "callback.java" and "RMObserver.class" files.  The
provided interface contains a method definition
        boolean RMObserver.OnPlayStateChange(int,int);
but the provided applet implments
        boolean OnPlayStateChange(long);
There were several such method signature mismatches.

3. The comments in "callback.java" say I will need "moz3_0.zip" in my
class file (do they mean classpath?).  I have Netscape Communicator 4.61
on my system, but I cannot find any "moz3_0.zip" file.  Are they calling
out something from Netscape version 3?  Is there an equivalent for version
4 which would make the callback example work?

4. I generally use J++ for java stuff, but since they mentioned Javac
in the comments in "callback.java" I decided to download the JDK from sun
and give that a try too.  Still all the above problems, and a new one.  The
javac compiler says that the provided .class files have bad magic numbers.
Again, I tried different zip utilities, but still have the same problem.

Help!!!!!!!!!!

-- mike



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