Java-applet of webcam-server doesn't work

Bug #179932 reported by Christoph Langner
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
webcam-server (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: webcam-server

I installed

* webcam-server 0.50-2
* lighttpd 1.4.18-1ubuntu1

When i start webcam-server via

$ webcam-server

i can watch static images of the webcam inside a browser via http://localhost:8888

But webcam can do more that that. You can include some JS code into a webpage a get a video stream. When installing the webcam-server package a demo website is installed inside /usr/share/doc/webcam-server/applet. I copy this folder into /var/www, start webcam-server and try to open http://localhost/webcam/webcam.html inside a browser. But all i see is a picture saying "connecting, please wait".

Revision history for this message
Fabio (koetjeboeh) wrote :

I'm having the same problem in gutsy, static images work, applet does not.
Applet is on same machine as server.

webcam-server 0.50-2
Apache/2.2.4 (Ubuntu)

Regards,
Fabio

Changed in webcam-server:
status: New → Confirmed
Revision history for this message
Carl Karsten (carlfk) wrote :

in both gutsy and hardy:

juser@tsp2:/var/www$ sudo ln -s /usr/share/doc/webcam-server/applet/

<param name=URL value="http://tsp2:8888">

on 2nd box, http://tsp2/applet/webcam.html (don't have a browser on the first)

Connected, and I get a live feed. about 6fps I would say.

definitely not a problem with the java.

Revision history for this message
Fabio (koetjeboeh) wrote :

Partly solved. It seems that the address in the /usr/share/doc/webcam-server/applet/webcam.html is a part of this issue.

In my setup:

<APPLET CODE = "WebCamApplet.class" archive="applet.jar" WIDTH = "320" HEIGHT = "240">
<param name=URL value="http://127.0.0.1:888">
<param name=FPS value="1">
<param name=width value="320">
<param name=height value="240">
</APPLET>

The out-of-the-box setting, does not work.

<APPLET CODE = "WebCamApplet.class" archive="applet.jar" WIDTH = "320" HEIGHT = "240">
<param name=URL value="http://192.168.0.1:888">
<param name=FPS value="1">
<param name=width value="320">
<param name=height value="240">
</APPLET>

Does work if I open the webpage with http://192.168.0.1/webcam.html. The address http://address/webcam.html only works with <param name=URL value="http://address:888"> etc.
Maybe this is a browser security thing? The reason is not yet clear to me.

However, this may not be a problem with respect to webcam-server, it is probably an solution which should be noted.

Revision history for this message
Christoph Langner (chrissss) wrote :

You are right, you've got to change localhost to the serverip...

<APPLET CODE = "WebCamApplet.class" archive="applet.jar" WIDTH = "320" HEIGHT = "240">
<param name=URL value="http://<serverip>:8888">
<param name=FPS value="1">
<param name=width value="320">
<param name=height value="240">
</APPLET>

Revision history for this message
Oibaf (oibaf) wrote :

webcam-server was removed from Ubuntu time ago.

Changed in webcam-server (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.