startCamera method
Turn on your local camera
Note: startVirtualCamera, startCamera, startScreenCapture, only one of them can be uplink under the same Pusher instance, and the three are overlay relationships. For example, startCamera is called first, and then startVirtualCamera is called. In this case, the camera is paused and the image stream is started
Parameter:
frontCamera Specifies whether the camera orientation is front-facing
- true Default: Switch to the front-facing camera
- false: Switch to the rear camera
Return:
'0' success, more information please see V2TXLiveCode
Implementation
Future<V2TXLiveCode> startCamera(bool frontCamera) async {
var result = await _channel.invokeMethod(
'startCamera', {"frontCamera": frontCamera});
return _liveCodeWithResult(result);
}