我怎样才能在网络上传输像Axis这样的ip camera相机?

时间:2015-10-02 15:10:24

标签: html streaming ip-camera

我如何使用像网络上的Axis这样的ip camera来传输音频? 这个使用相机和相机之间的直接连接;客户端但限制为20个连接,使用太多带宽,仅适用于IE

<form name="test">
  <input id="ip" type="input" size="10" value="192.168.X.X">
  <input type="button" name="Play" value="Play" onClick="OnPlay(); return false;">
</form>
<object id="Player" height="480" width="640" border="1" classid="CLSID:745395C8-D0E1-4227-8586-624CA9A10A8D">
  AXIS Media Control (SDK) for Internet Explorer is not installed or failed to initialize.
  <param name="AutoStart" value="0">
  <param name="UIMode" value="none">
  <param name="MediaType" value="h264">
  <param name="VideoRenderer" value="65536"> <!-- Use Enhanced Video Renderer for best performance -->
  <param name="NetworkTimeout" value="5000"><!-- use this param if you want to change the network timeout -->
  <param name="MediaUsername" value=""><!-- this param only necessary if restricted access is enabled -->
  <param name="MediaPassword" value=""><!-- this param only necessary if restricted access is enabled -->
  <param name="MediaURL" value="axrtpu://myServer/axis-media/media.amp?videocodec=h264"><!-- your media url goes here -->
</object>

<script language="JavaScript">
    document.Player.EnableContextMenu = true;
    document.Player.StretchToFit = true;
    document.Player.MaintainAspectRatio = true;
function OnPlay()
{
  try
  {
    var server = document.getElementById('ip').value;
    // return values from AMC methods are handled as exceptions in JavaScript
    document.Player.Stop();
    document.Player.MediaURL = "axrtsphttp://" + server + "/axis-media/media.amp?videocodec=h264";
    document.Player.Play();
  }
  catch(e){}
}
</script>

<script language="JavaScript" for="Player" event="OnError(theError, theMsg)"> alert(theError + ' ' + theMsg); </script>

我想从服务器只使用一个连接(一个流程),任何人都可以访问该网站

0 个答案:

没有答案