I have to play live streaming, which uses RTMP protocol and I want to hide my actual IP with a subdomain of my website.
I have an IP i.e 46.x.x.x and when i use code give below, It works:
<object width="550" height="400" data="http://www.hdwebplayer.com/standalone-demo/components/com_webplayer/player.swf" type="application/x-shockwave-flash">
<param value="http://www.hdwebplayer.com/standalone-demo/components/com_webplayer/player.swf" name="movie">
<param value="opaque" name="wmode"><param name="allowfullscreen" value="true" />
<param value="&stretch=uniform&type=rtmp&streamer=rtmp://46.x.x.x/live&video=mychannel&duration=9999&autoStart=true" name="flashvars">
<param value="always" name="allowscriptaccess">
</object>
but when I try to access it using subdomain e.g. test.mysite.com at place of ip address, it does not works.
Code i Tried is:
<object width="550" height="400" data="http://www.hdwebplayer.com/standalone-demo/components/com_webplayer/player.swf" type="application/x-shockwave-flash">
<param value="http://www.hdwebplayer.com/standalone-demo/components/com_webplayer/player.swf" name="movie">
<param value="opaque" name="wmode"><param name="allowfullscreen" value="true" />
<param value="&stretch=uniform&type=rtmp&streamer=rtmp://test.mysite.com/live&video=<?php echo $ch; ?>&duration=9999&autoStart=true" name="flashvars">
<param value="always" name="allowscriptaccess">
</object>
I know that I have to change some apache configurations some where. But I dont know what code has to be written and in wich file (This aricle suggested, this does not work in .htaccess)
So can anybody help me...