Jump to content

FLV player security


james_byrne

Recommended Posts

I am using this open-source flv player so that i can play flv files in a web window, But my question is if you look that the code which is below it tells you the name of the flv file that that player is currently playing. I am wondering if there is a way that i can make that secure so that people can not just go and type the name of the flv file in there browser and have it download. Please let me know if you can help me.

 

Thanks in advance for the help.

 

FLV player code:

<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=superman.flv');
s1.write('preview');
</script>

 

 

Link to comment
https://forums.phpfreaks.com/topic/116584-flv-player-security/
Share on other sites

I'll add that you'll probably want to link to an encoded version of the video, or an ID and have the flash item call PHP to check the file name that it will catch.  There is no way to completely avoid video download possibilities but you can make it reasonably hard for them, or at least force the user to install an FLA extractor.

Link to comment
https://forums.phpfreaks.com/topic/116584-flv-player-security/#findComment-599775
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.