From fcc2e3c53753ee3f82f0d75ffd671457fef2de1f Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 5 Feb 2020 13:38:40 +0100 Subject: [PATCH] fixing bitrate selection --- .../app/ui/settings/video/video.settings.component.html | 4 ++-- .../app/ui/settings/video/video.settings.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontend/app/ui/settings/video/video.settings.component.html b/src/frontend/app/ui/settings/video/video.settings.component.html index f4ee7309..17efed27 100644 --- a/src/frontend/app/ui/settings/video/video.settings.component.html +++ b/src/frontend/app/ui/settings/video/video.settings.component.html @@ -68,7 +68,7 @@ description="The height of the output video will be scaled down to this, while keeping the aspect ratio." i18n-name i18n-description [ngModel]="states.server.transcoding.resolution" - (ngModelChange)="updateBitRate()" + (change)="updateBitRate()" [options]="resolutions" required="true"> @@ -79,7 +79,7 @@ description="Target frame per second (fps) of the output video will be scaled down this this." i18n-name i18n-description [ngModel]="states.server.transcoding.fps" - (ngModelChange)="updateBitRate()" + (change)="updateBitRate()" [options]="fps" [simplifiedMode]="simplifiedMode" required="true"> diff --git a/src/frontend/app/ui/settings/video/video.settings.component.ts b/src/frontend/app/ui/settings/video/video.settings.component.ts index 81269343..39a88269 100644 --- a/src/frontend/app/ui/settings/video/video.settings.component.ts +++ b/src/frontend/app/ui/settings/video/video.settings.component.ts @@ -78,7 +78,7 @@ export class VideoSettingsComponent extends SettingsComponent<{ server: ServerCo bitRate = 8 * 1024 * 1024; } else if (resolution <= 1440) { bitRate = 16 * 1024 * 1024; - } else if (resolution <= 2016) { + } else { bitRate = 40 * 1024 * 1024; }