diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-11 14:16:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-11 14:17:27 +0200 |
commit | 080f14025ea5113d27b9732e06a1db7eb5489dea (patch) | |
tree | 7d8ebfa9c3311050fa020df173d5217181301a5e /client/src/app/+videos/+video-edit/video-add-components | |
parent | e5fc6b598325c861a7696e320b8de0eecb856cc7 (diff) | |
download | PeerTube-080f14025ea5113d27b9732e06a1db7eb5489dea.tar.gz PeerTube-080f14025ea5113d27b9732e06a1db7eb5489dea.tar.zst PeerTube-080f14025ea5113d27b9732e06a1db7eb5489dea.zip |
Hide wait transcoding for lives
Replays are always transcoded
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-add-components')
3 files changed, 2 insertions, 6 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html index 2fb29303f..e23fd77c7 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html +++ b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html | |||
@@ -53,7 +53,7 @@ | |||
53 | <form [hidden]="!isInUpdateForm" novalidate [formGroup]="form"> | 53 | <form [hidden]="!isInUpdateForm" novalidate [formGroup]="form"> |
54 | <my-video-edit | 54 | <my-video-edit |
55 | [form]="form" [formErrors]="formErrors" [videoCaptions]="videoCaptions" | 55 | [form]="form" [formErrors]="formErrors" [videoCaptions]="videoCaptions" |
56 | [forbidScheduledPublication]="true" [waitTranscodingEnabled]="isWaitTranscodingEnabled()" | 56 | [forbidScheduledPublication]="true" [hideWaitTranscoding]="true" |
57 | [validationMessages]="validationMessages" [userVideoChannels]="userVideoChannels" [liveVideo]="liveVideo" | 57 | [validationMessages]="validationMessages" [userVideoChannels]="userVideoChannels" [liveVideo]="liveVideo" |
58 | type="go-live" | 58 | type="go-live" |
59 | ></my-video-edit> | 59 | ></my-video-edit> |
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 4f2276e8c..83a6b2229 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 | |||
@@ -160,10 +160,6 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView | |||
160 | return this.serverConfig.live.maxDuration / 1000 | 160 | return this.serverConfig.live.maxDuration / 1000 |
161 | } | 161 | } |
162 | 162 | ||
163 | isWaitTranscodingEnabled () { | ||
164 | return this.form.value['saveReplay'] === true | ||
165 | } | ||
166 | |||
167 | getNormalLiveDescription () { | 163 | getNormalLiveDescription () { |
168 | if (this.isReplayAllowed()) { | 164 | if (this.isReplayAllowed()) { |
169 | return $localize`Stream only once, replay will replace your live` | 165 | return $localize`Stream only once, replay will replace your live` |
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html index 728884986..8541868c5 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html +++ b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html | |||
@@ -96,7 +96,7 @@ | |||
96 | <my-video-edit | 96 | <my-video-edit |
97 | [form]="form" [formErrors]="formErrors" [videoCaptions]="videoCaptions" | 97 | [form]="form" [formErrors]="formErrors" [videoCaptions]="videoCaptions" |
98 | [validationMessages]="validationMessages" [userVideoChannels]="userVideoChannels" | 98 | [validationMessages]="validationMessages" [userVideoChannels]="userVideoChannels" |
99 | [waitTranscodingEnabled]="true" [forbidScheduledPublication]="false" | 99 | [forbidScheduledPublication]="false" |
100 | type="upload" | 100 | type="upload" |
101 | ></my-video-edit> | 101 | ></my-video-edit> |
102 | 102 | ||