kSourceCandidates top-level constant
Video sources per platform, best first; each ends in hardware-free videotestsrc rather than a dead texture.
Implementation
const Map<TargetPlatform, List<String>> kSourceCandidates =
<TargetPlatform, List<String>>{
TargetPlatform.android: <String>[
'ahcsrc',
'autovideosrc',
'videotestsrc',
],
TargetPlatform.linux: <String>['v4l2src', 'autovideosrc', 'videotestsrc'],
TargetPlatform.macOS: <String>['avfvideosrc', 'videotestsrc'],
TargetPlatform.windows: <String>['ksvideosrc', 'videotestsrc'],
};