Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Webcam Viewer app for N800?

    Reply
    Page 1 of 3 | 1   2     3   | Next
    s2k | # 1 | 2009-02-18, 10:09 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    jolouis | # 2 | 2009-02-18, 15:43 | Report

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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    s2k | # 3 | 2009-02-18, 16:41 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    s2k | # 4 | 2009-02-18, 17:27 | Report

    I don't see anything in mplayer to handle it nor do I see any webcam specific apps.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    MattZTexasu | # 5 | 2009-02-18, 20:05 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    s2k | # 6 | 2009-02-18, 20:11 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to s2k For This Useful Post:

     
    MattZTexasu | # 7 | 2009-02-18, 20:34 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    MattZTexasu | # 8 | 2009-02-18, 20:36 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by MattZTexasu; 2009-02-18 at 20:45.

     
    s2k | # 9 | 2009-02-18, 20:45 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    s2k | # 10 | 2009-02-18, 20:54 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 3 | 1   2     3   | Next
vBulletin® Version 3.8.8
Normal Logout