• December 13, 2019, 08:29:57 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: stream video on Android device  (Read 1125 times)

2k05gt

  • Level 1 Member
  • *
  • Posts: 6
stream video on Android device
« on: June 27, 2014, 06:52:40 PM »

Is there a way to get the camera web software to display live video
I try to select hava and activex but I dont see any image.  I can only see still shots.

I cant get the apps to work si ce I could not add my device to mydlink.com account.
Logged

nullit

  • Level 2 Member
  • **
  • Posts: 64
Re: stream video on Android device
« Reply #1 on: June 29, 2014, 07:42:38 PM »

In the following html, change URL:port# to whatever web address and cam port number you use, save to your server with some name (fx. myowncam.htm), the call it from your Android browser. Provides virtually live video.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=us-ascii">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">
</head>
<body> 
<script type="text/javascript">
<!--
var refreshrate=0.5;  //SECONDS BETWEEN REFRESH
var image="http://URL:port#/image/jpeg.cgi";  //IMAGE NAME
var imgheight=480;  //IMAGE HEIGHT
var imgwidth=640;   //IMAGE WIDTH
function refresh(){
document.images["pic"].src=image+"?"+new Date();
setTimeout('refresh()', refreshrate*1000);}
document.write('<IMG SRC="'+image+'" ALT="" NAME="pic" ID="pic" WIDTH="'+imgwidth+'" HEIGHT="'+imgheight+'"  STYLE="border: 1px solid Black;">');
if(document.images)window.onload=refresh;
// -->
</script>
</body>
</html>
Logged