mirror of https://github.com/OpenVidu/openvidu.git
openvidu-testapp: add degradationPreference "maintain-resolution" as default value
parent
3326bb9614
commit
ce5adc3587
File diff suppressed because it is too large
Load Diff
|
|
@ -4,6 +4,9 @@
|
|||
"overrides": {
|
||||
"livekit-client": {
|
||||
"@livekit/protocol": "$@livekit/protocol"
|
||||
},
|
||||
"livekit-server-sdk": {
|
||||
"@livekit/protocol": "$@livekit/protocol"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
|
|
@ -27,13 +30,13 @@
|
|||
"@angular/material": "^22.0.4",
|
||||
"@angular/platform-browser": "^22.0.6",
|
||||
"@angular/router": "^22.0.6",
|
||||
"@livekit/protocol": "^1.49.0",
|
||||
"@livekit/protocol": "^1.50.4",
|
||||
"@livekit/track-processors": "^0.7.2",
|
||||
"buffer": "^6.0.3",
|
||||
"crypto-browserify": "^3.12.1",
|
||||
"json-stringify-safe": "5.0.1",
|
||||
"livekit-client": "2.20.1",
|
||||
"livekit-server-sdk": "^2.17.0",
|
||||
"livekit-client": "2.22.1",
|
||||
"livekit-server-sdk": "^2.18.0",
|
||||
"rxjs": "~7.8.2",
|
||||
"stream-browserify": "^3.0.0",
|
||||
"tslib": "^2.8.1",
|
||||
|
|
|
|||
|
|
@ -216,6 +216,14 @@
|
|||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field id="trackPublish-degradationPreference">
|
||||
<mat-label>degradationPreference</mat-label>
|
||||
<mat-select [(value)]="trackPublishOptions.degradationPreference">
|
||||
@for (pref of ['balanced','maintain-framerate','maintain-resolution']; track pref) {
|
||||
<mat-option [value]="pref" [ngClass]="'degradation-' + pref">{{pref}}</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field id="trackPublish-videoSimulcastLayers">
|
||||
<mat-label>videoSimulcastLayers</mat-label>
|
||||
<mat-select multiple [(value)]="trackPublishOptions.videoSimulcastLayers" [compareWith]="compareVideoPresets">
|
||||
|
|
|
|||
|
|
@ -124,6 +124,12 @@ export class OpenviduInstanceComponent {
|
|||
frameRate: 30,
|
||||
},
|
||||
},
|
||||
publishDefaults: {
|
||||
// maintain-resolution keeps simulcast/SVC layer sizes deterministic under
|
||||
// CPU load (the browser drops framerate instead of rescaling every layer),
|
||||
// which the e2e tests rely on when asserting received layer widths.
|
||||
degradationPreference: 'maintain-resolution',
|
||||
},
|
||||
singlePeerConnection: false
|
||||
};
|
||||
roomConnectOptions: RoomConnectOptions = {
|
||||
|
|
@ -1658,7 +1664,7 @@ export class OpenviduInstanceComponent {
|
|||
let selectedCandidatePairId: string = '';
|
||||
const stats: any = await new Promise((res) => {
|
||||
const reports_stats: any[] = [];
|
||||
pcTransport.getStats().then((stats: any) => {
|
||||
pcTransport.getStats()?.then((stats: any) => {
|
||||
stats.forEach((report: any) => {
|
||||
console.log('Report Type:', report.type);
|
||||
if (report.type === 'transport') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue