Struct opentok::session::Session [−][src]
pub struct Session { /* fields omitted */ }
Implementations
Creates a new OpenTok session.
- api_key: Your OpenTok API key. You can get it from https://tokbox.com/account
- session_id: The identifier of the session.
- callbacks: An instance of SessionCallbacks containing the handlers for events related to the session.
Connects a client to an OpenTok session.
- token - The client token for connecting to the session. Check https://tokbox.com/developer/guides/create-token/
Disconnects the client from this session. All of the client’s subscribers and publishers will also be disconnected from the session.
Starts a publisher streaming to the session.
Stops publishing from a session, causing the publisher stream to stop.
Starts subscribing to an audio/video stream in this session.
Stops subscribing to a specific audio/video stream in this session.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more