createLocalMediaStream method

  1. @override
Future<MediaStream> createLocalMediaStream(
  1. String label
)
override

Implementation

@override
Future<MediaStream> createLocalMediaStream(String label) async {
  final response = await WebRTC.invokeMethod('createLocalMediaStream');
  if (response == null) {
    throw Exception('createLocalMediaStream return null, something wrong');
  }
  return MediaStreamNative(response['streamId'], label);
}