header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
amar
Points:210
Posts:11

12/29/2009 2:56:00 AM

Title: how to secure My online video content


thanx to all,
RTMPE is working, actually i have to secure my video content from web.my video file is stored in FMS server.

and i have to stream it from FMS server so that user can not save this video either using replay software or stream capturing software.

and what is "swfvarification" ?
plz help me out.

thanks in Advance
Amar



1
Redbull
Points: 0
Posts:0
12/29/2009 5:22:06 AM



hi, amar
to secure your video from replay software and stream capturing software you should use both RTMPE and SWF verification feature that are contained in FMS 3 and Flash Player 9.0.115 and above.

RTMPE will encrypt your video stream so that it cannot be decrypted by some stream capturing software and Swf verification will provide safety from replay softwares or decompiled swf files . In swf verification process every time the SWF file is played, Flash Media Server compares the current swf file and the file on the server , if they are different then the server assumes it to be some replaying software or decompiled swf file and hence denies the video stream.

2
Avatar
Points: 0
Posts:0
12/29/2009 5:35:23 AM



To use swf verification do the following :

1) open Application.xml and find the entry <SWFVerification enabled = "false"> enable swf verification by setting its value to true.

2)Now create instance folders inside SWFs folder in application root directory.Copy the swf files that need verification inside the instance folders . By default FMS will search files inside instance folder inside default folder SWFs.
This is the structure to place swf files :

Your Application Directory --> SWFs Folder --> Your Instance Folder --> SWF FIles to verify

3) Restart FMS server , The swf verification that was enabled in application.xml file will not be enabled until you restart the fms server .

3
Michel
Points: 0
Posts:0
12/29/2009 5:53:29 AM



You can use your own custom verification process to make sure the video file is being played from your own file .

To do this you can write a function on client side that will authenticate itself on connection to fms server .If the authentication succeeds the connection will stay otherwise it will fail .

Process can be like this -
- make connection
- Then server will call a function and send a unique key to client(main.asc).
- The client will call call a server on server sending that unique key back to server side (MAIN.ASC).
- Server verifies the key.
- Otherwise server will close connection after some timeout period if the unique key is not recieved.

4
amar
Points: 210
Posts:11
12/30/2009 3:16:03 AM



thanks for Reply.

i gone through same process as mention above. there is SWFs folder in fms and on that folder we uploaded a copy of swf(what we are using in http).
but it is not working.

regards
Amar

5
amar
Points: 210
Posts:11
12/30/2009 3:18:24 AM



thanks Michel,
can u plz send me some sample code(main.asc) to authenticate itself on connection to fms server.


thanks in advance.
Amar

6
Avatar
Points: 0
Posts:0
12/30/2009 3:45:05 AM



It should work check the following :-
Suppose your connection to connect is
nc.connect("rtmpe://yourfmshosting.com/myApplication/");

It wont work if you copy it to swfs folder inside fms . Just make sure
it placed in "applications/myApplication/SWFs folder"

-here applications is default fms directory where we create our application folders
- myApplication is your application directory that you use to connect to fms
- swfs folder should be inside your myApplication directory

and if you are using some instance to connect like this

nc.connect("rtmpe://yourfmshosting.com/myApplication/someInstance");

then your swf files should be inside

applications/myApplication/SWFs/someInstance

7
Rex
Points: 0
Posts:0
12/30/2009 6:00:20 AM



to verify if the request is from your page/ swf or from some replaying software you can simply write this code to verify the url and swf file path which is requesting the video .Do this in the main.asc

//the url at which your swf is embeded and your swf file resides 
var my_REFERRER = "http://abc.com/yourSWFFile.swf";
 var my_PAGEURL = "http://abc.com/yourHtmlFile.html"; 

application.onConnect = function(pageClient) { 
//check the calling urls 

if (pageClient.referrer == my_REFERRER && pageClient.pageUrl == my_PAGEURL) { 
 this.acceptConnection(pageClient);
} else { 
 this.rejectConnection(pageClient) 
}
 
}

8
amar
Points: 210
Posts:11
12/30/2009 8:16:01 AM



thnx Rex,

What is the main difference between swfverification and this given code ?


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+11+5 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions