Update dependency com.google.android.exoplayer:exoplayer-ui to v2.18.1
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| com.google.android.exoplayer:exoplayer-ui | dependencies | minor |
2.14.2 -> 2.18.1
|
Release Notes
google/ExoPlayer
v2.18.1
This release corresponds to the AndroidX media3 1.0.0-beta02 release.
- Core library:
- Ensure that changing the
ShuffleOrderwithExoPlayer.setShuffleOrderresults in a call toPlayer.Listener#onTimelineChangedwithreason=Player.TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED(#9889). - For progressive media, only include selected tracks in buffered position (#10361).
- Allow custom logger for all ExoPlayer log output (#9752).
- Fix implementation of
setDataSourceFactoryinDefaultMediaSourceFactory, which was non-functional in some cases (#116).
- Ensure that changing the
- Extractors:
- DASH:
- Parse ClearKey license URL from manifests (#10246).
- UI:
- Ensure TalkBack announces the currently active speed option in the playback controls menu (#10298).
- RTSP:
- Add VP8 fragmented packet handling (#110).
- Leanback extension:
- Listen to
playWhenReadychanges inLeanbackAdapter(10420).
- Listen to
- Cast:
v2.18.0
This release corresponds to the AndroidX media3 1.0.0-beta01 release.
- Core library:
- Enable support for Android platform diagnostics via
MediaMetricsManager. ExoPlayer will forward playback events and performance data to the platform, which helps to provide system performance and debugging information on the device. This data may also be collected by Google if sharing usage and diagnostics data is enabled by the user of the device. Apps can opt-out of contributing to platform diagnostics for ExoPlayer withExoPlayer.Builder.setUsePlatformDiagnostics(false). - Fix bug that tracks are reset too often when using
MergingMediaSource, for example when side-loading subtitles and changing the selected subtitle mid-playback (#10248). - Stop detecting 5G-NSA network type on API 29 and 30. These playbacks will assume a 4G network.
- Disallow passing
nulltoMediaSource.Factory.setDrmSessionManagerProviderandMediaSource.Factory.setLoadErrorHandlingPolicy. Instances ofDefaultDrmSessionManagerProviderandDefaultLoadErrorHandlingPolicycan be passed explicitly if required. - Add
MediaItem.RequestMetadatato represent metadata needed to play media when the exactLocalConfigurationis not known. Also removeMediaMetadata.mediaUrlas this is now included inRequestMetadata. - Add
Player.Command.COMMAND_SET_MEDIA_ITEMto enable players to allow setting a single item.
- Enable support for Android platform diagnostics via
- Track selection:
- Flatten
TrackSelectionOverridesclass intoTrackSelectionParameters, and promoteTrackSelectionOverrideto a top level class. - Rename
TracksInfotoTracksandTracksInfo.TrackGroupInfotoTracks.Group.Player.getCurrentTracksInfoandPlayer.Listener.onTracksInfoChangedhave also been renamed toPlayer.getCurrentTracksandPlayer.Listener.onTracksChanged. This includes 'un-deprecating' thePlayer.Listener.onTracksChangedmethod name, but with different parameter types. - Change
DefaultTrackSelector.buildUponParametersandDefaultTrackSelector.Parameters.buildUponto returnDefaultTrackSelector.Parameters.Builderinstead of the deprecatedDefaultTrackSelector.ParametersBuilder. - Add
DefaultTrackSelector.Parameters.constrainAudioChannelCountToDeviceCapabilitieswhich is enabled by default. When enabled, theDefaultTrackSelectorwill prefer audio tracks whose channel count does not exceed the device output capabilities. On handheld devices, theDefaultTrackSelectorwill prefer stereo/mono over multichannel audio formats, unless the multichannel format can be Spatialized (Android 12L+) or is a Dolby surround sound format. In addition, on devices that support audio spatialization, theDefaultTrackSelectorwill monitor for changes in the Spatializer properties and trigger a new track selection upon these. Devices with atelevisionUI mode are excluded from these constraints and the format with the highest channel count will be preferred. To enable this feature, theDefaultTrackSelectorinstance must be constructed with aContext.
- Flatten
- Video:
- Rename
DummySurfacetoPlaceholderSurface. - Add AV1 support to the
MediaCodecVideoRenderer.getCodecMaxInputSize.
- Rename
- Audio:
- Use LG AC3 audio decoder advertising non-standard MIME type.
- Change the return type of
AudioAttributes.getAudioAttributesV21()fromandroid.media.AudioAttributesto a newAudioAttributesV21wrapper class, to prevent slow ART verification on API < 21. - Query the platform (API 29+) or assume the audio encoding channel count for audio passthrough when the format audio channel count is unset, which occurs with HLS chunkless preparation (10204).
- Configure
AudioTrackwith channel maskAudioFormat.CHANNEL_OUT_7POINT1POINT4if the decoder outputs 12 channel PCM audio (#10322.
- DRM
- Ensure the DRM session is always correctly updated when seeking immediately after a format change (10274).
- Text:
- Change
Player.getCurrentCues()to returnCueGroupinstead ofList<Cue>. - SSA: Support
OutlineColourstyle setting whenBorderStyle == 3(i.e.OutlineColoursets the background of the cue) (#8435). - CEA-708: Parse data into multiple service blocks and ignore blocks not associated with the currently selected service number.
- Remove
RawCcExtractor, which was only used to handle a Google-internal subtitle format.
- Change
- Extractors:
- UI:
- Fix delivery of events to
OnClickListeners set onStyledPlayerViewandPlayerView, in the case thatuseController=false(#9605). Also fix delivery of events toOnLongClickListenerfor all view configurations. - Fix incorrectly treating a sequence of touch events that exit the bounds
of
StyledPlayerViewandPlayerViewbeforeACTION_UPas a click (#9861). - Fix
PlayerViewaccessibility issue where tapping might toggle playback rather than hiding the controls (#8627). - Rewrite
TrackSelectionViewandTrackSelectionDialogBuilderto work with thePlayerinterface rather thanExoPlayer. This allows the views to be used with otherPlayerimplementations, and removes the dependency from the UI module to the ExoPlayer module. This is a breaking change. - Don't show forced text tracks in the
PlayerViewtrack selector, and keep a suitable forced text track selected if "None" is selected (#9432).
- Fix delivery of events to
- DASH:
- Parse channel count from DTS
AudioChannelConfigurationelements. This re-enables audio passthrough for DTS streams (#10159). - Disallow passing
nulltoDashMediaSource.Factory.setCompositeSequenceableLoaderFactory. Instances ofDefaultCompositeSequenceableLoaderFactorycan be passed explicitly if required.
- Parse channel count from DTS
- HLS:
- Fallback to chunkful preparation if the playlist CODECS attribute does not contain the audio codec (#10065).
- Disallow passing
nulltoHlsMediaSource.Factory.setCompositeSequenceableLoaderFactory,HlsMediaSource.Factory.setPlaylistParserFactory, andHlsMediaSource.Factory.setPlaylistTrackerFactory. Instances ofDefaultCompositeSequenceableLoaderFactory,DefaultHlsPlaylistParserFactory, or a reference toDefaultHlsPlaylistTracker.FACTORYcan be passed explicitly if required.
- Smooth Streaming:
- Disallow passing
nulltoSsMediaSource.Factory.setCompositeSequenceableLoaderFactory. Instances ofDefaultCompositeSequenceableLoaderFactorycan be passed explicitly if required.
- Disallow passing
- RTSP:
- Add RTP reader for H263 (#63).
- Add RTP reader for MPEG4 (#35).
- Add RTP reader for HEVC (#36).
- Add RTP reader for AMR. Currently only mono-channel, non-interleaved AMR streams are supported. Compound AMR RTP payload is not supported. (#46)
- Add RTP reader for VP8 (#47).
- Add RTP reader for WAV (#56).
- Fix RTSP basic authorization header. (#9544).
- Stop checking mandatory SDP fields as ExoPlayer doesn't need them (#10049).
- Throw checked exception when parsing RTSP timing (#10165).
- Add RTP reader for VP9 (#47).
- Add RTP reader for OPUS (#53).
- Data sources:
- Rename
DummyDataSourcetoPlaceholderDataSource. - Workaround OkHttp interrupt handling.
- Rename
- Ad playback / IMA:
- Decrease ad polling rate from every 100ms to every 200ms, to line up with Media Rating Council (MRC) recommendations.
- FFmpeg extension:
- Update CMake version to
3.21.0+to avoid a CMake bug causing AndroidStudio's gradle sync to fail (#9933).
- Update CMake version to
- Remove deprecated symbols:
- Remove
Player.Listener.onTracksChanged(TrackGroupArray, TrackSelectionArray). UsePlayer.Listener.onTracksChanged(Tracks)instead. - Remove
Player.getCurrentTrackGroupsandPlayer.getCurrentTrackSelections. UsePlayer.getCurrentTracksinstead. You can also continue to useExoPlayer.getCurrentTrackGroupsandExoPlayer.getCurrentTrackSelections, although these methods remain deprecated. - Remove
DownloadHelperDEFAULT_TRACK_SELECTOR_PARAMETERS_WITHOUT_VIEWPORTandDEFAULT_TRACK_SELECTOR_PARAMETERSconstants. UsegetDefaultTrackSelectorParameters(Context)instead when possible, andDEFAULT_TRACK_SELECTOR_PARAMETERS_WITHOUT_CONTEXTotherwise. - Remove constructor
DefaultTrackSelector(ExoTrackSelection.Factory). UseDefaultTrackSelector(Context, ExoTrackSelection.Factory)instead. - Remove
Transformer.Builder.setContext. TheContextshould be passed to theTransformer.Builderconstructor instead.
- Remove
v2.17.1
This release corresponds to the AndroidX media3 1.0.0-alpha03 release.
- Audio:
- Fix error checking audio capabilities for Dolby Atmos (E-AC3-JOC) in HLS.
- Extractors:
- FMP4: Fix issue where emsg sample metadata could be output in the wrong order for streams containing both v0 and v1 emsg atoms (#9996).
- Text:
- Fix the interaction of
SingleSampleMediaSource.Factory.setTrackIdandMediaItem.SubtitleConfiguration.Builder.setIdto prioritise theSubtitleConfigurationfield and fall back to theFactoryvalue if it's not set (#10016).
- Fix the interaction of
- Ad playback:
- Fix audio underruns between ad periods in live HLS SSAI streams.
v2.17.0
This release corresponds to the AndroidX media3 1.0.0-alpha02 release.
- Core library:
- Sleep and retry when creating a
MediaCodecinstance fails. This works around an issue that occurs on some devices when switching a surface from a secure codec to another codec (#8696). - Add
MediaCodecAdapter.getMetrics()to allow users obtain metrics data fromMediaCodec. (#9766). - Fix Maven dependency resolution (#8353).
- Disable automatic speed adjustment for live streams that neither have low-latency features nor a user request setting the speed (#9329).
- Rename
DecoderCounters#inputBufferCounttoqueuedInputBufferCount. - Make
SimpleExoPlayer.renderersprivate. Renderers can be accessed viaExoPlayer.getRenderer. - Updated some
AnalyticsListener.EventFlagsconstant values to match values inPlayer.EventFlags. - Split
AnalyticsCollectorinto an interface and default implementation to allow it to be stripped by R8 if an app doesn't need it.
- Sleep and retry when creating a
- Track selection:
- Support preferred video role flags in track selection (#9402).
- Update video track selection logic to take preferred MIME types and role flags into account when selecting multiple video tracks for adaptation (#9519).
- Update video and audio track selection logic to only choose formats for adaptive selections that have the same level of decoder and hardware support (#9565).
- Update video track selection logic to prefer more efficient codecs if multiple codecs are supported by primary, hardware-accelerated decoders (#4835).
- Prefer audio content preferences (for example, the "default" audio track or a track matching the system locale language) over technical track selection constraints (for example, preferred MIME type, or maximum channel count).
- Prohibit duplicate
TrackGroups in aTrackGroupArray.TrackGroups can always be made distinguishable by setting anidin theTrackGroupconstructor. This fixes a crash when resuming playback after backgrounding the app with an active track override (#9718). - Amend logic in
AdaptiveTrackSelectionto allow a quality increase under sufficient network bandwidth even if playback is very close to the live edge (#9784).
- Video:
- Fix decoder fallback logic for Dolby Vision to use a compatible H264/H265 decoder if needed.
- Audio:
- Fix decoder fallback logic for Dolby Atmos (E-AC3-JOC) to use a compatible E-AC3 decoder if needed.
- Change
AudioCapabilitiesAPIs to require passing explicitlyAudioCapabilities.DEFAULT_AUDIO_CAPABILITIESinstead ofnull. - Allow customization of the
AudioTrackbuffer size calculation by injecting anAudioTrackBufferSizeProvidertoDefaultAudioSink(#8891). - Retry
AudioTrackcreation if the requested buffer size was > 1MB (#9712).
- Extractors:
- Fix incorrect parsing of H.265 SPS NAL units (#9719).
- Parse Vorbis Comments (including
METADATA_BLOCK_PICTURE) in Ogg Opus and Ogg Vorbis files.
- Text:
- Add a
MediaItem.SubtitleConfiguration.idfield which is propagated to theFormat.idfield of the subtitle track created from the configuration (#9673). - Add basic support for WebVTT subtitles in Matroska containers (#9886).
- Prevent
Cea708Decoderfrom reading more than the declared size of a service block.
- Add a
- DRM:
- Remove
playbackLooperfromDrmSessionManager.(pre)acquireSession. When aDrmSessionManageris used by an app in a customMediaSource, theplaybackLooperneeds to be passed toDrmSessionManager.setPlayerinstead.
- Remove
- Ad playback / IMA:
- Add support for IMA Dynamic Ad Insertion (DAI) (#8213).
- Add a method to
AdPlaybackStateto allow resetting an ad group so that it can be played again (#9615). - Enforce playback speed of 1.0 during ad playback (#9018).
- Fix issue where an ad group that failed to load caused an immediate playback reset (#9929).
- UI:
- DASH:
- HLS:
- Use chunkless preparation by default to improve start up time. If your
renditions contain muxed closed-caption tracks that are not declared
in the master playlist, you should add them to the master playlist to be
available for playback, or turn off chunkless preparation with
HlsMediaSource.Factory.setAllowChunklessPreparation(false). - Support key-frame accurate seeking in HLS (#2882).
- Correctly populate
Format.labelfor audio only HLS streams (#9608).
- Use chunkless preparation by default to improve start up time. If your
renditions contain muxed closed-caption tracks that are not declared
in the master playlist, you should add them to the master playlist to be
available for playback, or turn off chunkless preparation with
- RTSP:
- Transformer:
- Increase required min API version to 21.
-
TransformationExceptionis now used to describe errors that occur during a transformation. - Add
TransformationRequestfor specifying the transformation options. - Allow multiple listeners to be registered.
- Fix Transformer being stuck when the codec output is partially read.
- Fix potential NPE in
Transformer.getProgresswhen releasing the muxer throws. - Add a demo app for applying transformations.
- The transformer module is no longer included by depending on
com.google.android.exoplayer:exoplayer. To continue using transformer, add an additional dependency oncom.google.android.exoplayer:exoplayer-transformer.
- MediaSession extension:
- By default,
MediaSessionConnectornow clears the playlist on stop. Apps that want the playlist to be retained can callsetClearMediaItemsOnStop(false)on the connector.
- By default,
- Cast extension:
- FFmpeg extension:
- Make
build_ffmpeg.shdepend on LLVM's bin utils instead of GNU's (#9933).
- Make
- Android 12 compatibility:
- Upgrade the Cast extension to depend on
com.google.android.gms:play-services-cast-framework:20.1.0. Earlier versions ofplay-services-cast-frameworkare not compatible with apps targeting Android 12, and will crash with anIllegalArgumentExceptionwhen creatingPendingIntents (#9528).
- Upgrade the Cast extension to depend on
- Remove deprecated symbols:
- Remove
Player.EventListener. UsePlayer.Listenerinstead. - Remove
MediaSourceFactory.setDrmSessionManager,MediaSourceFactory.setDrmHttpDataSourceFactory, andMediaSourceFactory.setDrmUserAgent. UseMediaSourceFactory.setDrmSessionManagerProviderinstead. - Remove
MediaSourceFactory.setStreamKeys. UseMediaItem.Builder.setStreamKeysinstead. - Remove
MediaSourceFactory.createMediaSource(Uri). UseMediaSourceFactory.createMediaSource(MediaItem)instead. - Remove
setTagfromDashMediaSource,HlsMediaSourceandSsMediaSource. UseMediaItem.Builder.setTaginstead. - Remove
DashMediaSource.setLivePresentationDelayMs(long, boolean). UseMediaItem.Builder.setLiveConfigurationandMediaItem.LiveConfiguration.Builder.setTargetOffsetMsto override the manifest, orDashMediaSource.setFallbackTargetLiveOffsetMsto provide a fallback value. - Remove
(Simple)ExoPlayer.setThrowsWhenUsingWrongThread. Opting out of the thread enforcement is no longer possible. - Remove
ActionFileandActionFileUpgradeUtil. Use ExoPlayer 2.16.1 or before to useActionFileUpgradeUtilto merge legacy action files intoDefaultDownloadIndex. - Remove
ProgressiveMediaSource.setExtractorsFactory. UseProgressiveMediaSource.Factory(DataSource.Factory, ExtractorsFactory)constructor instead. - Remove
ProgressiveMediaSource.Factory.setTagandProgressiveMediaSource.Factory.setCustomCacheKey. UseMediaItem.Builder.setTagandMediaItem.Builder.setCustomCacheKeyinstead. - Remove
DefaultRenderersFactory(Context, @​ExtensionRendererMode int)andDefaultRenderersFactory(Context, @​ExtensionRendererMode int, long)constructors. Use theDefaultRenderersFactory(Context)constructor,DefaultRenderersFactory.setExtensionRendererMode, andDefaultRenderersFactory.setAllowedVideoJoiningTimeMsinstead. - Remove all public
CronetDataSourceconstructors. UseCronetDataSource.Factoryinstead.
- Remove
- Change the following
IntDefsto@Target(TYPE_USE)only. This may break the compilation of usages in Kotlin, which can be fixed by moving the annotation to annotate the type (Int).@AacAudioObjectType@Ac3Util.SyncFrameInfo.StreamType@AdLoadException.Type@AdtsExtractor.Flags@AmrExtractor.Flags@AspectRatioFrameLayout.ResizeMode@AudioFocusManager.PlayerCommand@AudioSink.SinkFormatSupport@BinarySearchSeeker.TimestampSearchResult.Type@BufferReplacementMode@C.BufferFlags@C.ColorRange@C.ColorSpace@C.ColorTransfer@C.CryptoMode@C.Encoding@C.PcmEncoding@C.Projection@C.SelectionReason@C.StereoMode@C.VideoOutputMode@CacheDataSource.Flags@CaptionStyleCompat.EdgeType@DataSpec.Flags@DataSpec.HttpMethods@DecoderDiscardReasons@DecoderReuseResult@DefaultAudioSink.OutputMode@DefaultDrmSessionManager.Mode@DefaultTrackSelector.SelectionEligibility@DefaultTsPayloadReaderFactory.Flags@EGLSurfaceTexture.SecureMode@EbmlProcessor.ElementType@ExoMediaDrm.KeyRequest.RequestType@ExtensionRendererMode@Extractor.ReadResult@FileTypes.Type-
@FlacExtractor.Flags(incom.google.android.exoplayer2.ext.flacpackage) -
@FlacExtractor.Flags(incom.google.android.exoplayer2.extractor.flacpackage) @FragmentedMp4Extractor.Flags@HlsMediaPlaylist.PlaylistType@HttpDataSourceException.Type@IllegalClippingException.Reason@IllegalMergeException.Reason@LoadErrorHandlingPolicy.FallbackType@MatroskaExtractor.Flags@Mp3Extractor.Flags@Mp4Extractor.Flags@NotificationUtil.Importance@PlaybackException.FieldNumber@PlayerNotificationManager.Priority@PlayerNotificationManager.Visibility@PlayerView.ShowBuffering@Renderer.State@RendererCapabilities.AdaptiveSupport@RendererCapabilities.Capabilities@RendererCapabilities.DecoderSupport@RendererCapabilities.FormatSupport@RendererCapabilities.HardwareAccelerationSupport@RendererCapabilities.TunnelingSupport@SampleStream.ReadDataResult@SampleStream.ReadFlags@StyledPlayerView.ShowBuffering@SubtitleView.ViewType@TextAnnotation.Position@TextEmphasisSpan.MarkFill@TextEmphasisSpan.MarkShape@Track.Transformation@TrackOutput.SampleDataPart@Transformer.ProgressState@TsExtractor.Mode@TsPayloadReader.Flags@WebvttCssStyle.FontSizeUnit
v2.16.1
- Core Library:
- Fix track selection issue where overriding one track group did not disable other track groups of the same type (#9675).
- Fix track selection issue where a mixture of non-empty and empty track overrides is not applied correctly (#9649).
- Add protected method
DefaultRenderersFactory.getCodecAdapterFactory()so that subclasses ofDefaultRenderersFactorythat overridebuildVideoRenderers()orbuildAudioRenderers()can access the codec adapter factory and pass it toMediaCodecRendererinstances they create. - Propagate ICY header fields
nameandgenretoMediaMetadata.stationandMediaMetadata.genrerespectively so that they reach the app viaPlayer.Listener.onMediaMetadataChanged()(#9677). - Remove null keys from
DefaultHttpDataSource#getResponseHeaders.
- Extractors:
- WAV: Add support for RF64 streams (#9543).
- DASH:
- Add parsed essential and supplemental properties to the
Representation(#9579).
- Add parsed essential and supplemental properties to the
- HLS:
- Correctly populate
Format.labelfor audio only HLS streams (#9608).
- Correctly populate
v2.16.0
- Core Library:
- Deprecate
SimpleExoPlayer. All functionality has been moved toExoPlayerinstead.ExoPlayer.Buildercan be used instead ofSimpleExoPlayer.Builder. - Add track selection methods to the
Playerinterface, for example,Player.getCurrentTracksInfoandPlayer.setTrackSelectionParameters. These methods can be used instead of directly accessing the track selector. - Enable MediaCodec asynchronous queueing by default on devices with API
level >= 31. Add methods in
DefaultMediaCodecRendererFactoryandDefaultRenderersFactoryto force enable or force disable asynchronous queueing (6348). - Remove final dependency on
jcenter(). - Fix
mediaMetadatabeing reset when media is repeated (#9458). - Adjust
ExoPlayerMediaMetadataupdate priority, such that values input through theMediaItem.MediaMetadataare used above media derived values. - Move
com.google.android.exoplayer2.device.DeviceInfotocom.google.android.exoplayer2.DeviceInfo. - Move
com.google.android.exoplayer2.drm.DecryptionExceptiontocom.google.android.exoplayer2.decoder.CryptoException. - Move
com.google.android.exoplayer2.upstream.cache.CachedRegionTrackertocom.google.android.exoplayer2.upstream.CachedRegionTracker. - Move
Player.addListener(EventListener)andPlayer.removeListener(EventListener)out ofPlayerinto subclasses.
- Deprecate
- Android 12 compatibility:
- Keep
DownloadServicestarted and in the foreground whilst waiting for requirements to be met on Android 12. This is necessary due to new foreground service launch restrictions.DownloadService.getSchedulerwill not be called on Android 12 devices. - Disable platform transcoding when playing content URIs on Android 12.
- Add
ExoPlayer.setVideoChangeFrameRateStrategyto allow disabling of calls from the player toSurface.setFrameRate. This is useful for applications wanting to callSurface.setFrameRatedirectly from application code with Android 12'sSurface.CHANGE_FRAME_RATE_ALWAYS. - Upgrade the WorkManager extension to depend on
androidx.work:work-runtime:2.7.0. Earlier versions ofwork-runtimeare not compatible with apps targeting Android 12, and will crash with anIllegalArgumentExceptionwhen creatingPendingIntents (#9181).
- Keep
- Video:
- Fix bug in
MediaCodecVideoRendererthat resulted in re-using a releasedSurfacewhen playing without an app-providedSurface(#9476).
- Fix bug in
- DRM:
- Log an error (instead of throwing
IllegalStateException) when callingDefaultDrmSession#release()on a fully released session (#9392).
- Log an error (instead of throwing
- UI:
- Extractors:
- MP4: Correctly handle HEVC tracks with pixel aspect ratios other than 1.
- MP4: Add support for Dolby TrueHD (only for unfragmented streams) (#9496).
- MP4: Avoid throwing
ArrayIndexOutOfBoundsExceptionwhen parsing invalidcolrboxes produced by some device cameras (#9332). - MP4: Parse HDR static metadata from the
clliandmdcvboxes. - TS: Correctly handle HEVC tracks with pixel aspect ratios other than 1.
- TS: Map stream type 0x80 to H262 (#9472).
- Downloads and caching:
- Modify
DownloadServicebehavior whenDownloadService.getSchedulerreturnsnull, or returns aSchedulerthat does not support the requirements for downloads to continue. In both cases,DownloadServicewill now remain started and in the foreground whilst waiting for requirements to be met. - Modify
DownloadServicebehavior when running on Android 12 and above. See the "Android 12 compatibility" section above.
- Modify
- RTSP:
- Support RFC4566 SDP attribute field grammar (#9430).
- DASH:
- Populate
Format.sampleMimeType,widthandheightfor imageAdaptationSetelements (#9500).
- Populate
- HLS:
- RTMP extension:
- Upgrade to
io.antmedia:rtmp_client, which does not rely onjcenter()(#9591).
- Upgrade to
- MediaSession extension:
- Rename
MediaSessionConnector.QueueNavigator#onCurrentWindowIndexChangedtoonCurrentMediaItemIndexChanged.
- Rename
- Transformer:
- Avoid sending a duplicate timestamp to the encoder with the end of stream buffer.
- Remove deprecated symbols:
- Remove
Renderer.VIDEO_SCALING_MODE_*constants. Use identically named constants inCinstead. - Remove
C.MSG_*constants. Use identically named constants inRendererinstead, except forC.MSG_SET_SURFACE, which is replaced withRenderer.MSG_SET_VIDEO_OUTPUT. - Remove
DeviceListener. UsePlayer.Listenerinstead. - Remove
CacheDataSourceFactory. UseCacheDataSource.Factoryinstead. - Remove
CacheDataSinkFactory. UseCacheDataSink.Factoryinstead. - Remove
FileDataSourceFactory. UseFileDataSource.Factoryinstead. - Remove
SimpleExoPlayer.addMetadataOutputandremoveMetadataOutput. UsePlayer.addListenerandPlayer.Listenerinstead. - Remove
SimpleExoPlayer.addAudioListener,removeAudioListenerandAudioListener. UsePlayer.addListenerandPlayer.Listenerinstead. - Remove
SimpleExoPlayer.addVideoListener,removeVideoListenerandVideoListener. UsePlayer.addListenerandPlayer.Listenerinstead. - Remove
DefaultHttpDataSourceFactory. UseDefaultHttpDataSource.Factoryinstead. - Remove
SingleSampleMediaSource.createMediaSource(Uri, Format, long). UseSingleSampleMediaSource.createMediaSource(MediaItem.Subtitle, long)instead. - Remove
HttpDataSource.Factory.getDefaultRequestProperties. UseHttpDataSource.Factory.setDefaultRequestPropertiesinstead. - Remove
GvrAudioProcessorand the GVR extension, which has been deprecated since 2.11.0. - Remove
DownloadService.onDownloadChangedandDownloadService.onDownloadRemoved. Instead, useDownloadManager.addListenerto register a listener directly to theDownloadManagerreturned throughDownloadService.getDownloadManager. - Remove
Player.getCurrentStaticMetadata,Player.Listener.onStaticMetadataChangedandPlayer.EVENT_STATIC_METADATA_CHANGED. UsePlayer.getMediaMetadata,Player.Listener.onMediaMetadataChangedandPlayer.EVENT_MEDIA_METADATA_CHANGEDfor convenient access to structured metadata, or access the raw static metadata directly from theTrackSelection#getFormat(). - Remove
ControlDispatcherandDefaultControlDispatcher. Operations can be customized by using aForwardingPlayer, or when configuring the player (for example by usingExoPlayer.Builder.setSeekBackIncrementMs).
- Remove
v2.15.1
- Core Library:
- Fix track selection in
StyledPlayerControlViewwhen usingForwardingPlayer. - Fix
FlagSet#equalson API levels below 24. - Fix
NullPointerExceptionbeing thrown fromCacheDataSourcewhen reading a fully cached resource withDataSpec.positionequal to the resource length. - Fix a bug when depending on ExoPlayer locally with a relative path (#9403).
- Better handle invalid seek requests. Seeks to positions that are before the start or after the end of the media are now handled as seeks to the start and end respectively (8906).
- Rename
MimeTypes.AUDIO_DTS_UHDtoMimeTypes.AUDIO_DTS_Xand add required profile to its value (#9429).
- Fix track selection in
- Extractors:
- Video:
- Request smaller decoder input buffers for Dolby Vision. This fixes an issue that could cause UHD Dolby Vision playbacks to fail on some devices, including Amazon Fire TV 4K.
- DRM:
- Fix
DefaultDrmSessionManagerto correctly eagerly release preacquired DRM sessions when there's a shortage of DRM resources on the device.
- Fix
- Downloads and caching:
- Workaround platform issue that can cause a
SecurityExceptionto be thrown fromRequirements.isInternetConnectivityValidatedon devices running Android 11 (#9002).
- Workaround platform issue that can cause a
- DASH:
- Use identical cache keys for downloading and playing DASH segments (#9370).
- Fix base URL selection and load error handling when base URLs are shared across adaptation sets.
- HLS:
- Fix bug where the player would get stuck if all download attempts fail and would not raise an error to the application (#9390).
- RTSP:
- UI:
- Cast extension:
- Implement
CastPlayer.setPlaybackParameters(PlaybackParameters)to support setting the playback speed (#6784).
- Implement
v2.15.0
- Core Library:
- Add
MediaCodecAdapter.needsReconfigurationmethod. - Add
getSeekBackIncrement,seekBack,getSeekForwardIncrement,seekForward,getMaxSeekToPreviousPosition,seekToPreviousandseekToNextmethods toPlayer. - Rename
Playermethods:-
hasPrevioustohasPreviousWindow. -
previoustoseekToPreviousWindow. -
hasNexttohasNextWindow. -
nexttoseekToNextWindow.
-
- Rename
Playercommands:-
COMMAND_SEEK_IN_CURRENT_MEDIA_ITEMtoCOMMAND_SEEK_IN_CURRENT_WINDOW. -
COMMAND_SEEK_TO_NEXT_MEDIA_ITEMtoCOMMAND_SEEK_TO_NEXT_WINDOW. -
COMMAND_SEEK_TO_MREVIOUS_MEDIA_ITEMtoCOMMAND_SEEK_TO_MREVIOUS_WINDOW. -
COMMAND_SEEK_TO_MEDIA_ITEMtoCOMMAND_SEEK_TO_WINDOW. -
COMMAND_GET_MEDIA_ITEMStoCOMMAND_GET_TIMELINE.
-
- Rename
Player.EventFlagsIntDef toPlayer.Event. - Make
Playerdepend on the newPlaybackExceptionclass instead ofExoPlaybackException:-
Player.getPlayerErrornow returns aPlaybackException. -
Player.Listener.onPlayerErrornow receives aPlaybackException. - Add a new listener method
Player.Listener.onPlayerErrorChanged, which is equivalent toonPlayerErrorexcept that it is also called when the player error becomesnull. -
Playerimplementations likeExoPlayermay usePlaybackExceptionsubclasses (likeExoPlaybackException), so users can downcast thePlaybackExceptioninstance to obtain implementation-specific fields (likeExoPlaybackException.rendererIndex).
-
-
PlaybackExceptionintroduces anerrorCodewhich identifies the cause of the failure in order to simplify error handling (#1611). - Add a
DefaultMediaDescriptionAdapterfor thePlayerNotificationManager, that makes use of thePlayerMediaMetadatato populate the notification fields. - Add
@FallbackTypetoLoadErrorHandlingPolicyto support customization of the exclusion duration for locations and tracks. - Change interface of
LoadErrorHandlingPolicyto support configuring the behavior of track and location fallback. Location fallback is currently only supported for DASH manifests with multiple base URLs. - Restrict use of
AudioTrack.isDirectPlaybackSupportedto TVs, to avoid listing audio offload encodings as supported for passthrough mode on mobile devices (#9239).
- Add
- Extractors:
- Add support for DTS-UHD in MP4 (#9163).
- Text:
- TTML: Inherit the
rubyPositionvalue from a containing<span ruby="container">element. - WebVTT: Add support for CSS
font-sizeproperty (#8964).
- TTML: Inherit the
- Ad playback:
- Support changing ad break positions in the player logic (#5067).
- Support resuming content with an offset after an ad group.
- UI:
- Add
setUseRewindActionandsetUseFastForwardActiontoPlayerNotificationManager, andsetUseFastForwardActionInCompactViewandsetUseRewindActionInCompactViewto show the actions in compact view mode. - Remove
rewind_incrementandfastforward_incrementattributes fromPlayerControlViewandStyledPlayerControlView. These increments can be customized by configuring thePlayer(seesetSeekBackIncrementMsandsetSeekForwardIncrementMsinSimpleExoPlayer.Builder), or by using aForwardingPlayerthat overridesgetSeekBackIncrement,seekBack,getSeekForwardIncrementandseekForward. The rewind and fast forward buttons can be disabled by using aForwardingPlayerthat removesCOMMAND_SEEK_BACKandCOMMAND_SEEK_FORWARDfrom the available commands. - Update
DefaultControlDispatchergetRewindIncrementMsandgetFastForwardIncrementMsto take the player as parameter.
- Add
- DASH:
- HLS:
- RTSP:
- SmoothStreaming:
- Propagate
StreamIndexelementNameattribute value asFormatlabel (#9252).
- Propagate
- Cronet extension:
- Add
CronetDataSource.Factory.setRequestPriorityto allow setting the priority of requests made byCronetDataSourceinstances.
- Add
- OkHttp extension:
- Switch to OkHttp 4.9.1. This increases the extension's minimum SDK version requirement from 16 to 21.
- Remove deprecated symbols:
- Remove
CastPlayerspecific playlist manipulation methods. UsesetMediaItems,addMediaItems,removeMediaItemandmoveMediaIteminstead. - Remove
Format.createmethods. UseFormat.Builderinstead. - Remove
MediaSource.getTag. UseMediaSource.getMediaItemandMediaItem.PlaybackProperties.taginstead. - Remove
PlaybackPreparer. UI components that previously hadsetPlaybackPreparermethods will now callPlayer.prepareby default. If this behavior is sufficient, use ofPlaybackPreparercan be removed from application code without replacement. For custom preparation logic, use aForwardingPlayerthat implements custom preparation logic inprepare. - Remove
Player.Listener.onTimelineChanged(Timeline, Object, int). UsePlayer.Listener.onTimelineChanged(Timeline, int)instead. The manifest can be accessed usingPlayer.getCurrentManifest. - Remove
Player.getCurrentTag. UsePlayer.getCurrentMediaItemandMediaItem.PlaybackProperties.taginstead. - Remove
Player.getPlaybackError. UsePlayer.getPlayerErrorinstead. - Remove
PlayerNotificationManagerconstructors andcreateWithmethods. UsePlayerNotificationManager.Builderinstead. - Remove
PlayerNotificationManager.setNotificationListener. UsePlayerNotificationManager.Builder.setNotificationListenerinstead. - Remove
PlayerNotificationManagersetUseNavigationActionsandsetUseNavigationActionsInCompactView. UsesetUseNextAction,setUsePreviousAction,setUseNextActionInCompactViewandsetUsePreviousActionInCompactViewinstead. - Remove
setRewindIncrementMsandsetFastForwardIncrementMsfrom UI components. These increments can be customized by configuring thePlayer(seesetSeekBackIncrementMsandsetSeekForwardIncrementMsinSimpleExoPlayer.Builder), or by using aForwardingPlayerthat overridesgetSeekBackIncrement,seekBack,getSeekForwardIncrementandseekForward. The rewind and fast forward buttons can be disabled by using aForwardingPlayerthat removesCOMMAND_SEEK_BACKandCOMMAND_SEEK_FORWARDfrom the available commands. - Remove
Timeline.getWindow(int, Window, boolean). UseTimeline.getWindow(int, Window)instead, which will always set tags.
- Remove
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.