google / google/ExoPlayer

Hls adaptive streaming not working for audio only

Open
#5,313 13 comments 0 reactions 1 assignee Assigned to @tianyif View on GitHub
bug needs triage
Dominant language
Java
Stars
21.9k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

### Issue description
Hls adaptive streaming not working with our Audio tracks (Hls file doesn't contain Video track)
We tested Exoplayer demo app, just replaced Hls source by our link.
Player always selects default stream with BANDWIDTH=140800, and never switches to BANDWIDTH=281600, tested on wifi connection.

### Reproduction steps
Just replace HlsSource link in demo app:
` case C.TYPE_HLS:
return new HlsMediaSource.Factory(dataSourceFactory)
// .setPlaylistParserFactory(
// new DefaultHlsPlaylistParserFactory(getOfflineStreamKeys(uri)))
.createMediaSource(Uri.parse("our hls url here"));
`

### Link to test content
Link will be provided by email

### Version of ExoPlayer being used
Exoplayer 2.9.3, branch release-v2

### Device(s) and version(s) of Android being used
Google Pixel, Android 9.0

### A full bug report captured from the device
Bug report will be provided by email

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.