Class: RtcSessionController<T, Track> ​
Defined in: rtcSession.ts:13
One owner for connection, publication and teardown; obsolete work never publishes.
Type Parameters ​
| Type Parameter |
|---|
T |
Track extends object |
Constructors ​
Constructor ​
ts
new RtcSessionController<T, Track>(onSession, onError): RtcSessionController<T, Track>;Defined in: rtcSession.ts:18
Parameters ​
| Parameter | Type |
|---|---|
onSession | (session) => void |
onError | (error) => void |
Returns ​
RtcSessionController<T, Track>
Methods ​
start() ​
ts
start(create): Promise<void>;Defined in: rtcSession.ts:43
Parameters ​
| Parameter | Type |
|---|---|
create | () => RtcSession<T, Track> |
Returns ​
Promise<void>
stop() ​
ts
stop(): void;Defined in: rtcSession.ts:23
Returns ​
void