I'm hacking together a video viewer for a Titathink TT522PW-PRO using their web server device and the website opens a flash player. I stripped out the viewer web code to my own php page hosted on a RaspberryPi. With an internet connection, it works perfectly. The issue is I need this to work on an offline network and the built in viewer makes a call to macromedia.com for the pluginspage property (code below). Is there something I can copy offline to get this working?
<?php
$cameraIP = "192.168.6.201";
?>
<body style="padding:0;margin:0;">
<div>
<script type="text/javascript" src="http://<?php echo $cameraIP; ?>/flash/jwplayer.js"></script>
<script type="text/javascript" src="http://<?php echo $cameraIP; ?>/flash/jwpsrv.js"></script>
<script type="text/javascript" src="http://<?php echo $cameraIP; ?>/flash/jwpsrv_frq.js"></script>
<object id="myPlayer" align="center" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="swflash.cab#version=7,0,0,0">
<param name="quality" value="high" />
<param name="play" value="true" />
<param name="bgcolor" value="#ffffff" />
<embed style="width:100%;height:100%;" src="rtmp://<?php echo $cameraIP; ?>/live/0/h264_flv?basic=YWRtaW46YWRtaW4=" quality="high" bgcolor="#ffffff"
name="myPlayer" align="center" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash" pluginspage="http://ift.tt/iA2Zkd" />
</object>
<script type="text/javascript">
jwplayer("myPlayer").setup({
file: "rtmp://<?php echo $cameraIP; ?>:80/live/0/h264_flv?basic=YWRtaW46YWRtaW4=",
width: "800",
height: "480",
autostart: true,
});
</script>
</div>
</body>
<?php
$cameraIP = "192.168.6.201";
?>
<body style="padding:0;margin:0;">
<div>
<script type="text/javascript" src="http://<?php echo $cameraIP; ?>/flash/jwplayer.js"></script>
<script type="text/javascript" src="http://<?php echo $cameraIP; ?>/flash/jwpsrv.js"></script>
<script type="text/javascript" src="http://<?php echo $cameraIP; ?>/flash/jwpsrv_frq.js"></script>
<object id="myPlayer" align="center" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="swflash.cab#version=7,0,0,0">
<param name="quality" value="high" />
<param name="play" value="true" />
<param name="bgcolor" value="#ffffff" />
<embed style="width:100%;height:100%;" src="rtmp://<?php echo $cameraIP; ?>/live/0/h264_flv?basic=YWRtaW46YWRtaW4=" quality="high" bgcolor="#ffffff"
name="myPlayer" align="center" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash" pluginspage="http://ift.tt/iA2Zkd" />
</object>
<script type="text/javascript">
jwplayer("myPlayer").setup({
file: "rtmp://<?php echo $cameraIP; ?>:80/live/0/h264_flv?basic=YWRtaW46YWRtaW4=",
width: "800",
height: "480",
autostart: true,
});
</script>
</div>
</body>
Aucun commentaire:
Enregistrer un commentaire