setAudioQuality method
Set the ingest audio quality
Parameter:
quality
Audio quality V2TXLiveAudioQuality
- V2TXLiveAudioQuality.v2TXLiveAudioQualityDefault Default value: General
- V2TXLiveAudioQuality.v2TXLiveAudioQualitySpeech Voice
- V2TXLiveAudioQuality.v2TXLiveAudioQualityMusic Music
Return:
- V2TXLIVE_OK: Succeed
- V2TXLIVE_ERROR_REFUSED: During the ingest process, the sound quality cannot be adjusted
Implementation
Future<V2TXLiveCode> setAudioQuality(V2TXLiveAudioQuality quality) async {
var result = await _channel.invokeMethod(
'setAudioQuality', {"quality": quality.index});
return _liveCodeWithResult(result);
}