getSources method

  1. @override
Future<List> getSources()
override

Implementation

@override
Future<List<dynamic>> getSources() async {
  try {
    final response = await WebRTC.invokeMethod(
      'getSources',
      <String, dynamic>{},
    );

    List<dynamic> sources = response['sources'];

    return sources;
  } on PlatformException catch (e) {
    throw 'Unable to getSources: ${e.message}';
  }
}