getLocalVideoStream function
The local camera, or null when it is off.
Liveness-checked and enabled-aware, so a camera the user turned off does
not leave a black tile behind.
Implementation
MediaStream? getLocalVideoStream(MediaStreamsParameters parameters) {
final camera = parameters.localStreamVideo;
return _hasLiveTrack(camera, 'video') ? camera : null;
}