lockSeat method
Implementation
Future<void> lockSeat(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 lockSeat [code:${result.code},message:${result.message}]");
ErrorHandler.onError(result.code);
return;
}
}