Skip to content

Commit

Permalink
Fallback to chunkful preparation if CODECS does not contain audio
Browse files Browse the repository at this point in the history
Issue: google/ExoPlayer#10065

#minor-release

PiperOrigin-RevId: 438281023
  • Loading branch information
christosts authored and icbaker committed Apr 6, 2022
1 parent 01c24e4 commit bd5ca15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RELEASENOTES.md
Expand Up @@ -35,6 +35,10 @@
views to be used with other `Player` implementations, and removes the
dependency from the UI module to the ExoPlayer module. This is a
breaking change.
* HLS:
* Fallback to chunkful preparation if the playlist CODECS attribute
does not contain the audio codec
([#10065](https://github.com/google/ExoPlayer/issues/10065)).
* RTSP:
* Add RTP reader for MPEG4
([#35](https://github.com/androidx/media/pull/35))
Expand Down
Expand Up @@ -646,7 +646,8 @@ private void buildAndPrepareMainSampleStreamWrapper(
int numberOfVideoCodecs = Util.getCodecCountOfType(codecs, C.TRACK_TYPE_VIDEO);
int numberOfAudioCodecs = Util.getCodecCountOfType(codecs, C.TRACK_TYPE_AUDIO);
boolean codecsStringAllowsChunklessPreparation =
numberOfAudioCodecs <= 1
(numberOfAudioCodecs == 1
|| (numberOfAudioCodecs == 0 && multivariantPlaylist.audios.isEmpty()))
&& numberOfVideoCodecs <= 1
&& numberOfAudioCodecs + numberOfVideoCodecs > 0;
@C.TrackType
Expand Down

0 comments on commit bd5ca15

Please sign in to comment.