Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't send replay settings on not replayed lives

Wicklow73ef4b54aa6d
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts
index 9044929948..ba612f5531 100644
--- a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts
+++ b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts
@@ -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
}
diff --git a/client/src/app/+videos/+video-edit/video-update.component.ts b/client/src/app/+videos/+video-edit/video-update.component.ts
index b70270261d..ad71162b85 100644
--- a/client/src/app/+videos/+video-edit/video-update.component.ts
+++ b/client/src/app/+videos/+video-edit/video-update.component.ts
@@ -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
}