Is there a way to start a new scope (room) in red5 from the application code (normally they are started automatically if a user connects to the path). I tried:
IScope scope = new Scope(roomName);
application.start(scope);//application is my class, extended from ApplicationAdapter
the call to application.start
returns false, which means the scope could not be started (from the javadocs) but I have no idea why.
Later edit: solved - in order to add a new scope, you need to call application.getAppScope().createChildScope(roomName);
(where getAppScope would return the application scope passed into the application in appStart()
)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.