demo · v144
Send Mode Simulator
Pick a degradation preference and squeeze the bitrate slider. The simulator shows which dimension WebRTC sacrifices first — framerate, resolution, or encoder quality — under that preference. Probe below verifies whether the new enum value is supported.
maintain-framerate-and-resolution support:
checking…
resolution
1280×720
framerate
30 fps
encoder quality
100 %
the API
const sender = pc.getSenders().find(s => s.track?.kind === 'video');
const p = sender.getParameters();
p.degradationPreference = 'maintain-framerate-and-resolution';
await sender.setParameters(p);