Active Topics

 


Reply
Thread Tools
Posts: 56 | Thanked: 4 times | Joined on Dec 2007
#1
Does anyone know of a webcam viewer app that would allow me to view a IP based webcam in fullscreen on the N800? The webcam provides a jpeg stream of images and I'd liek to be able to view it on the N800 instead of the desktop for a portable viewer if possible.
 
Posts: 631 | Thanked: 837 times | Joined on May 2007 @ Milton, Ontario, Canada
#2
The webcam doesn't provide a web interface to let you view it? Do some searching around, I believe I've seen others in the past talk about using MPlayer to do this, but can't be 100% certain now...
 
Posts: 56 | Thanked: 4 times | Joined on Dec 2007
#3
The webcam has an interface but it is ActiveX or Java based to handle the refreshing and related, which the N800 cannot do unless I've mised something.

Was looking for an app that could handle it directly to do the refreshing of the images.
 
Posts: 56 | Thanked: 4 times | Joined on Dec 2007
#4
I don't see anything in mplayer to handle it nor do I see any webcam specific apps.
 
Posts: 105 | Thanked: 48 times | Joined on Aug 2008
#5
I had an interest in this too. I found a random mjpg webcam stream http://77.46.140.219/axis-cgi/mjpg/v...=1234987014475

I know that firefox has native support for it, and it works on the desktop. but the stream doesn't exactly work well on the NIT. and neither mplayer nor any other player on the NIT i tried would play it.
 
Posts: 56 | Thanked: 4 times | Joined on Dec 2007
#6
I setup a simple JS function that causes a page refresh that shows the image every second. It works fne on PC. On NIT it runs for a a few seconds then stops as if the browser times outthe script, click the screen and it reactivates.

Anyone know how to prevent thsi from hapening, ie so it doesn't stop the JS refresh?
 

The Following User Says Thank You to s2k For This Useful Post:
Posts: 105 | Thanked: 48 times | Joined on Aug 2008
#7
Actually, I was making a mistake. It works find in the browser on the NIT, you just have to embed the image in an html file. No JS necessary.

Save this in a file called webcam.htm
Code:
<html>
<body style="margin:0;padding0;background-color=black;">
<img src="PUT_URL_TO_YOUR_MJPEG_STREAM_HERE" height="480" />
</body>
</html>
the height="480" part will force the image to fill the whole height of the browser page. if it looks funny, you can adjust it or add a width="xx" attribute (replace the "xx" with proportional value to the height).
Make the browser full screen and you got what you want.
 
Posts: 105 | Thanked: 48 times | Joined on Aug 2008
#8
Originally Posted by s2k View Post
I setup a simple JS function that causes a page refresh that shows the image every second. It works fne on PC. On NIT it runs for a a few seconds then stops as if the browser times outthe script, click the screen and it reactivates.

Anyone know how to prevent thsi from hapening, ie so it doesn't stop the JS refresh?
instead of refreshing the page, only refresh the image element. Here's how:
Code:
<html>
<head>
    <title>Untitled Page</title>
    <script type="text/javascript">
        function grabImage() {
            var imgFrm = document.getElementById('imageframe');
            var img = document.createElement("img");
            img.setAttribute('src', 'http://77.46.140.219/axis-cgi/mjpg/video.cgi?resolution=CIF&dummy=1234987014475');
            imgFrm.removeChild(imgFrm.firstChild);
            imgFrm.appendChild(img);
            setTimeout(grabImage, 10000);
        }
    </script>
</head>
<body onload="grabImage();">

<div id="imageframe"><img /></div>

</body>
</html>
NOTE: if you have to refresh the image, it's not really a mjpeg stream. It's just an image that get's updated at an interval. an mjpg stream should update itself without any JS in firefox on the Desktop or on the NIT's browser.

Last edited by MattZTexasu; 2009-02-18 at 20:45.
 
Posts: 56 | Thanked: 4 times | Joined on Dec 2007
#9
http://www.ajaxcam.com is what i'm using.

it "seems" to run fine if I don't go fullscreen mode. Could something else be taking focus in the background and stopping the script perhaps?
 
Posts: 56 | Thanked: 4 times | Joined on Dec 2007
#10
It seems it may have been the mail notifications taking focus from the browser in fullscreen mode. Turned it and chat off and it "seems" to now be working. Still testign though. The posted script above I couldn't get to work at all even locally, it never refreshed it seemed.
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:32.