muteSeatAudio method
Implementation
Future<void> muteSeatAudio(SeatInfo seatInfo) async {
var lockParams = TUISeatLockParams();
lockParams.lockAudio = !seatInfo.isAudioLocked.value!;
lockParams.lockSeat = seatInfo.isLocked.value!;
TUIActionCallback result = liveService.lockSeatByAdmin(seatInfo.index, lockParams) as TUIActionCallback;
if (result.code != TUIError.success) {
LiveKitLogger.error("$tag muteSeatAudio [code:${result.code},message:${result.message}]");
ErrorHandler.onError(result.code);
return;
}
}