This release includes the following changes since the 1.5.0-beta01 release:
- ExoPlayer:
- Add a setter to
SntpClient
to set the max elapsed time since the last update after which the client is re-initialized (#1794). - Consider language when selecting a video track. By default select a 'main' video track that matches the language of the selected audio track, if available. Explicit video language preferences can be expressed with TrackSelectionParameters.Builder.setPreferredVideoLanguage(s)`.
- Add
selectedAudioLanguage
parameter toDefaultTrackSelector.selectVideoTrack()
method. - Add
retryCount
parameter toMediaSourceEventListener.onLoadStarted
and correspondingMediaSourceEventListener.EventDispatcher
methods. - Fix bug where playlist items or periods in multi-period DASH streams with durations that don't match the actual content could cause frame freezes at the end of the item (#1698).
- Add a setter to
- Transformer:
- Update parameters of
VideoFrameProcessor.registerInputStream
andVideoFrameProcessor.Listener.onInputStreamRegistered
to useFormat
.
- Update parameters of
- Extractors:
- DataSource:
DataSourceContractTest
: Assert thatDataSource.getUri()
returns the resolved URI (as documented). Where this is different to the requested URI, tests can indicate this using the newDataSourceContractTest.TestResource.Builder.setResolvedUri()
method.DataSourceContractTest
: Assert thatDataSource.getUri()
andgetResponseHeaders()
return their 'open' value after a failed call toopen()
(due to a 'not found' resource) and before a subsequentclose()
call.- Overriding
DataSourceContractTest.getNotFoundResources()
allows test sub-classes to provide multiple 'not found' resources, and to provide any expected headers too. This allows to distinguish between HTTP 404 (with headers) and "server not found" (no headers).
- Overriding
- Text:
- RTSP Extension:
- Fix crashing when parsing of RTP packets with header extensions (#1225).