Hi,
On 8/13/06, Sascha <[EMAIL PROTECTED]> wrote:
> he wants that only HIS client.swf is able to
> connect to rtmp:/HISapp and no one elses swf..
that is right: I'm programming a small multi-player card game,
integrated with phpBB-forum. When a user logins to the
php-webpage, I do:
select user_id, username, user_password from phpbb_users
and use the numeric user_id from above to publish a live-stream
from the webcam of that user. The other 2 players sitting at the
same playing table should be able to ns.play() that video.
What I don't want is some web-terrorist to put a Flash
movie on his webpage which would contain the statements
ns.play(1);
ns.play(2);
....
ns.play(100);
refering to my server and thus kill all the bandwidth of my server.
So I hope to call the same nc.connect("rtmp://my_server/myapp",
username, user_password) and from the Red5-side
(in ApplicationAdapter#appConnect() ? or should I use connect()?)
I'm going to call the same SQL-statement as above and
if the username and password don't match, then I'll call
ApplicationAdapter.html#rejectClient(), is it correct?
> a secure way(if the swf should be used as webpage) would be to gain only
> acces from this domain/ip.
http://dl.fancycode.com/red5/api/org/red5/server/api/IConnection.html#getRemoteAddress()
> may this here will help u.
Hmm, probably this does not help me here.
Thank you for any comments!
Alex
--
http://preferans.de
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org