Fallback to chunkful preparation if CODECS does not contain audio
Issue: google/ExoPlayer#10065 #minor-release PiperOrigin-RevId: 438281023
This commit is contained in:
parent
01c24e4de8
commit
bd5ca15af6
@ -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))
|
||||
|
@ -646,7 +646,8 @@ public final class HlsMediaPeriod
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user