setProperty method
Call the high-level API interface of V2TXLivePlayer
Parameter:
key
The key corresponding to the high-level API
value
When calling the high-level API corresponding to the key, the parameter required is a base type or jsonString
Return:
- V2TXLIVE_OK: Succeed
- V2TXLIVE_ERROR_INVALID_PARAMETER: If the operation fails, the key is not allowed to be null
Implementation
Future<V2TXLiveCode> setProperty(String key, Object value) async {
var result = await _channel.invokeMethod(
'setProperty', {"key": key, "value": value});
return _liveCodeWithResult(result);
}