loading
 
RR Webserver and Android
UlliS from Germany  [42 posts]
11 year
Hello Steven,

the video stream running at the RoboRealm webserver via a java plugin. Unfortunately, the web browser (including Firefox) on the android phone can not open the webcam stream because that java plugin is missing. would it be possible to update the webserver here. altenative would be a possibility jpg or png images retrieve if the web server detects a mobile phone.

Best regards,

Ulli
Steven Gentner from United States  [1446 posts] 11 year
Ulli,

One thing you can try is to avoid using Java for FF or Chrome which support MJpeg streams natively (at least on the desktop they do). So try replacing the Applet HTML code in index.html (located in the webserver folder where RR is installed) with the following

<script language="javascript">
if (navigator.javaEnabled()&&(navigator.userAgent.indexOf('MSIE')>0))
{
    document.writeln("<applet width=320 height=240 codebase='/[authorization]' code='RoboRealm.class'>");
    document.writeln("<param name=timeout value='0'>");
    document.writeln("<param name=port value='[port]'>");
    document.writeln("<param name=authorization value='[authorization]'>");
    document.writeln("</applet>");
}
else
{
    document.writeln("<img src=/whatever.mjpg width=320 height=240>");
}
</script>

This will serve a mjpg stream to anything but IE. Perhaps that helps?

(Warning ... some of the above code may not escape correctly in the forum so you might need to fix a char or two)

STeven.

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