addStream method

  1. @override
Future<void> addStream(
  1. MediaStream stream
)
override

Implementation

@override
Future<void> addStream(MediaStream stream) {
  var _native = stream as MediaStreamWeb;
  _localStreams.putIfAbsent(
      stream.id, () => MediaStreamWeb(_native.jsStream, _peerConnectionId));
  _jsPc.addStream(_native.jsStream);
  return Future.value();
}