Don't send replay settings on not replayed lives
This commit is contained in:
parent
f8c62d3414
commit
73ef4b54aa
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue