Skip to content

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

Fix going live with a protected password

Chocobozzz520a6a652dcb
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 266ea96ab8..3246be2be8 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
@@ -106,7 +106,12 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView
const video: LiveVideoCreate = {
name,
- privacy: this.firstStepPrivacyId,
+
+ // Password privacy needs a password that will be set in the next step
+ privacy: this.firstStepPrivacyId === VideoPrivacy.PASSWORD_PROTECTED
+ ? VideoPrivacy.PRIVATE
+ : this.highestPrivacy,
+
nsfw: this.serverConfig.instance.isNSFW,
waitTranscoding: true,
permanentLive: this.firstStepPermanentLive,