w3c / compute-pressure

A web API proposal that provides information about available compute capacity
https://www.w3.org/TR/compute-pressure/
Other
69 stars 10 forks source link

Combine Compute Pressure API with WebRTC features #250

Open MatanYemini opened 7 months ago

MatanYemini commented 7 months ago

Hi,

It would be nice to have this combination out there.

For example, if we detect CPU overload, then we automatically switch to a lower layer if using simulcast.

Even better would be to auto-turn videos off, etc, but it might be too specific, and less of an "API"

Thanks! -m

anssiko commented 7 months ago

Does the video conferencing use case capture your requirements?

kenchris commented 5 months ago

I think it is a bit more complicated than that. Some CPUs can quickly recover and some can't - so you might want to analyze the data a bit before deciding to turn on and off features. I don't think that we want to implement a specific behavior into WebRTC for that, but leave it open for people to experiment