tag:github.com,2008:https://github.com/google/ExoPlayer/releases Release notes from ExoPlayer 2023-08-16T13:12:52Z tag:github.com,2008:Repository/20818126/r2.19.1 2023-08-16T13:49:54Z r2.19.1 <p>This is the last planned release of the <code>com.google.android.exoplayer2</code> artifacts. This project is now deprecated. All users should migrate to <code>androidx.media3</code> (which contains the same ExoPlayer code). See <a href="https://developer.android.com/guide/topics/media/media3/getting-started/migration-guide" rel="nofollow">the migration guide</a> for more details, including a script to help with the migration.</p> <p>This release corresponds to the <a href="https://github.com/androidx/media/releases/tag/1.1.1">AndroidX Media3 1.1.1 release</a>.</p> <ul> <li>Common Library: <ul> <li>Remove accidentally added <code>multidex</code> dependency from all modules (<a href="https://github.com/androidx/media/issues/499" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/499/hovercard">#499</a>).</li> </ul> </li> <li>ExoPlayer: <ul> <li>Fix issue in <code>PlaybackStatsListener</code> where spurious <code>PlaybackStats</code> are created after the playlist is cleared.</li> <li>Add additional fields to Common Media Client Data (CMCD) logging: streaming format (sf), stream type (st), version (v), top birate (tb), object duration (d), measured throughput (mtp) and object type (ot) (<a href="https://github.com/google/ExoPlayer/issues/8699" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/8699/hovercard">#8699</a>).</li> </ul> </li> <li>Audio: <ul> <li>Fix a bug where <code>Player.getState()</code> never transitioned to <code>STATE_ENDED</code> when playing very short files (<a href="https://github.com/androidx/media/issues/538" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/538/hovercard">#538</a>).</li> </ul> </li> <li>Audio Offload: <ul> <li>Prepend Ogg ID Header and Comment Header Pages to bitstream for offloaded Opus playback in accordance with RFC 7845.</li> </ul> </li> <li>Video: <ul> <li>H.265/HEVC: Fix parsing SPS short and long term reference picture info.</li> </ul> </li> <li>Text: <ul> <li>CEA-608: Change cue truncation logic to only consider visible text. Previously indent and tab offset were included when limiting the cue length to 32 characters (which was technically correct by the spec) (<a href="https://github.com/google/ExoPlayer/issues/11019" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/11019/hovercard">#11019</a>).</li> </ul> </li> <li>IMA extension: <ul> <li>Bump IMA SDK version to 3.30.3.</li> </ul> </li> </ul> tianyif tag:github.com,2008:Repository/20818126/r2.19.0 2023-07-05T09:20:59Z r2.19.0 <p>This is the last planned release of the <code>com.google.android.exoplayer2</code> artifacts. This project is now deprecated. All users should migrate to <code>androidx.media3</code> (which contains the same ExoPlayer code). See <a href="https://developer.android.com/guide/topics/media/media3/getting-started/migration-guide" rel="nofollow">the migration guide</a> for more details, including a script to help with the migration.</p> <p>This release corresponds to the <a href="https://github.com/androidx/media/releases/tag/1.1.0">AndroidX Media3 1.1.0 release</a>.</p> <ul> <li>Common Library: <ul> <li>Add suppression reason for unsuitable audio route and play when ready change reason for suppressed too long. (<a href="https://github.com/androidx/media/issues/15" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/15/hovercard">#15</a>).</li> <li>Add commands to Player: <ul> <li><code>COMMAND_GET_METADATA</code></li> <li><code>COMMAND_SET_PLAYLIST_METADATA</code></li> <li><code>COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS</code></li> <li><code>COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS</code></li> </ul> </li> <li>Add overloaded methods to Player which allow users to specify volume flags: <ul> <li><code>void setDeviceVolume(int, int)</code></li> <li><code>void increaseDeviceVolume(int)</code></li> <li><code>void decreaseDeviceVolume(int)</code></li> <li><code>void setDeviceMuted(boolean, int)</code></li> </ul> </li> <li>Add <code>Builder</code> for <code>DeviceInfo</code> and deprecate existing constructor.</li> <li>Add <code>DeviceInfo.routingControllerId</code> to specify the routing controller ID for remote playbacks.</li> <li>Add <code>Player.replaceMediaItem(s)</code> as a shortcut to adding and removing items at the same position (<a href="https://github.com/google/ExoPlayer/issues/8046" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/8046/hovercard">#8046</a>).</li> </ul> </li> <li>ExoPlayer: <ul> <li>Allow ExoPlayer to have control of device volume methods only if explicitly opted in. Use <code>ExoPlayer.Builder.setDeviceVolumeControlEnabled</code> to have access to: <ul> <li><code>getDeviceVolume()</code></li> <li><code>isDeviceMuted()</code></li> <li><code>setDeviceVolume(int)</code> and <code>setDeviceVolume(int, int)</code></li> <li><code>increaseDeviceVolume(int)</code> and <code>increaseDeviceVolume(int, int)</code></li> <li><code>decreaseDeviceVolume(int)</code> and <code>decreaseDeviceVolume(int, int)</code></li> </ul> </li> <li>Add <code>FilteringMediaSource</code> that allows to filter available track types from a <code>MediaSource</code>.</li> <li>Add support for including Common Media Client Data (CMCD) in the outgoing requests of adaptive streaming formats DASH, HLS, and SmoothStreaming. The following fields, <code>br</code>, <code>bl</code>, <code>cid</code>, <code>rtp</code>, and <code>sid</code>, have been incorporated (<a href="https://github.com/google/ExoPlayer/issues/8699" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/8699/hovercard">#8699</a>). API structure and API methods: <ul> <li>CMCD logging is disabled by default, use <code>MediaSource.Factory.setCmcdConfigurationFactory(CmcdConfiguration.Factory cmcdConfigurationFactory)</code> to enable it.</li> <li>All keys are enabled by default, override <code>CmcdConfiguration.RequestConfig.isKeyAllowed(String key)</code> to filter out which keys are logged.</li> <li>Override <code>CmcdConfiguration.RequestConfig.getCustomData()</code> to enable custom key logging.</li> </ul> </li> <li>Add additional action to manifest of main demo to make it easier to start the demo app with a custom <code>*.exolist.json</code> file (<a href="https://github.com/androidx/media/pull/439" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/439/hovercard">#439</a>).</li> <li>Add <code>ExoPlayer.setVideoEffects()</code> for using <code>Effect</code> during video playback.</li> <li>Update <code>SampleQueue</code> to store <code>sourceId</code> as a <code>long</code> rather than an <code>int</code>. This changes the signatures of public methods <code>SampleQueue.sourceId</code> and <code>SampleQueue.peekSourceId</code>.</li> <li>Add parameters to <code>LoadControl</code> methods <code>shouldStartPlayback</code> and <code>onTracksSelected</code> that allow associating these methods with the relevant <code>MediaPeriod</code>.</li> <li>Change signature of <code>ServerSideAdInsertionMediaSource.setAdPlaybackStates(Map&lt;Object, AdPlaybackState&gt;)</code> by adding a timeline parameter that contains the periods with the UIDs used as keys in the map. This is required to avoid concurrency issues with multi-period live streams.</li> <li>Deprecate <code>EventDispatcher.withParameters(int windowIndex, @Nullable MediaPeriodId mediaPeriodId, long mediaTimeOffsetMs)</code> and <code>BaseMediaSource.createEventDispatcher(..., long mediaTimeOffsetMs)</code>. The variant of the methods without the <code>mediaTimeOffsetUs</code> can be called instead. Note that even for the deprecated variants, the offset is not anymore added to <code>startTimeUs</code> and <code>endTimeUs</code> of the <code>MediaLoadData</code> objects that are dispatched by the dispatcher.</li> <li>Rename <code>ExoTrackSelection.blacklist</code> to <code>excludeTrack</code> and <code>isBlacklisted</code> to <code>isTrackExcluded</code>.</li> <li>Fix inconsistent behavior between <code>ExoPlayer.setMediaItem(s)</code> and <code>addMediaItem(s)</code> when called on an empty playlist.</li> </ul> </li> <li>Transformer: <ul> <li>Remove <code>Transformer.Builder.setMediaSourceFactory(MediaSource.Factory)</code>. Use <code>ExoPlayerAssetLoader.Factory(MediaSource.Factory)</code> and <code>Transformer.Builder.setAssetLoaderFactory(AssetLoader.Factory)</code> instead.</li> <li>Remove <code>Transformer.startTransformation(MediaItem, ParcelFileDescriptor)</code>.</li> <li>Fix a bug where transformation could get stuck (leading to muxer timeout) if the end of the video stream was signaled at the moment when an input frame was pending processing.</li> <li>Query codecs via <code>MediaCodecList</code> instead of using <code>findDecoder/EncoderForFormat</code> utilities, to expand support.</li> <li>Remove B-frame configuration in <code>DefaultEncoderFactory</code> because it doesn't work on some devices.</li> </ul> </li> <li>Track selection: <ul> <li>Add <code>DefaultTrackSelector.Parameters.allowInvalidateSelectionsForRendererCapabilitiesChange</code> which is disabled by default. When enabled, the <code>DefaultTrackSelector</code> will trigger a new track selection when the renderer capabilities changed.</li> </ul> </li> <li>Extractors: <ul> <li>Ogg: Fix bug when seeking in files with a long duration (<a href="https://github.com/androidx/media/issues/391" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/391/hovercard">#391</a>).</li> <li>FMP4: Fix issue where <code>TimestampAdjuster</code> initializes a wrong timestamp offset with metadata sample time from emsg atom (<a href="https://github.com/androidx/media/issues/356" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/356/hovercard">#356</a>).</li> </ul> </li> <li>Audio: <ul> <li>Fix bug where some playbacks fail when tunneling is enabled and <code>AudioProcessors</code> are active, e.g. for gapless trimming (<a href="https://github.com/google/ExoPlayer/issues/10847" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10847/hovercard">#10847</a>).</li> <li>Encapsulate Opus frames in Ogg packets in direct playbacks (offload).</li> <li>Extrapolate current position during sleep with offload scheduling.</li> <li>Add <code>Renderer.release()</code> and <code>AudioSink.release()</code> for releasing the resources at the end of player's lifecycle.</li> <li>Listen to audio capabilities changes in <code>DefaultAudioSink</code>. Add a required parameter <code>context</code> in the constructor of <code>DefaultAudioSink</code>, with which the <code>DefaultAudioSink</code> will register as the listener to the <code>AudioCapabilitiesReceiver</code> and update its <code>audioCapabilities</code> property when informed with a capabilities change.</li> <li>Propagate audio capabilities changes via a new event <code>onAudioCapabilitiesChanged</code> in <code>AudioSink.Listener</code> interface, and a new interface <code>RendererCapabilities.Listener</code> which triggers <code>onRendererCapabilitiesChanged</code> events.</li> <li>Add <code>ChannelMixingAudioProcessor</code> for applying scaling/mixing to audio channels.</li> <li>Add new int value <code>DISCARD_REASON_AUDIO_BYPASS_POSSIBLE</code> to <code>DecoderDiscardReasons</code> to discard audio decoder when bypass mode is possible after audio capabilities change.</li> <li>Add direct playback support for DTS Express and DTS:X (<a href="https://github.com/androidx/media/pull/335" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/335/hovercard">#335</a>).</li> </ul> </li> <li>Video: <ul> <li>Make <code>MediaCodecVideoRenderer</code> report a <code>VideoSize</code> with a width and height of 0 when the renderer is disabled. <code>Player.Listener.onVideoSizeChanged</code> is called accordingly when <code>Player.getVideoSize()</code> changes. With this change, ExoPlayer's video size with <code>MediaCodecVideoRenderer</code> has a width and height of 0 when <code>Player.getCurrentTracks</code> does not support video, or the size of the supported video track is not yet determined.</li> </ul> </li> <li>DRM: <ul> <li>Reduce the visibility of several internal-only methods on <code>DefaultDrmSession</code> that aren't expected to be called from outside the DRM package: <ul> <li><code>void onMediaDrmEvent(int)</code></li> <li><code>void provision()</code></li> <li><code>void onProvisionCompleted()</code></li> <li><code>onProvisionError(Exception, boolean)</code></li> </ul> </li> </ul> </li> <li>Muxer: <ul> <li>Add a new muxer library which can be used to create an MP4 container file.</li> </ul> </li> <li>IMA extension: <ul> <li>Enable multi-period live DASH streams for DAI. Please note that the current implementation does not yet support seeking in live streams (<a href="https://github.com/google/ExoPlayer/issues/10912" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10912/hovercard">#10912</a>).</li> <li>Fix a bug where a new ad group is inserted in live streams because the calculated content position in consecutive timelines varies slightly.</li> </ul> </li> <li>UI: <ul> <li>Add Util methods <code>shouldShowPlayButton</code> and <code>handlePlayPauseButtonAction</code> to write custom UI elements with a play/pause button.</li> </ul> </li> <li>RTSP Extension: <ul> <li>For MPEG4-LATM, use default profile-level-id value if absent in Describe Response SDP message (<a href="https://github.com/androidx/media/issues/302" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/302/hovercard">#302</a>).</li> <li>Use base Uri for relative path resolution from the RTSP session if present in DESCRIBE response header (<a href="https://github.com/google/ExoPlayer/issues/11160" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/11160/hovercard">#11160</a>).</li> </ul> </li> <li>DASH Extension: <ul> <li>Remove the media time offset from <code>MediaLoadData.startTimeMs</code> and <code>MediaLoadData.endTimeMs</code> for multi period DASH streams.</li> <li>Fix a bug where re-preparing a multi-period live Dash media source produced a <code>IndexOutOfBoundsException</code> (<a href="https://github.com/google/ExoPlayer/issues/10838" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10838/hovercard">#10838</a>).</li> </ul> </li> <li>HLS Extension: <ul> <li>Add <code>HlsMediaSource.Factory.setTimestampAdjusterInitializationTimeoutMs(long)</code> to set a timeout for the loading thread to wait for the <code>TimestampAdjuster</code> to initialize. If the initialization doesn't complete before the timeout, a <code>PlaybackException</code> is thrown to avoid the playback endless stalling. The timeout is set to zero by default (<a href="https://github.com/androidx/media/issues//323">#323</a>).</li> </ul> </li> <li>Test Utilities: <ul> <li>Check for URI scheme case insensitivity in <code>DataSourceContractTest</code>.</li> </ul> </li> <li>Remove deprecated symbols: <ul> <li>Remove <code>DefaultAudioSink</code> constructors, use <code>DefaultAudioSink.Builder</code> instead.</li> <li>Remove <code>HlsMasterPlaylist</code>, use <code>HlsMultivariantPlaylist</code> instead.</li> <li>Remove <code>Player.stop(boolean)</code>. Use <code>Player.stop()</code> and <code>Player.clearMediaItems()</code> (if <code>reset</code> is <code>true</code>) instead.</li> <li>Remove two deprecated <code>SimpleCache</code> constructors, use a non-deprecated constructor that takes a <code>DatabaseProvider</code> instead for better performance.</li> <li>Remove <code>DefaultBandwidthMeter</code> constructor, use <code>DefaultBandwidthMeter.Builder</code> instead.</li> <li>Remove <code>DefaultDrmSessionManager</code> constructors, use <code>DefaultDrmSessionManager.Builder</code> instead.</li> <li>Remove two deprecated <code>HttpDataSource.InvalidResponseCodeException</code> constructors, use a non-deprecated constructor that accepts additional fields(<code>cause</code>, <code>responseBody</code>) to enhance error logging.</li> <li>Remove <code>DownloadHelper.forProgressive</code>, <code>DownloadHelper.forHls</code>, <code>DownloadHelper.forDash</code>, and <code>DownloadHelper.forSmoothStreaming</code>, use <code>DownloadHelper.forMediaItem</code> instead.</li> <li>Remove deprecated <code>DownloadService</code> constructor, use a non deprecated constructor that includes the option to provide a <code>channelDescriptionResourceId</code> parameter.</li> <li>Remove deprecated String constants for Charsets (<code>ASCII_NAME</code>, <code>UTF8_NAME</code>, <code>ISO88591_NAME</code>, <code>UTF16_NAME</code> and <code>UTF16LE_NAME</code>), use Kotlin Charsets from the <code>kotlin.text</code> package, the <code>java.nio.charset.StandardCharsets</code> or the <code>com.google.common.base.Charsets</code> instead.</li> <li>Remove deprecated <code>WorkManagerScheduler</code> constructor, use a non deprecated constructor that includes the option to provide a <code>Context</code> parameter instead.</li> <li>Remove the deprecated methods <code>createVideoSampleFormat</code>, <code>createAudioSampleFormat</code>, <code>createContainerFormat</code>, and <code>createSampleFormat</code>, which were used to instantiate the <code>Format</code> class. Instead use <code>Format.Builder</code> for creating instances of <code>Format</code>.</li> <li>Remove the deprecated methods <code>copyWithMaxInputSize</code>, <code>copyWithSubsampleOffsetUs</code>, <code>copyWithLabel</code>, <code>copyWithManifestFormatInfo</code>, <code>copyWithGaplessInfo</code>, <code>copyWithFrameRate</code>, <code>copyWithDrmInitData</code>, <code>copyWithMetadata</code>, <code>copyWithBitrate</code> and <code>copyWithVideoSize</code>, use <code>Format.buildUpon()</code> and setter methods instead.</li> <li>Remove deprecated <code>ExoPlayer.retry()</code>, use <code>prepare()</code> instead.</li> <li>Remove deprecated zero-arg <code>DefaultTrackSelector</code> constructor, use <code>DefaultTrackSelector(Context)</code> instead.</li> <li>Remove deprecated <code>OfflineLicenseHelper</code> constructor, use <code>OfflineLicenseHelper(DefaultDrmSessionManager, DrmSessionEventListener.EventDispatcher)</code> instead.</li> <li>Remove deprecated <code>DownloadManager</code> constructor, use the constructor that takes an <code>Executor</code> instead.</li> <li>Remove deprecated <code>Cue</code> constructors, use <code>Cue.Builder</code> instead.</li> <li>Remove deprecated <code>OfflineLicenseHelper</code> constructor, use <code>OfflineLicenseHelper(DefaultDrmSessionManager, DrmSessionEventListener.EventDispatcher)</code> instead.</li> <li>Remove four deprecated <code>AnalyticsListener</code> methods: <ul> <li><code>onDecoderEnabled</code>, use <code>onAudioEnabled</code> and/or <code>onVideoEnabled</code> instead.</li> <li><code>onDecoderInitialized</code>, use <code>onAudioDecoderInitialized</code> and/or <code>onVideoDecoderInitialized</code> instead.</li> <li><code>onDecoderInputFormatChanged</code>, use <code>onAudioInputFormatChanged</code> and/or <code>onVideoInputFormatChanged</code> instead.</li> <li><code>onDecoderDisabled</code>, use <code>onAudioDisabled</code> and/or <code>onVideoDisabled</code> instead.</li> </ul> </li> <li>Remove the deprecated <code>Player.Listener.onSeekProcessed</code> and <code>AnalyticsListener.onSeekProcessed</code>, use <code>onPositionDiscontinuity</code> with <code>DISCONTINUITY_REASON_SEEK</code> instead.</li> <li>Remove <code>ExoPlayer.setHandleWakeLock(boolean)</code>, use <code>setWakeMode(int)</code> instead.</li> <li>Remove deprecated <code>DefaultLoadControl.Builder.createDefaultLoadControl()</code>, use <code>build()</code> instead.</li> </ul> </li> </ul> tof-tof tag:github.com,2008:Repository/20818126/r2.18.7 2023-05-17T16:32:49Z r2.18.7 <p>This release corresponds to the<br> <a href="https://github.com/androidx/media/releases/tag/1.0.2">AndroidX Media3 1.0.2 release</a>.</p> <ul> <li>Core library: <ul> <li>Add <code>Buffer.isLastSample()</code> that denotes if <code>Buffer</code> contains flag <code>C.BUFFER_FLAG_LAST_SAMPLE</code>.</li> <li>Fix issue where last frame may not be rendered if the last sample with frames is dequeued without reading the 'end of stream' sample. (<a href="https://github.com/google/ExoPlayer/issues/11079" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/11079/hovercard">#11079</a>).</li> </ul> </li> <li>Extractors: <ul> <li>Fix parsing of H.265 SPS in MPEG-TS files by re-using the parsing logic already used by RTSP and MP4 extractors (<a href="https://github.com/androidx/media/issues/303" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/303/hovercard">#303</a>).</li> </ul> </li> <li>Text: <ul> <li>SSA: Add support for UTF-16 files if they start with a byte order mark (<a href="https://github.com/androidx/media/issues/319" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/319/hovercard">#319</a>).</li> </ul> </li> </ul> icbaker tag:github.com,2008:Repository/20818126/r2.18.6 2023-04-19T17:39:28Z r2.18.6 <p>This release corresponds to the <a href="https://github.com/androidx/media/releases/tag/1.0.1">AndroidX Media3 1.0.1 release</a>.</p> <ul> <li>Core library: <ul> <li>Reset target live stream override when seeking to default position (<a href="https://github.com/google/ExoPlayer/pull/11051" data-hovercard-type="pull_request" data-hovercard-url="/google/ExoPlayer/pull/11051/hovercard">#11051</a>).</li> <li>Fix bug where empty sample streams in the media could cause playback to be stuck.</li> </ul> </li> <li>DASH: <ul> <li>Fix handling of empty segment timelines (<a href="https://github.com/google/ExoPlayer/issues/11014" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/11014/hovercard">#11014</a>).</li> </ul> </li> <li>RTSP: <ul> <li>Retry with TCP if RTSP Setup with UDP fails with RTSP Error 461 UnsupportedTransport (<a href="https://github.com/google/ExoPlayer/issues/11069" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/11069/hovercard">#11069</a>).</li> </ul> </li> </ul> rohitjoins tag:github.com,2008:Repository/20818126/r2.18.5 2023-03-22T09:53:27Z r2.18.5 <p>This release corresponds to the <a href="https://github.com/androidx/media/releases/tag/1.0.0">AndroidX Media3 1.0.0 release</a>.</p> <p>There are no changes since 2.18.4.</p> tonihei tag:github.com,2008:Repository/20818126/r2.18.4 2023-03-06T11:57:57Z r2.18.4 <p>This release corresponds to the <a href="https://github.com/androidx/media/releases/tag/1.0.0-rc02">AndroidX Media3 1.0.0-rc02 release</a>.</p> <ul> <li>Core library: <ul> <li>Fix network type detection on API 33 (<a href="https://github.com/google/ExoPlayer/issues/10970" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10970/hovercard">#10970</a>).</li> <li>Fix <code>NullPointerException</code> when calling <code>ExoPlayer.isTunnelingEnabled</code> (<a href="https://github.com/google/ExoPlayer/issues/10977" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10977/hovercard">#10977</a>).</li> </ul> </li> <li>Downloads: <ul> <li>Make the maximum difference of the start time of two segments to be merged configurable in <code>SegmentDownloader</code> and subclasses (<a href="https://github.com/androidx/media/pull/248" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/248/hovercard">#248</a>).</li> </ul> </li> <li>Audio: <ul> <li>Fix broken gapless MP3 playback on Samsung devices (<a href="https://github.com/google/ExoPlayer/issues/8594" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/8594/hovercard">#8594</a>).</li> <li>Fix bug where playback speeds set immediately after disabling audio may be overridden by a previous speed change (<a href="https://github.com/google/ExoPlayer/issues/10882" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10882/hovercard">#10882</a>).</li> </ul> </li> <li>Video: <ul> <li>Map HEVC HDR10 format to <code>HEVCProfileMain10HDR10</code> instead of <code>HEVCProfileMain10</code>.</li> <li>Add workaround for a device issue on Chromecast with Google TV and Lenovo M10 FHD Plus that causes 60fps AVC streams to be marked as unsupported (<a href="https://github.com/google/ExoPlayer/issues/10898" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10898/hovercard">#10898</a>).</li> <li>Fix frame release performance issues when playing media with a frame rate far higher than the screen refresh rate.</li> </ul> </li> <li>Cast: <ul> <li>Fix transient <code>STATE_IDLE</code> when transitioning between media items (<a href="https://github.com/androidx/media/issues/245" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/245/hovercard">#245</a>).</li> </ul> </li> <li>RTSP: <ul> <li>Catch the IllegalArgumentException thrown in parsing of invalid RTSP Describe response messages (<a href="https://github.com/google/ExoPlayer/issues/10971" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10971/hovercard">#10971</a>).</li> </ul> </li> <li>IMA extension: <ul> <li>Fix a bug which prevented DAI streams without any ads from starting because the first (and in the case without ads the only) <code>LOADED</code> event wasn't received.</li> </ul> </li> </ul> tonihei tag:github.com,2008:Repository/20818126/r2.18.3 2023-02-22T09:36:43Z r2.18.3 <ul> <li>Core library: <ul> <li>Tweak the renderer's decoder ordering logic to uphold the <code>MediaCodecSelector</code>'s preferences, even if a decoder reports it may not be able to play the media performantly. For example with default selector, hardware decoder with only functional support will be preferred over software decoder that fully supports the format (<a href="https://github.com/google/ExoPlayer/issues/10604" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10604/hovercard">#10604</a>).</li> <li>Add <code>ExoPlayer.Builder.setPlaybackLooper</code> that sets a pre-existing playback thread for a new ExoPlayer instance.</li> <li>Allow download manager helpers to be cleared (<a href="https://github.com/google/ExoPlayer/issues/10776" data-hovercard-type="pull_request" data-hovercard-url="/google/ExoPlayer/pull/10776/hovercard">#10776</a>).</li> <li>Add parameter to <code>BasePlayer.seekTo</code> to also indicate the command used for seeking.</li> <li>Use theme when loading drawables on API 21+ (<a href="https://github.com/androidx/media/issues/220" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/220/hovercard">#220</a>).</li> <li>Add <code>ConcatenatingMediaSource2</code> that allows combining multiple media items into a single window (<a href="https://github.com/androidx/media/issues/247" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/247/hovercard">#247</a>).</li> </ul> </li> <li>Extractors: <ul> <li>Throw a <code>ParserException</code> instead of a <code>NullPointerException</code> if the sample table (stbl) is missing a required sample description (stsd) when parsing trak atoms.</li> <li>Correctly skip samples when seeking directly to a sync frame in fMP4 (<a href="https://github.com/google/ExoPlayer/issues/10941" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10941/hovercard">#10941</a>).</li> </ul> </li> <li>Audio: <ul> <li>Use the compressed audio format bitrate to calculate the min buffer size for <code>AudioTrack</code> in direct playbacks (passthrough).</li> </ul> </li> <li>Text: <ul> <li>Fix <code>TextRenderer</code> passing an invalid (negative) index to <code>Subtitle.getEventTime</code> if a subtitle file contains no cues.</li> <li>SubRip: Add support for UTF-16 files if they start with a byte order mark.</li> </ul> </li> <li>Metadata: <ul> <li>Parse multiple null-separated values from ID3 frames, as permitted by ID3 v2.4.</li> <li>Add <code>MediaMetadata.mediaType</code> to denote the type of content or the type of folder described by the metadata.</li> <li>Add <code>MediaMetadata.isBrowsable</code> as a replacement for <code>MediaMetadata.folderType</code>. The folder type will be deprecated in the next release.</li> </ul> </li> <li>DASH: <ul> <li>Add full parsing for image adaptation sets, including tile counts (<a href="https://github.com/google/ExoPlayer/issues/3752" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/3752/hovercard">#3752</a>).</li> </ul> </li> <li>UI: <ul> <li>Fix the deprecated <code>StyledPlayerView.setControllerVisibilityListener(StyledPlayerControlView.VisibilityListener)</code> to ensure visibility changes are passed to the registered listener (<a href="https://github.com/androidx/media/issues/229" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/229/hovercard">#229</a>).</li> <li>Fix the ordering of the center player controls in <code>StyledPlayerView</code> when using a right-to-left (RTL) layout (<a href="https://github.com/androidx/media/issues/227" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/227/hovercard">#227</a>).</li> </ul> </li> <li>Cast extension: <ul> <li>Bump Cast SDK version to 21.2.0.</li> </ul> </li> <li>IMA extension: <ul> <li>Remove player listener of the <code>ImaServerSideAdInsertionMediaSource</code> on the application thread to avoid threading issues.</li> <li>Add a property <code>focusSkipButtonWhenAvailable</code> to the <code>ImaServerSideAdInsertionMediaSource.AdsLoader.Builder</code> to request focusing the skip button on TV devices and set it to true by default.</li> <li>Add a method <code>focusSkipButton()</code> to the <code>ImaServerSideAdInsertionMediaSource.AdsLoader</code> to programmatically request to focus the skip button.</li> <li>Fix a bug which prevented playback from starting for a DAI stream without any ads.</li> <li>Bump IMA SDK version to 3.29.0.</li> </ul> </li> <li>Demo app: <ul> <li>Request notification permission for download notifications at runtime (<a href="https://github.com/google/ExoPlayer/issues/10884" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10884/hovercard">#10884</a>).</li> </ul> </li> </ul> christosts tag:github.com,2008:Repository/20818126/r2.18.2 2022-11-23T12:03:55Z r2.18.2 <ul> <li>Core library: <ul> <li>Add ExoPlayer.isTunnelingEnabled to check if tunneling is enabled for the currently selected tracks (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="210938667" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/2518" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/2518/hovercard" href="https://github.com/google/ExoPlayer/issues/2518">#2518</a>).</li> <li>Add WrappingMediaSource to simplify wrapping a single MediaSource (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="604774653" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/7279" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/7279/hovercard" href="https://github.com/google/ExoPlayer/issues/7279">#7279</a>).</li> <li>Discard back buffer before playback gets stuck due to insufficient available memory.</li> <li>Close the Tracing "doSomeWork" block when offload is enabled.</li> <li>Fix session tracking problem with fast seeks in PlaybackStatsListener (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1398108730" data-permission-text="Title is private" data-url="https://github.com/androidx/media/issues/180" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/180/hovercard" href="https://github.com/androidx/media/issues/180">androidx/media#180</a>).</li> <li>Send missing onMediaItemTransition callback when calling seekToNext or seekToPrevious in a single-item playlist (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1396213132" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10667" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10667/hovercard" href="https://github.com/google/ExoPlayer/issues/10667">#10667</a>).</li> <li>Add Player.getSurfaceSize that returns the size of the surface on which the video is rendered.</li> <li>Fix bug where removing listeners during the player release can cause an IllegalStateException (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1438882271" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10758" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10758/hovercard" href="https://github.com/google/ExoPlayer/issues/10758">#10758</a>).</li> </ul> </li> <li>Build: <ul> <li>Enforce minimum compileSdkVersion to avoid compilation errors (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1404361333" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10684" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10684/hovercard" href="https://github.com/google/ExoPlayer/issues/10684">#10684</a>).</li> <li>Avoid publishing block when included in another gradle build.</li> </ul> </li> <li>Track selection: <ul> <li>Prefer other tracks to Dolby Vision if display does not support it. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="892307595" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/8944" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/8944/hovercard" href="https://github.com/google/ExoPlayer/issues/8944">#8944</a>).</li> </ul> </li> <li>Downloads: <ul> <li>Fix potential infinite loop in ProgressiveDownloader caused by simultaneous download and playback with the same PriorityTaskManager (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1355587700" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10570" data-hovercard-type="pull_request" data-hovercard-url="/google/ExoPlayer/pull/10570/hovercard" href="https://github.com/google/ExoPlayer/pull/10570">#10570</a>).</li> <li>Make download notification appear immediately (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1402360747" data-permission-text="Title is private" data-url="https://github.com/androidx/media/issues/183" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/183/hovercard" href="https://github.com/androidx/media/pull/183">androidx/media#183</a>).</li> <li>Limit parallel download removals to 1 to avoid excessive thread creation (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1311135085" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10458" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10458/hovercard" href="https://github.com/google/ExoPlayer/issues/10458">#10458</a>).</li> </ul> </li> <li>Video: <ul> <li>Try alternative decoder for Dolby Vision if display does not support it. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1083883799" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/9794" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/9794/hovercard" href="https://github.com/google/ExoPlayer/issues/9794">#9794</a>).</li> </ul> </li> <li>Audio: <ul> <li>Use SingleThreadExecutor for releasing AudioTrack instances to avoid OutOfMemory errors when releasing multiple players at the same time (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1166874835" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10057" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10057/hovercard" href="https://github.com/google/ExoPlayer/issues/10057">#10057</a>).</li> <li>Adds AudioOffloadListener.onExperimentalOffloadedPlayback for the AudioTrack offload state. (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1323248180" data-permission-text="Title is private" data-url="https://github.com/androidx/media/issues/134" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/134/hovercard" href="https://github.com/androidx/media/issues/134">androidx/media#134</a>).</li> <li>Make AudioTrackBufferSizeProvider a public interface.</li> <li>Add ExoPlayer.setPreferredAudioDevice to set the preferred audio output device (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1323248395" data-permission-text="Title is private" data-url="https://github.com/androidx/media/issues/135" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/135/hovercard" href="https://github.com/androidx/media/issues/135">androidx/media#135</a>).</li> <li>Rename com.google.android.exoplayer2.audio.AudioProcessor to com.google.android.exoplayer2.audio.AudioProcessor.</li> <li>Map 8-channel and 12-channel audio to the 7.1 and 7.1.4 channel masks respectively on all Android versions (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1414202747" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10701" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10701/hovercard" href="https://github.com/google/ExoPlayer/issues/10701">#10701</a>).</li> </ul> </li> <li>Metadata: <ul> <li>MetadataRenderer can now be configured to render metadata as soon as they are available. Create an instance with MetadataRenderer(MetadataOutput, Looper, MetadataDecoderFactory, boolean) to specify whether the renderer will output metadata early or in sync with the player position.</li> </ul> </li> <li>DRM: <ul> <li>Work around a bug in the Android 13 ClearKey implementation that returns a non-empty but invalid license URL.</li> <li>Fix setMediaDrmSession failed: session not opened error when switching between DRM schemes in a playlist (e.g. Widevine to ClearKey).</li> </ul> </li> <li>Text: <ul> <li>CEA-608: Ensure service switch commands on field 2 are handled correctly (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1394880578" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10666" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10666/hovercard" href="https://github.com/google/ExoPlayer/issues/10666">#10666</a>).</li> </ul> </li> <li>DASH: <ul> <li>Parse EventStream.presentationTimeOffset from manifests (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1313048272" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10460" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10460/hovercard" href="https://github.com/google/ExoPlayer/issues/10460">#10460</a>).</li> </ul> </li> <li>UI: <ul> <li>Use current overrides of the player as preset in TrackSelectionDialogBuilder (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1301837121" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10429" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10429/hovercard" href="https://github.com/google/ExoPlayer/issues/10429">#10429</a>).</li> </ul> </li> <li>RTSP: <ul> <li>Add H263 fragmented packet handling (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1304319500" data-permission-text="Title is private" data-url="https://github.com/androidx/media/issues/119" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/119/hovercard" href="https://github.com/androidx/media/pull/119">androidx/media#119</a>).</li> <li>Add support for MP4A-LATM (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1361225613" data-permission-text="Title is private" data-url="https://github.com/androidx/media/issues/162" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/162/hovercard" href="https://github.com/androidx/media/pull/162">androidx/media#162</a>).</li> </ul> </li> <li>IMA: <ul> <li>Add timeout for loading ad information to handle cases where the IMA SDK gets stuck loading an ad (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1333303549" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10510" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10510/hovercard" href="https://github.com/google/ExoPlayer/issues/10510">#10510</a>).</li> <li>Prevent skipping mid-roll ads when seeking to the end of the content (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1407228421" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10685" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10685/hovercard" href="https://github.com/google/ExoPlayer/issues/10685">#10685</a>).</li> <li>Correctly calculate window duration for live streams with server-side inserted ads, for example IMA DAI (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1442985502" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10764" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10764/hovercard" href="https://github.com/google/ExoPlayer/issues/10764">#10764</a>).</li> </ul> </li> <li>FFmpeg extension: <ul> <li>Add newly required flags to link FFmpeg libraries with NDK 23.1.7779620 and above (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1123611736" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/9933" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/9933/hovercard" href="https://github.com/google/ExoPlayer/issues/9933">#9933</a>).</li> </ul> </li> <li>AV1 extension: <ul> <li>Update CMake version to avoid incompatibilities with the latest Android Studio releases (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1123611736" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/9933" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/9933/hovercard" href="https://github.com/google/ExoPlayer/issues/9933">#9933</a>).</li> </ul> </li> <li>Cast extension: <ul> <li>Implement getDeviceInfo() to be able to identify CastPlayer when controlling playback with a MediaController (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1328192631" data-permission-text="Title is private" data-url="https://github.com/androidx/media/issues/142" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/142/hovercard" href="https://github.com/androidx/media/issues/142">androidx/media#142</a>).</li> </ul> </li> <li>Transformer: <ul> <li>Add muxer watchdog timer to detect when generating an output sample is too slow.</li> </ul> </li> <li>Remove deprecated symbols: <ul> <li>Remove Transformer.Builder.setOutputMimeType(String). This feature has been removed. The MIME type will always be MP4 when the default muxer is used.</li> </ul> </li> </ul> microkatz tag:github.com,2008:Repository/20818126/r2.18.1 2022-07-22T09:41:50Z r2.18.1 <p>This release corresponds to the <a href="https://github.com/androidx/media/releases/tag/1.0.0-beta02">AndroidX media3 1.0.0-beta02 release</a>.</p> <ul> <li>Core library: <ul> <li>Ensure that changing the <code>ShuffleOrder</code> with <code>ExoPlayer.setShuffleOrder</code> results in a call to <code>Player.Listener#onTimelineChanged</code> with <code>reason=Player.TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED</code> (<a href="https://github.com/google/ExoPlayer/issues/9889" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/9889/hovercard">#9889</a>).</li> <li>For progressive media, only include selected tracks in buffered position (<a href="https://github.com/google/ExoPlayer/issues/10361" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10361/hovercard">#10361</a>).</li> <li>Allow custom logger for all ExoPlayer log output (<a href="https://github.com/google/ExoPlayer/issues/9752" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/9752/hovercard">#9752</a>).</li> <li>Fix implementation of <code>setDataSourceFactory</code> in <code>DefaultMediaSourceFactory</code>, which was non-functional in some cases (<a href="https://github.com/androidx/media/issues/116" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/116/hovercard">#116</a>).</li> </ul> </li> <li>Extractors: <ul> <li>Fix parsing of H265 short term reference picture sets (<a href="https://github.com/google/ExoPlayer/issues/10316" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10316/hovercard">#10316</a>).</li> <li>Fix parsing of bitrates from <code>esds</code> boxes (<a href="https://github.com/google/ExoPlayer/issues/10381" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10381/hovercard">#10381</a>).</li> </ul> </li> <li>DASH: <ul> <li>Parse ClearKey license URL from manifests (<a href="https://github.com/google/ExoPlayer/issues/10246" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10246/hovercard">#10246</a>).</li> </ul> </li> <li>UI: <ul> <li>Ensure TalkBack announces the currently active speed option in the playback controls menu (<a href="https://github.com/google/ExoPlayer/issues/10298" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10298/hovercard">#10298</a>).</li> </ul> </li> <li>RTSP: <ul> <li>Add VP8 fragmented packet handling (<a href="https://github.com/androidx/media/pull/110" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/110/hovercard">#110</a>).</li> </ul> </li> <li>Leanback extension: <ul> <li>Listen to <code>playWhenReady</code> changes in <code>LeanbackAdapter</code> (<a href="https://github.com/google/ExoPlayer/issues/10420" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10420/hovercard">10420</a>).</li> </ul> </li> <li>Cast: <ul> <li>Use the <code>MediaItem</code> that has been passed to the playlist methods as <code>Window.mediaItem</code> in <code>CastTimeline</code> (<a href="https://github.com/androidx/media/issues/25" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/25/hovercard">#25</a>, <a href="https://github.com/google/ExoPlayer/issues/8212" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/8212/hovercard">#8212</a>).</li> <li>Support <code>Player.getMetadata()</code> and <code>Listener.onMediaMetadataChanged()</code> with <code>CastPlayer</code> (<a href="https://github.com/androidx/media/issues/25" data-hovercard-type="issue" data-hovercard-url="/androidx/media/issues/25/hovercard">#25</a>).</li> </ul> </li> </ul> rohitjoins tag:github.com,2008:Repository/20818126/r2.18.0 2022-06-27T14:56:14Z r2.18.0 <p>This release corresponds to the <a href="https://github.com/androidx/media/releases/tag/1.0.0-beta01">AndroidX media3 1.0.0-beta01 release</a>.</p> <ul> <li>Core library: <ul> <li>Enable support for Android platform diagnostics via <code>MediaMetricsManager</code>. 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 <a href="https://support.google.com/accounts/answer/6078260" rel="nofollow">if sharing usage and diagnostics data is enabled</a> by the user of the device. Apps can opt-out of contributing to platform diagnostics for ExoPlayer with <code>ExoPlayer.Builder.setUsePlatformDiagnostics(false)</code>.</li> <li>Fix bug that tracks are reset too often when using <code>MergingMediaSource</code>, for example when side-loading subtitles and changing the selected subtitle mid-playback (<a href="https://github.com/google/ExoPlayer/issues/10248" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10248/hovercard">#10248</a>).</li> <li>Stop detecting 5G-NSA network type on API 29 and 30. These playbacks will assume a 4G network.</li> <li>Disallow passing <code>null</code> to <code>MediaSource.Factory.setDrmSessionManagerProvider</code> and <code>MediaSource.Factory.setLoadErrorHandlingPolicy</code>. Instances of <code>DefaultDrmSessionManagerProvider</code> and <code>DefaultLoadErrorHandlingPolicy</code> can be passed explicitly if required.</li> <li>Add <code>MediaItem.RequestMetadata</code> to represent metadata needed to play media when the exact <code>LocalConfiguration</code> is not known. Also remove <code>MediaMetadata.mediaUrl</code> as this is now included in <code>RequestMetadata</code>.</li> <li>Add <code>Player.Command.COMMAND_SET_MEDIA_ITEM</code> to enable players to allow setting a single item.</li> </ul> </li> <li>Track selection: <ul> <li>Flatten <code>TrackSelectionOverrides</code> class into <code>TrackSelectionParameters</code>, and promote <code>TrackSelectionOverride</code> to a top level class.</li> <li>Rename <code>TracksInfo</code> to <code>Tracks</code> and <code>TracksInfo.TrackGroupInfo</code> to <code>Tracks.Group</code>. <code>Player.getCurrentTracksInfo</code> and <code>Player.Listener.onTracksInfoChanged</code> have also been renamed to <code>Player.getCurrentTracks</code> and <code>Player.Listener.onTracksChanged</code>. This includes 'un-deprecating' the <code>Player.Listener.onTracksChanged</code> method name, but with different parameter types.</li> <li>Change <code>DefaultTrackSelector.buildUponParameters</code> and <code>DefaultTrackSelector.Parameters.buildUpon</code> to return <code>DefaultTrackSelector.Parameters.Builder</code> instead of the deprecated <code>DefaultTrackSelector.ParametersBuilder</code>.</li> <li>Add <code>DefaultTrackSelector.Parameters.constrainAudioChannelCountToDeviceCapabilities</code> which is enabled by default. When enabled, the <code>DefaultTrackSelector</code> will prefer audio tracks whose channel count does not exceed the device output capabilities. On handheld devices, the <code>DefaultTrackSelector</code> will prefer stereo/mono over multichannel audio formats, unless the multichannel format can be <a href="https://developer.android.com/reference/android/media/Spatializer" rel="nofollow">Spatialized</a> (Android 12L+) or is a Dolby surround sound format. In addition, on devices that support audio spatialization, the <code>DefaultTrackSelector</code> will monitor for changes in the <a href="https://developer.android.com/reference/android/media/Spatializer.OnSpatializerStateChangedListener" rel="nofollow">Spatializer properties</a> and trigger a new track selection upon these. Devices with a <code>television</code> <a href="https://developer.android.com/guide/topics/resources/providing-resources#UiModeQualifier" rel="nofollow">UI mode</a> are excluded from these constraints and the format with the highest channel count will be preferred. To enable this feature, the <code>DefaultTrackSelector</code> instance must be constructed with a <code>Context</code>.</li> </ul> </li> <li>Video: <ul> <li>Rename <code>DummySurface</code> to <code>PlaceholderSurface</code>.</li> <li>Add AV1 support to the <code>MediaCodecVideoRenderer.getCodecMaxInputSize</code>.</li> </ul> </li> <li>Audio: <ul> <li>Use LG AC3 audio decoder advertising non-standard MIME type.</li> <li>Change the return type of <code>AudioAttributes.getAudioAttributesV21()</code> from <code>android.media.AudioAttributes</code> to a new <code>AudioAttributesV21</code> wrapper class, to prevent slow ART verification on API &lt; 21.</li> <li>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 (<a href="https://github.com/google/ExoPlayer/issues/10204" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10204/hovercard">10204</a>).</li> <li>Configure <code>AudioTrack</code> with channel mask <code>AudioFormat.CHANNEL_OUT_7POINT1POINT4</code> if the decoder outputs 12 channel PCM audio (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1264128221" data-permission-text="Title is private" data-url="https://github.com/google/ExoPlayer/issues/10322" data-hovercard-type="pull_request" data-hovercard-url="/google/ExoPlayer/pull/10322/hovercard" href="https://github.com/google/ExoPlayer/pull/10322">#10322</a>.</li> </ul> </li> <li>DRM <ul> <li>Ensure the DRM session is always correctly updated when seeking immediately after a format change (<a href="https://github.com/google/ExoPlayer/issues/10274" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10274/hovercard">10274</a>).</li> </ul> </li> <li>Text: <ul> <li>Change <code>Player.getCurrentCues()</code> to return <code>CueGroup</code> instead of <code>List&lt;Cue&gt;</code>.</li> <li>SSA: Support <code>OutlineColour</code> style setting when <code>BorderStyle == 3</code> (i.e. <code>OutlineColour</code> sets the background of the cue) (<a href="https://github.com/google/ExoPlayer/issues/8435" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/8435/hovercard">#8435</a>).</li> <li>CEA-708: Parse data into multiple service blocks and ignore blocks not associated with the currently selected service number.</li> <li>Remove <code>RawCcExtractor</code>, which was only used to handle a Google-internal subtitle format.</li> </ul> </li> <li>Extractors: <ul> <li>Matroska: Parse <code>DiscardPadding</code> for Opus tracks.</li> <li>MP4: Parse bitrates from <code>esds</code> boxes.</li> <li>Ogg: Allow duplicate Opus ID and comment headers (<a href="https://github.com/google/ExoPlayer/issues/10038" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10038/hovercard">#10038</a>).</li> </ul> </li> <li>UI: <ul> <li>Fix delivery of events to <code>OnClickListener</code>s set on <code>StyledPlayerView</code> and <code>PlayerView</code>, in the case that <code>useController=false</code> (<a href="https://github.com/google/ExoPlayer/issues/9605" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/9605/hovercard">#9605</a>). Also fix delivery of events to <code>OnLongClickListener</code> for all view configurations.</li> <li>Fix incorrectly treating a sequence of touch events that exit the bounds of <code>StyledPlayerView</code> and <code>PlayerView</code> before <code>ACTION_UP</code> as a click (<a href="https://github.com/google/ExoPlayer/issues/9861" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/9861/hovercard">#9861</a>).</li> <li>Fix <code>PlayerView</code> accessibility issue where tapping might toggle playback rather than hiding the controls (<a href="https://github.com/google/ExoPlayer/issues/8627" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/8627/hovercard">#8627</a>).</li> <li>Rewrite <code>TrackSelectionView</code> and <code>TrackSelectionDialogBuilder</code> to work with the <code>Player</code> interface rather than <code>ExoPlayer</code>. This allows the views to be used with other <code>Player</code> implementations, and removes the dependency from the UI module to the ExoPlayer module. This is a breaking change.</li> <li>Don't show forced text tracks in the <code>PlayerView</code> track selector, and keep a suitable forced text track selected if "None" is selected (<a href="https://github.com/google/ExoPlayer/issues/9432" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/9432/hovercard">#9432</a>).</li> </ul> </li> <li>DASH: <ul> <li>Parse channel count from DTS <code>AudioChannelConfiguration</code> elements. This re-enables audio passthrough for DTS streams (<a href="https://github.com/google/ExoPlayer/issues/10159" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10159/hovercard">#10159</a>).</li> <li>Disallow passing <code>null</code> to <code>DashMediaSource.Factory.setCompositeSequenceableLoaderFactory</code>. Instances of <code>DefaultCompositeSequenceableLoaderFactory</code> can be passed explicitly if required.</li> </ul> </li> <li>HLS: <ul> <li>Fallback to chunkful preparation if the playlist CODECS attribute does not contain the audio codec (<a href="https://github.com/google/ExoPlayer/issues/10065" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10065/hovercard">#10065</a>).</li> <li>Disallow passing <code>null</code> to <code>HlsMediaSource.Factory.setCompositeSequenceableLoaderFactory</code>, <code>HlsMediaSource.Factory.setPlaylistParserFactory</code>, and <code>HlsMediaSource.Factory.setPlaylistTrackerFactory</code>. Instances of <code>DefaultCompositeSequenceableLoaderFactory</code>, <code>DefaultHlsPlaylistParserFactory</code>, or a reference to <code>DefaultHlsPlaylistTracker.FACTORY</code> can be passed explicitly if required.</li> </ul> </li> <li>Smooth Streaming: <ul> <li>Disallow passing <code>null</code> to <code>SsMediaSource.Factory.setCompositeSequenceableLoaderFactory</code>. Instances of <code>DefaultCompositeSequenceableLoaderFactory</code> can be passed explicitly if required.</li> </ul> </li> <li>RTSP: <ul> <li>Add RTP reader for MPEG4 (<a href="https://github.com/androidx/media/pull/35" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/35/hovercard">#35</a>).</li> <li>Add RTP reader for HEVC (<a href="https://github.com/androidx/media/pull/36" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/36/hovercard">#36</a>).</li> <li>Add RTP reader for AMR. Currently only mono-channel, non-interleaved AMR streams are supported. Compound AMR RTP payload is not supported. (<a href="https://github.com/androidx/media/pull/46" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/46/hovercard">#46</a>)</li> <li>Add RTP reader for VP8 (<a href="https://github.com/androidx/media/pull/47" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/47/hovercard">#47</a>).</li> <li>Add RTP reader for WAV (<a href="https://github.com/androidx/media/pull/56" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/56/hovercard">#56</a>).</li> <li>Fix RTSP basic authorization header. (<a href="https://github.com/google/ExoPlayer/issues/9544" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/9544/hovercard">#9544</a>).</li> <li>Stop checking mandatory SDP fields as ExoPlayer doesn't need them (<a href="https://github.com/google/ExoPlayer/issues/10049" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10049/hovercard">#10049</a>).</li> <li>Throw checked exception when parsing RTSP timing (<a href="https://github.com/google/ExoPlayer/issues/10165" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/10165/hovercard">#10165</a>).</li> <li>Add RTP reader for VP9 (<a href="https://github.com/androidx/media/pull/64" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/64/hovercard">#47</a>).</li> <li>Add RTP reader for OPUS (<a href="https://github.com/androidx/media/pull/53" data-hovercard-type="pull_request" data-hovercard-url="/androidx/media/pull/53/hovercard">#53</a>).</li> </ul> </li> <li>Data sources: <ul> <li>Rename <code>DummyDataSource</code> to <code>PlaceholderDataSource</code>.</li> <li>Workaround OkHttp interrupt handling.</li> </ul> </li> <li>Ad playback / IMA: <ul> <li>Decrease ad polling rate from every 100ms to every 200ms, to line up with Media Rating Council (MRC) recommendations.</li> </ul> </li> <li>FFmpeg extension: <ul> <li>Update CMake version to <code>3.21.0+</code> to avoid a CMake bug causing AndroidStudio's gradle sync to fail (<a href="https://github.com/google/ExoPlayer/issues/9933" data-hovercard-type="issue" data-hovercard-url="/google/ExoPlayer/issues/9933/hovercard">#9933</a>).</li> </ul> </li> <li>Remove deprecated symbols: <ul> <li>Remove <code>Player.Listener.onTracksChanged(TrackGroupArray, TrackSelectionArray)</code>. Use <code>Player.Listener.onTracksChanged(Tracks)</code> instead.</li> <li>Remove <code>Player.getCurrentTrackGroups</code> and <code>Player.getCurrentTrackSelections</code>. Use <code>Player.getCurrentTracks</code> instead. You can also continue to use <code>ExoPlayer.getCurrentTrackGroups</code> and <code>ExoPlayer.getCurrentTrackSelections</code>, although these methods remain deprecated.</li> <li>Remove <code>DownloadHelper</code> <code>DEFAULT_TRACK_SELECTOR_PARAMETERS_WITHOUT_VIEWPORT</code> and <code>DEFAULT_TRACK_SELECTOR_PARAMETERS</code> constants. Use <code>getDefaultTrackSelectorParameters(Context)</code> instead when possible, and <code>DEFAULT_TRACK_SELECTOR_PARAMETERS_WITHOUT_CONTEXT</code> otherwise.</li> <li>Remove constructor <code>DefaultTrackSelector(ExoTrackSelection.Factory)</code>. Use <code>DefaultTrackSelector(Context, ExoTrackSelection.Factory)</code> instead.</li> <li>Remove <code>Transformer.Builder.setContext</code>. The <code>Context</code> should be passed to the <code>Transformer.Builder</code> constructor instead.</li> </ul> </li> </ul> icbaker