mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Whilst testing fallback functionality, I found that we were aggressively reducing the resolution if it was not supported. A quick test found that we could reduce by a much smaller increments. Performance wise it appears these checks are incredibly quick. The code for checking supported sizes was duplicated, with one case having a bug because of this duplication (2/3 case). This CL abstracts this into a loop. PiperOrigin-RevId: 499497646 |
||
|---|---|---|
| .. | ||
| androidTest | ||
| main | ||
| test | ||