Authentication with FLVPlayback
I'm beginner with FMS and AS3, so my question may appear stupid !
My application is based on vod. I don't want all people can access my videos. I try to developp an application where client must provided login/password to access these videos.
I have successed to send login/pw by put these code on swf client:
nc=new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler);
nc.connect("rtmp://address/vod/sample.flv","login","password");
In my server application, I've put these lines:
application.onConnect = function( p_client, p_User, p_Password ){
if((p_User != "login") || (p_Password!="password")){
trace("Authentication failed.");
return false;
}
this.acceptConnection(p_client);
}
When I look at Admin console, I see it works.
What I want to do now, is put a FLVplayback control in my client file to see the video based on these connection: here I'm lost. How can I pass my nc connection object to my FLVplayback control ? I hope my explanation wasn't confused.
Thanks in any help,
N. Bauland
