ActivityPub-federated video streaming platform using P2P directly in your web browser
Save replay of permanent live in client
Chocobozzz86c5229b4d72
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html b/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.htmlindex b29651437c..71d5d91f0d 100644--- a/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html+++ b/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html@@ -30,9 +30,6 @@inputName="liveAllowReplay" formControlName="allowReplay"i18n-labelText labelText="Allow your users to automatically publish a replay of their live">- <ng-container ngProjectAs="description" i18n>- If the user quota is reached, PeerTube will automatically terminate the live streaming- </ng-container></my-peertube-checkbox></div>diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts b/client/src/app/+videos/+video-edit/shared/video-edit.component.tsindex a2399eafb9..16b964482a 100644--- a/client/src/app/+videos/+video-edit/shared/video-edit.component.ts+++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.ts@@ -180,7 +180,6 @@ export class VideoEditComponent implements OnInit, OnDestroy {this.trackChannelChange()this.trackPrivacyChange()- this.trackLivePermanentFieldChange()this.formBuilt.emit()}@@ -457,24 +456,6 @@ export class VideoEditComponent implements OnInit, OnDestroy {)}- private trackLivePermanentFieldChange () {- // We will update the "support" field depending on the channel- this.form.controls['permanentLive']- .valueChanges- .subscribe(- permanentLive => {- const saveReplayControl = this.form.controls['saveReplay']-- if (permanentLive === true) {- saveReplayControl.setValue(false)- saveReplayControl.disable()- } else {- saveReplayControl.enable()- }- }- )- }-private updateSupportField (support: string) {return this.form.patchValue({ support: support || '' })}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.tsindex fde8c884b9..725120d166 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@@ -71,7 +71,7 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterViewnsfw: this.serverConfig.instance.isNSFW,waitTranscoding: true,permanentLive: this.firstStepPermanentLive,- saveReplay: this.firstStepPermanentLive === false && this.isReplayAllowed(),+ saveReplay: this.isReplayAllowed(),channelId: this.firstStepChannelId}diff --git a/server/middlewares/validators/videos/video-live.ts b/server/middlewares/validators/videos/video-live.tsindex 8f821c5f9a..ff492da0fa 100644--- a/server/middlewares/validators/videos/video-live.ts+++ b/server/middlewares/validators/videos/video-live.ts@@ -170,10 +170,6 @@ const videoLiveUpdateValidator = [const body: LiveVideoUpdate = req.body- if (body.permanentLive && body.saveReplay) {- return res.fail({ message: 'Cannot set this live as permanent while saving its replay' })- }-if (hasValidSaveReplay(body) !== true) {return res.fail({status: HttpStatusCode.FORBIDDEN_403,diff --git a/server/tests/api/check-params/live.ts b/server/tests/api/check-params/live.tsindex 8d520da0d1..bbd3316575 100644--- a/server/tests/api/check-params/live.ts+++ b/server/tests/api/check-params/live.ts@@ -414,12 +414,6 @@ describe('Test video lives API validator', function () {await command.update({ videoId: videoIdNotLive, fields: {}, expectedStatus: HttpStatusCode.NOT_FOUND_404 })})- it('Should fail with save replay and permanent live set to true', async function () {- const fields = { saveReplay: true, permanentLive: true }-- await command.update({ videoId: video.id, fields, expectedStatus: HttpStatusCode.BAD_REQUEST_400 })- })-it('Should fail with bad latency setting', async function () {const fields = { latencyMode: 42 }