videoSources property
override
Gets the available video sources.
Implementation
@override
Future<List<VideoSource>> get videoSources async {
final String? result =
await channel.invokeMethod<String>('getVideoSources');
if (result == null) {
return [];
}
final list = jsonDecode(result) as List? ?? [];
return list
.map((e) => VideoSource.fromJson(e as Map<String, dynamic>))
.toList();
}