The SessionManager
class provides an easy simplified interface for making audio and video calls in a web page.
While not intended for all use cases, SessionManager
is intended to be suitable for many single page web browser applications.
If requirements are more advanced, working directly with the API which SessionManager
is built on top of provides more flexiblity.
The interface provdied by SessionManager
supports multiple concurrent calls, but otherwise generally mirrors the interface provided by SimpleUser
.
- Start with SimpleUser.
- If
SimpleUser
suffices, then stop. - If
SimpleUser
would suffice if only it handled concurrent calls, thenSessionManager
may be for you. - If
SimpleUser
does not suffice for the single call case and/orSessionManager
does not suffice for the multiple concurrent call case, then you may need to utilize the API direclty.
The SimpleUser
class source code provides a working example of how one might utilize the SessionManager
class.