google / google/ExoPlayer

Leverage Android Q Thermal API to request low bit rate stream as needed

Open
#6,284 18 comments 0 reactions 1 assignee Claimed by @tonihei View on GitHub
enhancement low priority
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### [REQUIRED] Use case description
Android devices getting warm can throttle CPU/GPU and this could affect streaming performance.

### Proposed solution
Android Q provides thermal API for apps to be notified and fallback to low performance mode. These callbacks could be used by ExoPlayer to request low quality stream from multiple tracks (if available).

### Alternatives considered
Android Apps could do this logic explicitly but this is something all apps would need and an out of box solution from ExoPlayer would help avoid redoing logic across applications.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.