X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideos%2F%2Bvideo-edit%2Fvideo-add-components%2Fvideo-go-live.component.ts;h=ee7011b4c1a5d5bb3bb7f24692de41ba746424a3;hb=3eb7ee658db32d270553046eeb77afc679a71466;hp=30c79594dd1800c40003e36825d02691afbb0250;hpb=1378c0d343028f3d40d7d795422684ab9e6a1599;p=github%2FChocobozzz%2FPeerTube.git 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 30c79594d..ee7011b4c 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 @@ -26,8 +26,11 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView isInUpdateForm = false liveVideo: LiveVideo + videoId: number videoUUID: string + videoShortUUID: string + error: string constructor ( @@ -41,7 +44,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView private liveVideoService: LiveVideoService, private router: Router, private hooks: HooksService - ) { + ) { super() } @@ -67,6 +70,8 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView waitTranscoding: true, commentsEnabled: true, downloadEnabled: true, + permanentLive: false, + saveReplay: false, channelId: this.firstStepChannelId } @@ -79,6 +84,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView next: res => { this.videoId = res.video.id this.videoUUID = res.video.uuid + this.videoShortUUID = res.video.shortUUID this.isInUpdateForm = true this.firstStepDone.emit(name) @@ -113,6 +119,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView video.patch(this.form.value) video.id = this.videoId video.uuid = this.videoUUID + video.shortUUID = this.videoShortUUID const liveVideoUpdate: LiveVideoUpdate = { saveReplay: this.form.value.saveReplay,