enableCustomVideoCapture method
Turn on/off custom video capture
Note:
- In this mode, the SDK no longer captures images from the camera, only retaining the encoding and sending capabilities.
- It needs to be called before startPush for it to take effect.
Parameter:
enable
true: enables custom collection. false: disables custom collection. Default: false
Return:
'0' success, more information please see V2TXLiveCode
Implementation
Future<V2TXLiveCode> enableCustomVideoCapture(bool enable) async {
var result = await _channel.invokeMethod(
'enableCustomVideoCapture', {"enable": enable});
return _liveCodeWithResult(result);
}