Results 1 to 1 of 1
Like Tree1Likes
  • 1 Post By ArchonAdvisors
  1.    #1  
    Note that this how-to may be very rough, so I hope in time to clean it up, and also to improve it as I find better solutions.

    The purpose of this how-to is to try and give a fundamental generic approach to accessing live feeds from a variety of IP cameras on your webOS device. In the absence of a dedicated app for your IP camera, the goal is to be able to access live a live feed using only the stock/free software on a webOS device (along with Preware, for some of the setup). These instructions should work on any webOS device.

    This how-to will cover accessing a camera that outputs a stream in h.264 (mp4) format, which can be displayed natively by the stock video player on all webOS devices. If your camera output's video in MJPG format, I will be writing a separate how-to covering how to handle that.

    Overview:
    1. Identify the direct stream URL for your camera model
    2. If necessary, make a simple html file to open in the browser that loads the stream
    3. Copy the html file to your webOS device (or serve it via web server).


    What you should have:
    -your webOS device with Preware installed
    -a copy of VLC player (for testing) VideoLAN - VLC: Official site - Free multimedia solutions for all OS!
    -a computer and micro usb cable, OR [optional] A tiny web server app running on a computer, like Mongoose mongoose - Mongoose - easy to use web server

    Step 1: Find your direct stream URL

    This is probably the most crucial step. Most decent IP cameras on the market will, in addition to specialized apps, software, or web interfaces, also provide a way to directly access the camera's main video feed. This is sometimes called the "direct stream URL", "video stream URL", or something similar. It will usually start with "http://" (not the same as the web interface) or "rtsp://". If it is not provided in your camera's manual, another good resource for finding it is this support page for a product called iSpy that uses the same info as we are: http://www.ispyconnect.com/sources.aspx

    Once you are able to locate a URL for your camera's direct video stream, try it out in VLC player first to make sure you have the right one and that it works. Run VLC and click Media -> Open Network Stream. Enter the URL for your camera (substituting your specific info, like ip address, port, username, and/or password, where appropriate) and click Play. If the live feed from your IP camera shows up, give yourself a nice pat on the back...you're well on your way.


    *If your direct stream URL begins with "http://", try now entering it into your webOS browser. If it loads your IP camera feed, then you're all done. Bookmark and enjoy.

    *If your direct stream URL begins with "rtsp://" or something else, proceed to Step 2 because you can't type it directly into the browser. Instead, you will need to make a small html file that will link to your stream URL when you open that html file in the browser.

    Step 2: Create html file to open on webOS device

    The webOS browser will not load an rtsp:// address if you enter it directly into the address bar, but an easy workaround is to create a small html file that has a link to the rtsp address within it. Think of the html file created here very loosely speaking as your IP camera viewing "web app".

    To make this html file for loading the IP camera stream on your webOS browser, open notepad or another text editor, and paste the following code in, substituting your specific info where appropriate. Save the file as "ipcam.htm". (Note: The code below will actually auto-load a single video stream when the html file is opened. If you want to try adding more streams and have manual control over them, delete the portion that reads <meta http-equiv="REFRESH" content="0;url=rtsp://ip-camera-direct-stream-url"> ).

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>IP Camera</title>
    <meta http-equiv="REFRESH" content="0;url=rtsp://ip-camera-direct-stream-url">
    </HEAD>
    <BODY>

    <a href="rtsp://ip-camera-direct-stream-url">CLICK TO PLAY</a>

    </BODY>
    </HTML>

    Step 3: Loading the stream from your webOS device

    Once you have this html file that loads the stream, you have two choices of how to make it available to your webOS device.

    1. Run a small http server program like Mongoose on your computer, placing the ipcam.htm file whatever folder the web server makes available. The address to now open/bookmark the browser would be "http://ip-address-of-pc/ipcam.htm".

    2. (untested, but should work) Copy the file directly to the USB drive your webOS device. Your webOS device will also need to have the "file-URLs-for-browser" patch installed from Preware, which lets the webOS browser open files stored on the USB drive. The address to now open/bookmark in the webOS browser would be "http://localhost/ipcam.htm".

    Side note: If you're loading this on a TouchPad, you can actually save this browser bookmark as an icon on one of your launcher pages or in the quick launch bar for a more app-like experience.

    What you should see when you load this bookmark/"app" is a browser window pop up, which will almost immediately load the stock media player, which in turn will display your live camera feed.
    Last edited by ArchonAdvisors; 03/26/2013 at 07:43 AM.
    iivanov likes this.

Posting Permissions