Red5 actionscript

How to get encode parameter in url? for example, if we have an html file containing: how to get the value of a from the application.java class?

thanks

0


a source to share


2 answers


Since Red5 is based on RTMP, there is no HTTP request to get parameters. Instead, you need to send the parameter from the swf client to Red5 over RTMP. Depending on what kind of data you are passing, you can either send that data as a connection parameter to the NetConnection, or you can define a method on the Application class that the client will call on the NetConnection.



0


a source


I may be wrong, but are you trying to access the parameter being sent to the RTMP-uri? For example "auth_token" in this url: rtmp: // localhost / myapp / foo? X = 0 & auth_token = aavsgwqh If yes, then look at the tcUrl property of your connection parameters.



0


a source







All Articles