mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Clean up release notes for 2.12: Core part 2
PiperOrigin-RevId: 328549736
This commit is contained in:
parent
eba93b0d5e
commit
94cff6ba50
1 changed files with 53 additions and 37 deletions
|
|
@ -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
|
||||||
* Deprecate and rename `getPlaybackError` to `getPlayerError` for
|
no longer automatically forwarded to a `TextOutput` when it's added
|
||||||
consistency.
|
to a `SimpleExoPlayer`.
|
||||||
* Deprecate and rename `onLoadingChanged` to `onIsLoadingChanged` for
|
* Add `Player.DeviceComponent` to query and control the device volume.
|
||||||
consistency.
|
`SimpleExoPlayer` implements this interface.
|
||||||
* Deprecate `onSeekProcessed` because all seek changes happen instantly
|
* Deprecate and rename `getPlaybackError` to `getPlayerError` for
|
||||||
now and listening to `onPositionDiscontinuity` is sufficient.
|
consistency.
|
||||||
* Add `ExoPlayer.setPauseAtEndOfMediaItems` to let the player pause at the
|
* Deprecate and rename `onLoadingChanged` to `onIsLoadingChanged` for
|
||||||
end of each media item
|
consistency.
|
||||||
([#5660](https://github.com/google/ExoPlayer/issues/5660)).
|
* Deprecate `EventListener.onPlayerStateChanged`, replacing it with
|
||||||
* Split `setPlaybackParameter` into `setPlaybackSpeed` and
|
`EventListener.onPlayWhenReadyChanged` and
|
||||||
`AudioComponent.setSkipSilenceEnabled` with callbacks
|
`EventListener.onPlaybackStateChanged`.
|
||||||
`onPlaybackSpeedChanged` and
|
* Deprecate `EventListener.onSeekProcessed` because seek changes now
|
||||||
`AudioListener.onSkipSilenceEnabledChanged`.
|
happen instantly and listening to `onPositionDiscontinuity` is
|
||||||
* Allow to explicitly send `PlayerMessage`s at the end of a stream.
|
sufficient.
|
||||||
* Add `getCurrentMediaItem` to `Player`.
|
* `ExoPlayer`:
|
||||||
* Add `Player.DeviceComponent` and implement it for `SimpleExoPlayer` so
|
* Add `setMediaSource(s)` and `addMediaSource(s)` to `ExoPlayer`, for
|
||||||
that the device volume can be controlled by player.
|
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)).
|
||||||
|
* Allow passing `C.TIME_END_OF_SOURCE` to `PlayerMessage.setPosition`
|
||||||
|
to send a `PlayerMessage` at the end of a stream.
|
||||||
|
* `SimpleExoPlayer`:
|
||||||
|
* `SimpleExoPlayer` implements the new `MediaItem` based playlist API,
|
||||||
|
using a `MediaSourceFactory` to convert `MediaItem` instances to
|
||||||
|
playable `MediaSource` instances. A `DefaultMediaSourceFactory` is
|
||||||
|
used by default. `Builder.setMediaSourceFactory` allows setting a
|
||||||
|
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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue