Session

Create a session object that can be shared between plugin handles

Session Class

class janus_client.JanusSession(base_url: str = '', api_secret: Optional[str] = None, token: Optional[str] = None, transport: Optional[JanusTransport] = None)

Janus session instance

async attach_plugin(plugin: JanusPlugin) → int

Create plugin handle for the given plugin type

Parameters:

plugin – Plugin instance with janus_client.JanusPlugin as base class

async create() → None

Initialize resources

async destroy() → None

Release resources

Should be called when you don’t need the session anymore.
Plugins from this session should be destroyed before this.