Skip to content

Commit

Permalink
Merge pull request #217 from ant-media/add-more-resolutions
Browse files Browse the repository at this point in the history
Add 640 and 540 resolutions to the adaptive resolutions
  • Loading branch information
burak-58 committed Mar 27, 2023
2 parents 970118b + 3e5b28c commit 78c6b7e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/app/app.page/app.page.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,8 @@ <h4 class="card-title text-left" i18n="@@newLiveStreamCardTitle">
<option value="2160">2160p</option>
<option value="1080">1080p</option>
<option value="720">720p</option>
<option value="640">640p</option>
<option value="540">540p</option>
<option value="480">480p</option>
<option value="360">360p</option>
<option value="240">240p</option>
Expand Down
12 changes: 10 additions & 2 deletions src/app/app.page/app.page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1156,13 +1156,21 @@ export class AppPageComponent implements OnInit, OnDestroy, AfterViewInit {
this.encoderSettings[i].audioBitrate = 256;
}
if (event == 1080) {
this.encoderSettings[i].videoBitrate = 2000;
this.encoderSettings[i].videoBitrate = 2500;
this.encoderSettings[i].audioBitrate = 256;
}
if (event == 720) {
this.encoderSettings[i].videoBitrate = 1500;
this.encoderSettings[i].videoBitrate = 2000;
this.encoderSettings[i].audioBitrate = 128;
}
if (event == 640) {
this.encoderSettings[i].videoBitrate = 1800;
this.encoderSettings[i].audioBitrate = 96;
}
if (event == 540) {
this.encoderSettings[i].videoBitrate = 1500;
this.encoderSettings[i].audioBitrate = 96;
}
if (event == 480) {
this.encoderSettings[i].videoBitrate = 1000;
this.encoderSettings[i].audioBitrate = 96;
Expand Down

0 comments on commit 78c6b7e

Please sign in to comment.