Don't send replay settings on not replayed lives

pull/5765/head
Wicklow 2023-04-19 15:18:44 +02:00 committed by Chocobozzz
parent f8c62d3414
commit 73ef4b54aa
2 changed files with 14 additions and 4 deletions

View File

@ -137,9 +137,14 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView
video.uuid = this.videoUUID
video.shortUUID = this.videoShortUUID
const saveReplay = this.form.value.saveReplay
const replaySettings = saveReplay
? { privacy: this.form.value.replayPrivacy }
: undefined
const liveVideoUpdate: LiveVideoUpdate = {
saveReplay: this.form.value.saveReplay,
replaySettings: { privacy: this.form.value.replayPrivacy },
saveReplay,
replaySettings,
latencyMode: this.form.value.latencyMode,
permanentLive: this.form.value.permanentLive
}

View File

@ -127,9 +127,14 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
switchMap(() => {
if (!this.liveVideo) return of(undefined)
const saveReplay = !!this.form.value.saveReplay
const replaySettings = saveReplay
? { privacy: this.form.value.replayPrivacy }
: undefined
const liveVideoUpdate: LiveVideoUpdate = {
saveReplay: !!this.form.value.saveReplay,
replaySettings: { privacy: this.form.value.replayPrivacy },
saveReplay,
replaySettings,
permanentLive: !!this.form.value.permanentLive,
latencyMode: this.form.value.latencyMode
}