jwplayer 播放rtmp
现在的情况是这样:
- localhost能播,
- 自己的服务器能播,
- 192.168.3.178(访问的文件就是localhost的)不能播,
报错为:Error loading player:No playable sources found - 公司的服务器不能播,报错为:Error loading player:Unauthorized Domain
以下为部分代码块,前面的4种情况,运行的代码都是一样的,会不会跟服务器的配置有关,如果有关又是哪里有问题
<script type="text/javascript" src="./js/jwplayer.js"></script>
<script type="text/javascript" src="./js/jwplayer.html5.js"></script>
<div id="mediaspace"></div>
<script>
jwplayer('mediaspace').setup({
'flashplayer': './js/jwplayer.flash.swf',
'file': 'rtmp://live.hkstv.hk.lxdns.com/live/hks',
'image': './images/live.jpg',
'controlbar': 'bottom',
'autostart': 'true',
'width': "100%",
'height': "100%"
});
</script>