startVirtualCamera method
Enable image ingestion
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:
type
network, file
imageUrl
Image url
Return:
'0' success, more information please see V2TXLiveCode
Implementation
Future<V2TXLiveCode> startVirtualCamera(String type, String imageUrl) async {
var result = await _channel.invokeMethod(
'startVirtualCamera',
{"type": type, "imageUrl": imageUrl});
return _liveCodeWithResult(result);
}