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
SimpleUsersuffices, then stop. - If
SimpleUserwould suffice if only it handled concurrent calls, thenSessionManagermay be for you. - If
SimpleUserdoes not suffice for the single call case and/orSessionManagerdoes 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.