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