Commit 94cff6ba by olly Committed by Oliver Woodman

Clean up release notes for 2.12: Core part 2

PiperOrigin-RevId: 328549736
parent eba93b0d
Showing with 48 additions and 32 deletions
...@@ -12,43 +12,59 @@ ...@@ -12,43 +12,59 @@
### 2.12.0 (not yet released - targeted for 2020-08-TBD) ### ### 2.12.0 (not yet released - targeted for 2020-08-TBD) ###
* Core library: * Core library:
* Added `TextComponent.getCurrentCues` because the current cues are no * `Player`:
longer forwarded to a new `TextOutput` in `SimpleExoPlayer` * Add a top level playlist API based on a new `MediaItem` class
automatically. ([#6161](https://github.com/google/ExoPlayer/issues/6161)). The
* Add additional options to `SimpleExoPlayer.Builder` that were previously new methods for playlist manipulation are `setMediaItem(s)`,
only accessible via setters. `addMediaItem(s)`, `moveMediaItem(s)`, `removeMediaItem(s)` and
* Add opt-in to verify correct thread usage with `clearMediaItems`.
`SimpleExoPlayer.setThrowsWhenUsingWrongThread(true)` * Add `getCurrentMediaItem` for getting the currently playing item
([#4463](https://github.com/google/ExoPlayer/issues/4463)). in the playlist.
* Add playlist API * Add `EventListener.onMediaItemTransition` to report when
([#6161](https://github.com/google/ExoPlayer/issues/6161)). playback transitions from one item to another in the playlist.
* Add `play` and `pause` methods to `Player`. * Add `play` and `pause` convenience methods. They are equivalent to
* Add `Player.getCurrentLiveOffset` to conveniently return the live `setPlayWhenReady(true)` and `setPlayWhenReady(false)` respectively.
offset. * Add `getCurrentLiveOffset` for getting the offset of the current
* Add `Player.EventListener.onPlayWhenReadyChanged` with reasons. playback position from the live edge of a live stream.
* Add `Player.EventListener.onPlaybackStateChanged` and deprecate * Add `getTrackSelector` for getting the `TrackSelector` used by the
`Player.EventListener.onPlayerStateChanged`. player.
* Add `Player.EventListener.onMediaItemTransition` with reasons. * Add `AudioComponent.setAudioSessionId` to set the audio session ID.
* Add `Player.setAudioSessionId` to set the session ID attached to the This method is also available on `SimpleExoPlayer`.
`AudioTrack`. * Add `TextComponent.getCurrentCues` to get the current cues. This
* Add `Player.getTrackSelector`. method is also available on `SimpleExoPlayer`. The current cues are
no longer automatically forwarded to a `TextOutput` when it's added
to a `SimpleExoPlayer`.
* Add `Player.DeviceComponent` to query and control the device volume.
`SimpleExoPlayer` implements this interface.
* Deprecate and rename `getPlaybackError` to `getPlayerError` for * Deprecate and rename `getPlaybackError` to `getPlayerError` for
consistency. consistency.
* Deprecate and rename `onLoadingChanged` to `onIsLoadingChanged` for * Deprecate and rename `onLoadingChanged` to `onIsLoadingChanged` for
consistency. consistency.
* Deprecate `onSeekProcessed` because all seek changes happen instantly * Deprecate `EventListener.onPlayerStateChanged`, replacing it with
now and listening to `onPositionDiscontinuity` is sufficient. `EventListener.onPlayWhenReadyChanged` and
* Add `ExoPlayer.setPauseAtEndOfMediaItems` to let the player pause at the `EventListener.onPlaybackStateChanged`.
end of each media item * Deprecate `EventListener.onSeekProcessed` because seek changes now
happen instantly and listening to `onPositionDiscontinuity` is
sufficient.
* `ExoPlayer`:
* Add `setMediaSource(s)` and `addMediaSource(s)` to `ExoPlayer`, for
adding `MediaSource` instances directly to the playlist.
* Add `ExoPlayer.setPauseAtEndOfMediaItems` to let the player pause at
the end of each media item
([#5660](https://github.com/google/ExoPlayer/issues/5660)). ([#5660](https://github.com/google/ExoPlayer/issues/5660)).
* Split `setPlaybackParameter` into `setPlaybackSpeed` and * Allow passing `C.TIME_END_OF_SOURCE` to `PlayerMessage.setPosition`
`AudioComponent.setSkipSilenceEnabled` with callbacks to send a `PlayerMessage` at the end of a stream.
`onPlaybackSpeedChanged` and * `SimpleExoPlayer`:
`AudioListener.onSkipSilenceEnabledChanged`. * `SimpleExoPlayer` implements the new `MediaItem` based playlist API,
* Allow to explicitly send `PlayerMessage`s at the end of a stream. using a `MediaSourceFactory` to convert `MediaItem` instances to
* Add `getCurrentMediaItem` to `Player`. playable `MediaSource` instances. A `DefaultMediaSourceFactory` is
* Add `Player.DeviceComponent` and implement it for `SimpleExoPlayer` so used by default. `Builder.setMediaSourceFactory` allows setting a
that the device volume can be controlled by player. custom factory.
* Add additional options to `Builder` that were previously only
accessible via setters.
* Add opt-in to verify correct thread usage with
`setThrowsWhenUsingWrongThread(true)`
([#4463](https://github.com/google/ExoPlayer/issues/4463)).
* `Format`: * `Format`:
* Add a `Builder` and deprecate all `create` methods and most * Add a `Builder` and deprecate all `create` methods and most
`Format.copyWith` methods. `Format.copyWith` methods.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment