aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-23 10:52:27 +0200
committerChocobozzz <me@florianbigard.com>2022-06-23 10:52:27 +0200
commitb6898035bfc5ba60ec54f7e61ff832e5e2ac30eb (patch)
tree75ed612cba2182ea0329f64bd179bacf974fe5f6 /client/src
parent408fd5e424475be0e21d207d518ea9cb7aa57c1d (diff)
downloadPeerTube-b6898035bfc5ba60ec54f7e61ff832e5e2ac30eb.tar.gz
PeerTube-b6898035bfc5ba60ec54f7e61ff832e5e2ac30eb.tar.zst
PeerTube-b6898035bfc5ba60ec54f7e61ff832e5e2ac30eb.zip
Fix going live latency mode
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts6
1 files changed, 4 insertions, 2 deletions
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 d81f577b2..80e5a73da 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
@@ -7,7 +7,7 @@ import { FormValidatorService } from '@app/shared/shared-forms'
7import { Video, VideoCaptionService, VideoEdit, VideoService } from '@app/shared/shared-main' 7import { Video, VideoCaptionService, VideoEdit, VideoService } from '@app/shared/shared-main'
8import { LiveVideoService } from '@app/shared/shared-video-live' 8import { LiveVideoService } from '@app/shared/shared-video-live'
9import { LoadingBarService } from '@ngx-loading-bar/core' 9import { LoadingBarService } from '@ngx-loading-bar/core'
10import { LiveVideo, LiveVideoCreate, LiveVideoUpdate, PeerTubeProblemDocument, ServerErrorCode } from '@shared/models' 10import { LiveVideo, LiveVideoCreate, LiveVideoLatencyMode, LiveVideoUpdate, PeerTubeProblemDocument, ServerErrorCode } from '@shared/models'
11import { VideoSend } from './video-send' 11import { VideoSend } from './video-send'
12 12
13@Component({ 13@Component({
@@ -71,12 +71,13 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView
71 nsfw: this.serverConfig.instance.isNSFW, 71 nsfw: this.serverConfig.instance.isNSFW,
72 waitTranscoding: true, 72 waitTranscoding: true,
73 permanentLive: this.firstStepPermanentLive, 73 permanentLive: this.firstStepPermanentLive,
74 latencyMode: LiveVideoLatencyMode.DEFAULT,
74 saveReplay: this.isReplayAllowed(), 75 saveReplay: this.isReplayAllowed(),
75 channelId: this.firstStepChannelId 76 channelId: this.firstStepChannelId
76 } 77 }
77 78
78 // Go live in private mode, but correctly fill the update form with the first user choice 79 // Go live in private mode, but correctly fill the update form with the first user choice
79 const toPatch = Object.assign({}, video, { privacy: this.firstStepPrivacyId }) 80 const toPatch = { ...video, privacy: this.firstStepPrivacyId }
80 this.form.patchValue(toPatch) 81 this.form.patchValue(toPatch)
81 82
82 this.liveVideoService.goLive(video) 83 this.liveVideoService.goLive(video)
@@ -121,6 +122,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView
121 122
122 const liveVideoUpdate: LiveVideoUpdate = { 123 const liveVideoUpdate: LiveVideoUpdate = {
123 saveReplay: this.form.value.saveReplay, 124 saveReplay: this.form.value.saveReplay,
125 latencyMode: this.form.value.latencyMode,
124 permanentLive: this.form.value.permanentLive 126 permanentLive: this.form.value.permanentLive
125 } 127 }
126 128