startPush method
Starts ingesting audio and video data
Parameter:
url
The destination address of the stream ingest server can be used at any streaming server
Return:
- V2TXLIVE_OK: The operation succeeds and the destination endpoint is connected
- V2TXLIVE_ERROR_INVALID_PARAMETER: The operation failed and the URL was invalid
- V2TXLIVE_ERROR_INVALID_LICENSE: The operation fails, the license is invalid, and the authentication fails
- V2TXLIVE_ERROR_REFUSED: If the operation fails, RTC does not support pushing and pulling the same StreamId on the same device at the same time
Implementation
Future<V2TXLiveCode> startPush(String url) async {
var result = await _channel.invokeMethod('startPush', {"url": url});
return _liveCodeWithResult(result);
}