updateLiveInfo method

void updateLiveInfo()

Implementation

void updateLiveInfo() {
  TUILiveInfo liveInfo = TUILiveInfo();
  liveInfo.roomInfo = TUIRoomInfo(roomId: roomState.roomId);
  liveInfo.coverUrl = roomState.coverURL.value;
  liveInfo.isPublicVisible = LiveStreamPrivacyStatus.publicity == roomState.liveExtraInfo.liveMode.value;
  liveInfo.categoryList = [roomState.liveExtraInfo.category.value];
  liveService.setLiveInfo(
    roomState.roomId,
    coverUrl: roomState.coverURL.value,
    categoryList: [roomState.liveExtraInfo.category.value],
    isPublicVisible: LiveStreamPrivacyStatus.publicity == roomState.liveExtraInfo.liveMode.value,
  );
  return;
}