开发者

red5: how can i get current IConnection?

开发者 https://www.devze.com 2022-12-15 19:47 出处:网络
under the function appConnect() i added several attributes to the IConnection class 开发者_C百科of the current connected user.

under the function appConnect() i added several attributes to the IConnection class 开发者_C百科of the current connected user.

i want to fetch that information in other functions, how do i get the IConnection of the current connection while i'm not in appConnect() ?


in each function the following command will provide the IConnection of the current connection:

IConnection conn = Red5.getConnectionLocal();


In your ApplicationAdapter you can also add the connection as the first parameter like so:

public boolean isFoo(String foo)

becomes

public boolean isFoo(IConnection conn, String foo)
0

精彩评论

暂无评论...
验证码 换一张
取 消