PDA

View Full Version : [AS3] Hiding the RTMP URL of the video stream on a .as file


ashlykwan07
02-10-2010, 03:12 AM
Hi,
i am broadcasting throght FMS (flash media server)
i want to put my RTMP URL in actionscript file and then include it on SWF file. no URL in the SWF file so it can play the video independantly unless the .ac file is in the same folder.

So even if some one steal my swf and put it on there website
Since
SWF file include "randomname.as"
"Random name they dont know or cant guess". the video will not play on their URL.

Does anybody knows how to do this.

Thank you.

Alternative options ate greatly appreciated, like hiding it on a.XML

judgedice
02-10-2010, 03:38 AM
Try making a 'proxy' server side script that will provide the url's you need. Perhaps a php script that checks for the HTTP refferer before returning valid url strings. ( the PHP could return an xml file as well )

If you're unfamiliar with how the PHP script might look, check out this page: http://php.net/manual/en/reserved.variables.server.php

bowljoman
02-10-2010, 02:49 PM
People do not look for rtmp url in swf files.

People find them using wireshark.

sparkdemon
02-24-2010, 04:29 AM
Let them see rtmp url. Thats not a issue. Implement stream security at server end so that only permitted domains are served. also disable stream publish and shared object access.