Question
How Do I Get Access to a Client's Streams
I'm using the default FLVPlayback server side application to
provide access to existing flash videos on the server. From reading
and using the server admin UI, I can see that each client gets a
stream allocated with a random name assigned by the server to
handle the playback.
What I need to do is modify that server side app so that I can set the onStatus property for the playback stream. The static method Stream.get() would work - but only if I know the name of that client's stream. I can't seem to figure out how to do that from within the server side application.
I've tried using the admin API from the onConnect() or onConnectAccept() routine. I'm able to create a NetConnection to the admin port on the server and invoke the call but the callback object is never invoked. It appears that the admin API requires that it be executing in the context of a client side app to work.
I've looked into the component facade and component objects but can't seem to find anything that provides an example. Searching these forums and general googling hasn't provided an answer either. Can anyone provide insight into how I can obtain access to the Stream object associated with a new client?
thanks in advance,
Chris
What I need to do is modify that server side app so that I can set the onStatus property for the playback stream. The static method Stream.get() would work - but only if I know the name of that client's stream. I can't seem to figure out how to do that from within the server side application.
I've tried using the admin API from the onConnect() or onConnectAccept() routine. I'm able to create a NetConnection to the admin port on the server and invoke the call but the callback object is never invoked. It appears that the admin API requires that it be executing in the context of a client side app to work.
I've looked into the component facade and component objects but can't seem to find anything that provides an example. Searching these forums and general googling hasn't provided an answer either. Can anyone provide insight into how I can obtain access to the Stream object associated with a new client?
thanks in advance,
Chris
