olly
e1c3da2a74
Set 2.12 release date & merge in some recent changes
...
PiperOrigin-RevId: 328747057
2020-08-27 22:30:28 +01:00
Corentin Zuber
50582417cb
Authorize multiple preffered language and text
2020-08-27 16:50:28 +02:00
aquilescanta
91b3aad063
Make ExoPlayer.getPlaybackLooper never return null
...
Issue: #7807
PiperOrigin-RevId: 328726966
2020-08-27 14:41:42 +00:00
tonihei
237cb9df54
Merge pull request #7804 from yoobi:TrackSelectionDialogBuilderTheme
...
PiperOrigin-RevId: 328726246
2020-08-27 14:41:28 +00:00
Oliver Woodman
cfb429d131
Merge branch 'release-v2' into dev-v2
2020-08-27 12:09:17 +01:00
andrewlewis
74c493f51e
Add back support for setting audio pitch
...
To play slow motion streams where the audio has been recorded at
slower speeds, it is necessary to be able to resample (rather than
time-stretch) the audio. This change undeprecates back the previously
deprecated PlaybackParameters class to allow apps to set pitch.
PiperOrigin-RevId: 328703116
2020-08-27 12:06:41 +01:00
Oliver Woodman
8b3422ba54
Merge pull request #7800 from TakuSemba:apply-output-surface-workaround
...
PiperOrigin-RevId: 328696935
2020-08-27 12:06:30 +01:00
bachinger
feb4cce2b2
Enable nullness test for CachedContent/CachedContentIndex
...
PiperOrigin-RevId: 328551668
2020-08-27 12:06:20 +01:00
olly
94cff6ba50
Clean up release notes for 2.12: Core part 2
...
PiperOrigin-RevId: 328549736
2020-08-27 12:06:11 +01:00
olly
eba93b0d5e
Clean up release notes for 2.12: Core part 1
...
PiperOrigin-RevId: 328549086
2020-08-27 12:06:01 +01:00
Yoni Obadia
c9b4b98103
Review: Fix initSortedTrack to keep all groups in the TrackGroupArray
2020-08-27 12:19:56 +02:00
Yoni Obadia
551b6d65ae
Review: Simplify getSortedIndexFromInitialTrackGroup
2020-08-27 10:15:17 +02:00
Yoni Obadia
ed58280d23
Review: Update according to review
2020-08-27 09:46:30 +02:00
Yoni Obadia
0176422f0b
Review: Update according to review
2020-08-26 19:07:47 +02:00
kim-vde
bcad98b9ff
Merge pull request #7667 from willtrking:dev-v2-mkv-dovi
...
PiperOrigin-RevId: 328536503
2020-08-26 16:40:35 +01:00
bachinger
d34889d7b5
Add version to README
...
Issue: #7801
PiperOrigin-RevId: 328529525
2020-08-26 16:40:23 +01:00
tonihei
e16cd239ea
Only report 5G for SDK 29+.
...
PiperOrigin-RevId: 328524230
2020-08-26 16:40:12 +01:00
claincly
20def699ad
Fix test failure due to recent change to ShadowAudioTrack
...
<unknown commit> used a new API provided in API29+, changing this test's config to
use the newer SDK version.
TAP:https://test.corp.google.com/ui#d=targetZoomout&flags=CAMQAlhg&t=//third_party/java_src/android_libs/exoplayer/v2/library/core/src/test:test_com/google/android/exoplayer2/audio/MediaCodecAudioRendererTest
PiperOrigin-RevId: 328344926
2020-08-26 16:40:02 +01:00
ibaker
74f7ec729c
Add playback tests for TS and MP4 samples that run on Robolectric
...
This commit introduces the infrastructure classes, and a couple of
illustrative usages.
PiperOrigin-RevId: 328301593
2020-08-26 16:39:49 +01:00
tonihei
a6ee778cfe
Remove unnecessary ID suffix.
...
PiperOrigin-RevId: 328154018
2020-08-26 16:39:39 +01:00
tonihei
996e58973d
Make renderer flush when setting pause-at-end more targeted.
...
We currently always reset everything if playingPeriod != readingPeriod.
However, this is only needed when the pausing is actually required, i.e.,
if the feature is enabled and we are in the last period of the window.
PiperOrigin-RevId: 328141242
2020-08-26 16:39:29 +01:00
andrewlewis
4b0e39e4b9
Add an event for the audio position advancing
...
Currently the audio renderer can become ready before the AudioTrack
actually has enough data to play something, which means that the
player may transition to the ready state before audio starts
playing. This makes the player's current state transition not very
useful for detecting when audio actually starts playing.
This change adds a new event to notify apps when the audio position
is increasing after a pause or seek/flush/reset event, and includes
an estimate of the system time at which audio playout started.
Issue: #7577
PiperOrigin-RevId: 327810040
2020-08-26 16:39:18 +01:00
kimvde
6960dde8a8
Add nullness annotations to FragmentedMp4Extractor
...
PiperOrigin-RevId: 327797428
2020-08-26 16:39:07 +01:00
andrewlewis
d881a675d0
Check output format change timing after API 30
...
PiperOrigin-RevId: 327795332
2020-08-26 16:38:57 +01:00
Yoni Obadia
425bd2d801
improvement: get already existing sortingTrackGroups if exists
2020-08-26 14:31:44 +02:00
Yoni Obadia
88d7587ca7
dev: add setting theme for TrackSelectionDialogBuilder
2020-08-26 11:40:48 +02:00
takusemba
3f5c584574
apply output surface workaround for F02H, F03H
2020-08-25 14:53:57 +09:00
Oliver Woodman
e822196336
Merge pull request #7784 from google/dev-v2-r2.11.8
...
r2.11.8
2020-08-24 18:17:48 +01:00
Yoni Obadia
181676d950
dev: adding sorting for TrackSelectionDialog and TrackSelectionDialogBuilder
2020-08-24 15:13:21 +02:00
olly
4c894c80ba
Clean up release notes for 2.12: Analytics
...
PiperOrigin-RevId: 327791211
2020-08-21 12:55:37 +01:00
olly
505511a761
Clean up release notes for 2.12: Audio
...
PiperOrigin-RevId: 327790491
2020-08-21 12:55:37 +01:00
andrewlewis
0d8f016d33
Assume software decoder fix will happen before API 31 too
...
PiperOrigin-RevId: 327782731
2020-08-21 12:55:37 +01:00
bachinger
e55b345595
Make all media source factories create a drm session
...
PiperOrigin-RevId: 327691347
2020-08-21 12:55:14 +01:00
samrobinson
7abece9a39
Add a software decoder check to MediaFormat change GTS test.
...
PiperOrigin-RevId: 327620772
2020-08-21 12:51:42 +01:00
aquilescanta
a673eec845
Make Format's constructor take the Builder as argument
...
Which saves the large parameter list.
PiperOrigin-RevId: 327619725
2020-08-21 12:51:33 +01:00
andrewlewis
e2fc5c2190
Fix EventLogger audio underrun logging
...
PiperOrigin-RevId: 327610950
2020-08-21 12:51:23 +01:00
insun
74f788afc3
Improve a11y in minimal mode
...
Previously, the fullscreen button and timebar has been overlapped in minimal mode
PiperOrigin-RevId: 327606728
2020-08-21 12:51:15 +01:00
olly
185be99d61
Split trivial changes from 2.12 into a 2.11.8 release
...
PiperOrigin-RevId: 327599049
2020-08-21 12:51:05 +01:00
jaewan
25c26cdbb4
Return state masked Player values from SessionPlayerConnector
...
Before this CL, SessionPlayerConnector getters had returned
UNKNOWN_TIME in idle state. It was because
SessionPlayerConnector had followed AndroidX media2
MediaPlayer's behavior, which was the baseline code of the
SessionPlayerConnector.
With this CL, SessionPlayerConnector getters directly return
underlying Player's value, rather than considering calls
in IDLE state as an exception and fallbacks to the default
UNKNOWN_TIME.
PiperOrigin-RevId: 327420940
2020-08-21 12:50:56 +01:00
ibaker
3af82b2a8b
Skip WV tests on devices where WV is unsupported
...
PiperOrigin-RevId: 327392056
2020-08-21 12:50:47 +01:00
ibaker
b85ff574a9
Relax ExoHostedTest#MAX_PLAYING_TIME_DISCREPANCY_MS
...
PiperOrigin-RevId: 327391755
2020-08-21 12:50:38 +01:00
jaewan
e965ed92f8
Rename DefaultMediaItemProvider to MediaIdMediaItemProvider
...
PiperOrigin-RevId: 327307736
2020-08-21 12:50:29 +01:00
olly
8c5af10ab0
Don't pass INDEX_UNSET to ExoPlayer seek methods
...
It's not valid, and will cause IllegalSeekPositionException to be thrown
PiperOrigin-RevId: 327301325
2020-08-21 12:50:20 +01:00
olly
ee743870d8
Media2 extension: Make DefaultMediaItemConverter more useful
...
- Remove throwing of IllegalStateException
- Make it non-final so additional metadata can be more easily filled in
PiperOrigin-RevId: 327292208
2020-08-21 12:50:11 +01:00
jaewan
bddb29c431
Ban FileMediaItem and CallbackMediaItem
...
PiperOrigin-RevId: 327268964
2020-08-21 12:50:01 +01:00
jaewan
2299c4e609
Update SessionPlayerConnector documentation
...
ExoPlayer is now the trusted source of playlist and can be
used by other components without breaking
SessionPlayerConnector's cached playlist.
PiperOrigin-RevId: 327266929
2020-08-21 12:49:52 +01:00
jaewan
4782e227eb
Rename androidX MediaItem to media2 MediaItem
...
In AndroidX, both media1 and media2 have MediaItem classes,
so change the naming to remove ambiguity.
PiperOrigin-RevId: 327261260
2020-08-21 12:49:43 +01:00
jaewan
e6d36e8b92
Add SessionPlayerConnector ctor that use DefaultMediaItemConverter
...
PiperOrigin-RevId: 327258863
2020-08-21 12:49:34 +01:00
jaewan
b39721f4b5
Make ExoPlayer as the trusted source of playlist
...
Playlist can now be obtained directly from Timeline windows
in any state. So make ExoPlayer as the trusted source of
playlist, instead of SessionPlayerConnector.
PlayerWrapper still need to keep the list of media items.
It's used to detect whether the Timeline change is caused by
changes in media items or not, and only notify
SessionPlayer.PlayerCallback#onPlaylistChanged() only when
the playlist is really changed.
PiperOrigin-RevId: 327231820
2020-08-21 12:49:25 +01:00
aquilescanta
79a846eb5e
Fix check in placeholder session acquisition
...
PiperOrigin-RevId: 327223824
2020-08-21 12:49:16 +01:00