getStream method
Return a stream of MediaStream, which can be used to display WebRTC video.
Implementation
Stream<MediaStream?> getStream() {
if (_internalListener.isPaused) {
_internalListener.resume();
}
Future.microtask(() {
if (_stream != null) {
_streamController.add(_stream!);
} else {
_open(name);
}
});
return _streamController.stream;
}