loading
 
Getting RR video to interface with smartphones
spacehermit from United States  [28 posts]
13 year
I can't get my Roborealm video streaming webpages to show video on various smart phones.  I can get commands to my robot from smart phones, but I haven't been able to get video.  Has anyone done it?  The .cgi file or the java applet that Rooealm uses just don't show up.

I'd appreciate your help.  I don't know what formats the various smartphones support.  But I have access to iphones, android, palm pre, and others.

Any ideas?

Thanks.
-spacehermit
Anonymous 13 year
Most likely the smart phones (ironically) do not support Java in the viewing browser. You may try to enter the video stream url in directly into the browser and that may work (does with FF). That would be something like

http://localhost:8080/video.cgi

which streams back JPEG images which some browsers will understand.

An alternative is to download the most recent version 2.30.8 which includes an index_alt.html file in the webroot folder. This html file uses Javascript to quickly query

http://localhost:8080/snapshot.cgi

which returns back a single JPEG image. While not as smooth as the Java counterpart (i.e. the video  movement be a little jerky) it should work in more browsers and at least offer something to see.

Let us know if either of these work ...

STeven.
spacehermit from United States  [28 posts] 13 year
Thanks for working on my issue,

I've installed RR version 2.30.8 but I don't see an index_alt.html file in the webroot folder.  I have lots of other html files of mine in that folder but not index_alt.html.  Any ideas why?

k bye
-spacehermit
Anonymous 13 year
Opps, our error. We forgot to add that file to the installation package. Its in there now but I've also attached the file (zipped) to this post too.

STeven.
index_alt.zip
spacehermit from United States  [28 posts] 13 year
Thanks, I've tested the index_alt.html file.  

Here's what's up.  
The video works fine on the pc but on a smartphone it just shows one image then freezes the video till I refresh the page.  I've tried on a couple smartphones that before wouldn't even see an image.  So it's a start, but now I have to figure out how to get the image to refresh without having to reload the page.  Have you guys gotten a smartphone to see the Roborealm video stream streaming?

Let me know what I can do to help, otherwise just changing the setTimeout('updateInterface()', 75); value in the html doesn't help.

k bye
-spacehermit
Anonymous 13 year
Ok, thanks for the update. Perhaps we can back up a little and find out what smartphone you are using and what browser is it running. From the above I assume that Java and Javascript are not functioning/present in that browser then. Do you have any streaming sites that do work with the phone? Does youtube work?

Thanks,
STeven.
spacehermit from United States  [28 posts] 13 year
The phones I've tried are primarily the Palm Pre, the LG Optimus S, the Blackberry Curve 8310, Apple iPhone 3GS, and the Motorolla Droid 2 Global.

The Palm Pre uses a WebKit web browser.

http://webkit.org/

from the site:
"WebKit is an open source web browser engine. WebKit is also the name of the Mac OS X system framework version of the engine that's used by Safari"

here's the wiki page:
http://en.wikipedia.org/wiki/WebKit

The LG Optimus S runs Android 2.2 and has the Android Web Browser based on the WebKit browser.

The Blackberry Curve 8310 throws an error 400 when it tries to access any page of the RR webserver, but that could be the way the company has the phone locked down.

The Apple iphone 3GS shows an image but needs to be refreshed to get a new one.

The iPad uses Safari and has always seen the RoboRealm video stream.

On the Motorolla Droid 2 Global (not sure what web browser) the page says that it doesn't fully load, but the image changes every minute or so on it's own. (so that's promising)

--- I'll have a chance to test other phones over the holidays

I use the Palm Pre, and haven't used my phone for streaming video other than youtube.  With youtube it automatically opens a youtube ap to watch the video.

thanks,
k
bye
-spacehermit
spacehermit from United States  [28 posts] 13 year
I've tried another Smartphone,

With the iphone 4 using the safari browser

the index_alt.html video works, but is a bit slow compared to the
html code

<img src="/mjpeg.cgi" id="theImage" width="640" height="480">

that runs the video smoothly on the iphone 4.  So that's good.

But the iphone doesn't get video with the
html code

<applet width=320 height=240 codebase="/[authorization]" code="RoboRealm.class">
<param name="timeout" value="0">
<param name="port" value="[port]">
<param name="authorization" value="[authorization]">
</applet>

worst case we wait for smartphones to catch up with the iphone 4's safari web browser.

k
bye
-spacehermit

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index