开发者

Flash Media Server, how to use allowedHTMLdomains.txt on 2nd app

开发者 https://www.devze.com 2022-12-09 13:16 出处:网络
I am configuring our Adobe Flash Media Server 3.5 and need some help. I have carefully followed the documentation on how to duplicate the vod service:

I am configuring our Adobe Flash Media Server 3.5 and need some help.

I have carefully followed the documentation on how to duplicate the vod service: http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773cfae-7ff3.html

I successfully created multiple applications: vod2, vod3, vod4.

Now I would like to use allowedHTMLdomains.txt and allowedSWFdomains.txt to restrict which domains can play video.

I have changed the 2 files:

allowedHTMLdomains.txt contains only this:

purple.mydomain.com

allowedSWFdomains.txt contains only this:

purple.mydomain.com

Then restarted Adobe Flash Media Server.

Next I created a web page on a totally different server, banana.myotherdomain.org and used this embedded code to place a video on the page:

<embed 
 height="377" width="640" 
 allowscriptaccess="always"
 allowfullscreen="true"  
 src="http://purple.mydomain.com/swfs/jwplayer.swf"
 flashvars="&streamer=rtmp:/vod2&file=testfile.flv" 
/>
</embed>
开发者_如何学JAVA

But it doesn't restrict anything.

I can still stream video from domains which are not specified in the allowed files.

What am I missing here?

Thanks,

Jeff


You should probably restrict access to "http://purple.mydomain.com/swfs/jwplayer.swf" on your first server, refusing requests from other domains. My guess is that since the swf is actually hosted on purple, this is the domain that FMS checks.

Check out .htaccess on your server.


Here's the step by step: 1. Make sure you copy over all the files, including main.asc, from the vod directory into your new directory.

  1. Follow all of the instructions here closely to configure the secondary application : http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773cfae-7ff3.html

  2. Start out with allowedHMTLdomains and allowedSWFdomains having only a * this should be accessable to everyone

  3. restart the FMS server using the ./server restart command. This is a test to make sure everyone should be able to view the video from any domain.

  4. Next change only allowedHTMLdomains.txt to a domain which you would like to allow, remove the *

  5. Restart the FMS server using the ./server restart command

  6. Now try to stream the video from a domain other than the one listed in allowedHTMLdomains. It should not play

0

精彩评论

暂无评论...
验证码 换一张
取 消