开发者

Red5. Disable automatic creation of room

开发者 https://www.devze.com 2023-02-25 15:38 出处:网络
开发者_如何学JAVAHow I can disable automatic creation of room in Red5? Thanks, CyrilIt should be as simple as overriding roomStart() in your application adapter class and returning false.

开发者_如何学JAVAHow I can disable automatic creation of room in Red5?

Thanks, Cyril


It should be as simple as overriding roomStart() in your application adapter class and returning false.

@Override
public boolean roomStart(IScope room) {
    return false;
}


Simply by not connecting to a room. By default when you connect a client to a scope other than the application root it will create the room instance. Another thing you can do is remove the scope after it creates it on the server.

0

精彩评论

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

关注公众号