WebRTCStreamController constructor
WebRTCStreamController( - SignallingClient _client, {
- required int reconnectionTimeoutMs,
- String? producerId,
- Duration keepAlive = const Duration(seconds: 30),
- Duration retryAfter = const Duration(seconds: 3),
})
Implementation
WebRTCStreamController(
this._client, {
required this.reconnectionTimeoutMs,
this.producerId,
this.keepAlive = const Duration(seconds: 30),
this.retryAfter = const Duration(seconds: 3),
}) {
_client.listen(
connected: _onConnected,
disconnected: _onDisconnected,
producerAdded: (_) => _ensureSession(),
producerRemoved: _onProducerRemoved,
);
}