Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axis camera with old applet firmware #36

Open
dummyax opened this issue Jul 30, 2019 · 7 comments
Open

Axis camera with old applet firmware #36

dummyax opened this issue Jul 30, 2019 · 7 comments

Comments

@dummyax
Copy link

dummyax commented Jul 30, 2019

Hi, tried to use this with an older Axis camera with a java applet to set motion detection but it only says: "Your browser does not support java". Tried the rubics cube and it works so it is correctly installed. Any help is greatly appreciated as I need the camera to work. Thanks

@alexp-sssup
Copy link
Member

Do you have a way to share this applet (the URL or an archive) with us? We can take a look, but you should be aware that CheerpJ Applet Runner is limited by what the browser can do, so if this applet requires some form of hardware access it is likely that it cannot be supported.

We are interested in taking a look at the applet in either case.

@dummyax
Copy link
Author

dummyax commented Jul 30, 2019

Thank you for the quick reply, sadly I cannot share it but all axis cameras with firmware below 6.5 have this java applet. Is there a way to extract the applet?

@alexp-sssup
Copy link
Member

alexp-sssup commented Jul 30, 2019

Well, if you can visit the applet page with a browser you can copy over the HTML code and the JAR or class files which compose the applet. I am not able to provide you with a step-by-step procedure since that depends on the specific page.

@nh2
Copy link

nh2 commented Oct 31, 2024

Hi, I also hav an Axis camera, here is the JAR (renamed to .zip so that GitHub allows uploading it):

ama.zip

@alexp-sssup
Copy link
Member

Thanks for the jar, can you also share a dump of the HTML that uses this applet?

@nh2
Copy link

nh2 commented Oct 31, 2024

Looks like this:

image

The <applet> tag:

<applet name="AMA" codebase="/java/ama" archive="ama.jar" code="ama.MediaApplet" codetype="application/x-java-applet;version=1.4" type="application/x-java-applet;version=1.4" width="886" height="460" id="AMAPlayer">
  <param name="permissions" value="sandbox">
  <param name="name" value="AMA">
  <param name="codebase" value="/java/ama">
  <param name="archive" value="ama.jar">
  <param name="code" value="ama.MediaApplet">
  <param name="codetype" value="application/x-java-applet;version=1.4">
  <param name="type" value="application/x-java-applet;version=1.4">
  <param name="mayscript" value="false">
  <param name="ama_cgi-path" value="axis-cgi">
  <param name="cache_archive" value="ama.jar, md.jar">
  <param name="cache_version" value="1.2.0.0, 1.2.0.0">
  <param name="ama_plugins" value="md.MotionDetection,">
  <param name="ama_url" value="/axis-cgi/mjpg/video.cgi?camera=1&amp;rotation=0&amp;mirror=no&amp;resolution=640x400&amp;overview=1&amp;text=no&amp;clock=no&amp;date=no&amp;overlayimage=0">
  Your browser does not support Java
</applet>

Here is the dump of the page; it uses a <frameset> (classy!), so I dumped outer HTML of the outer page and the frame separately (the 2nd frame in the frameset is empty so I skipped that):

Let me know if that's useful!

Thank you for making this type of legacy stuff work, much appreciated!

@alexp-sssup
Copy link
Member

After a quick test I can see that the applet also needs another file /java/ama/md.jar, can you share that too?

Can you also clarify what version of CheerpJ Applet Runner are you using. We just released a massive update with version 2024.10 and it might be the case this will just work.

In case it does not, can you please share what you see on the screen and the browser console after enabling the extension for this page?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants