tonihei
17050e8b59
Fix the position of IntDefs to match TYPE_USE
...
#minor-release
PiperOrigin-RevId: 427131569
2022-02-08 12:34:06 +00:00
olly
2db8807aac
Revert of b19ced30c4
...
PiperOrigin-RevId: 426996878
2022-02-08 12:33:53 +00:00
ibaker
b19ced30c4
Fix the position of IntDefs to match TYPE_USE
...
#minor-release
PiperOrigin-RevId: 426855255
2022-02-07 11:17:31 +00:00
bachinger
bbec6bcec2
Make mapping of STATE_IDLE configurable
...
PiperOrigin-RevId: 413922123
2021-12-06 12:51:04 +00:00
bachinger
ff9585f153
Provide an opt-out from clearing media items on stop
...
After removing the deprecated call to player.stop(/* reset= */ true) and instead using two calls to the player, overridding stop in a ForwardingPlayer does not help to avoid clearing the player. To remove the deprecation we need an option so that users who want not to clear the player have a way to do so.
PiperOrigin-RevId: 411518090
2021-11-26 15:00:59 +00:00
olly
8fb0af83f5
Use stop(boolean) in MediaSessionConnector
2021-11-08 10:08:24 +00:00
ibaker
7de079493c
Migrate usages of Window-based Player methods
...
Where this introduced an inconsistency (e.g. assigning to something
called `windowIndex`), I generally renamed the transitive closure of
identifiers to maintain consistency (meaning this change is quite
large). The exception is code that interacts with Timeline and Window
directly, where sometimes I kept the 'window' nomenclature.
#minor-release
PiperOrigin-RevId: 407040052
2021-11-02 12:08:18 +00:00
kimvde
5ef00f0e96
Remove deprecated ControlDispatcher
...
The possibilities to set a ControlDispatcher have been removed in
<unknown commit> so that the ControlDispatcher is always a
DefaultControlDispatcher.
PiperOrigin-RevId: 403327092
2021-10-15 12:45:39 +01:00
kimvde
746ad2e6aa
Remove deprecated ControlDispatcher from API surface
...
PiperOrigin-RevId: 403101980
2021-10-14 17:03:23 +01:00
ibaker
ee71c8387c
Migrate usages of deprecated Player COMMAND_ constants
...
PiperOrigin-RevId: 401292817
2021-10-06 21:19:37 +01:00
ibaker
ad99a44083
Add empty sdk-version node to all AndroidManifest.xml files
...
PiperOrigin-RevId: 397772916
2021-09-21 14:17:33 +01:00
kimvde
01613a2e55
Remove usages of deprecated SimpleExoPlayer.Builder
...
PiperOrigin-RevId: 390130681
2021-08-11 17:34:19 +01:00
kimvde
b33496aeae
Deprecate ControlDispatcher in MediaSessionConnector
...
PiperOrigin-RevId: 386227630
2021-07-23 14:07:55 +01:00
kimvde
85f3af8864
Use Player commands to enable UI buttons
...
PiperOrigin-RevId: 384910388
2021-07-15 14:45:44 +01:00
kimvde
7e6d82237a
Rename MEDIA_ITEM to WINDOW is seek commands
...
This is more correct and is consistent with the Javadoc.
PiperOrigin-RevId: 383808096
2021-07-13 09:56:42 +01:00
bachinger
c0051c502a
Remove temporary workaround for missing ACTION_SET_PLAYBACK_SPEED
...
PiperOrigin-RevId: 383390096
2021-07-09 09:13:58 +01:00
olly
6c05a469cb
Add MediaSessionConnector#setDispatchUnsupportedActionsEnabled(boolean)
...
This enables actions that are not advertised by the MediaSession to be dispatched either way.
PiperOrigin-RevId: 379765015
2021-06-21 22:00:23 +01:00
aquilescanta
146648ce22
Make MediaSessionConnector depend on PlaybackException
...
PiperOrigin-RevId: 377529353
2021-06-08 12:57:38 +01:00
bachinger
5595c48739
Optionally deduplicate updating MediaMetadataCompat
...
PiperOrigin-RevId: 372146631
2021-05-06 13:33:44 +01:00
bachinger
4c1a294b2e
Format Java source files
...
PiperOrigin-RevId: 372127633
2021-05-06 13:32:25 +01:00
olly
a264a0a04f
Remove deprecated UI methods
...
PiperOrigin-RevId: 371809078
2021-05-04 11:18:26 +01:00
krocard
3dc6cf6bec
Deprecate EventListener in favor of Listener
...
#minor-release
PiperOrigin-RevId: 371348520
2021-04-30 18:56:35 +01:00
gyumin
1ad56e96c2
Add mediaId to PlaybackStateCompat extras
...
It provides a way to associate PlaybackState with the current media
item.
Startblock:
<unknown commit> is submitted
PiperOrigin-RevId: 368354775
2021-04-14 11:40:52 +01:00
kimvde
6c9f9f9def
Add available command to seek in current item
...
PiperOrigin-RevId: 362972550
2021-03-15 19:15:19 +00:00
kimvde
851c915e38
Add COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM to available commands
...
PiperOrigin-RevId: 362036291
2021-03-12 10:41:51 +00:00
kimvde
32e3f15e8f
Fix conditions to enable UI actions
...
- Ensure consistency between (Styled)PlayerControlView,
PlayerNotificationManager, TimelineQueueNavigator and
DefaultControlDispatcher.
- Handle the case where a live stream has ended when enabling previous
and next actions (window.isLive() is true and window.isDynamic is
false in that case)
#minor-release
PiperOrigin-RevId: 359063793
2021-02-24 15:46:11 +00:00
bachinger
45b0c98128
Make media session extension depend on common module only
...
PiperOrigin-RevId: 359001281
2021-02-23 12:30:41 +00:00
olly
94a4b905c9
Make additional modules depend only on common
...
ControlDispatcher and DefaultControlDispatcher also need
to move to common for the UI module. As does PlaybackPreparer,
although that will be removed entirely in a future release.
PiperOrigin-RevId: 356467394
2021-02-09 13:59:41 +00:00
bachinger
2ee40270e5
Support setPlaybackSpeed(float) with the MediaSessionConnector
...
Issue: #8229
#exofixit
PiperOrigin-RevId: 346968046
2020-12-14 10:17:53 +00:00
bachinger
58e01671e1
Use onEvents in MediaSessionConnector to avoid multiple updates.
...
#exofixit
PiperOrigin-RevId: 344065556
2020-11-27 11:06:02 +00:00
tonihei
f13ffb4390
Rollback of 5d9c2d7b6a
...
*** Original commit ***
Suppress warnings in preparation for Checker Framework 3.7.1 upgrade.
***
PiperOrigin-RevId: 343086403
2020-11-18 18:40:30 +00:00
olly
3c91ba14b3
Suppress warnings in preparation for Checker Framework 3.7.1 upgrade.
...
PiperOrigin-RevId: 343003559
2020-11-18 18:40:17 +00:00
bachinger
b03df4e8b5
Add dispatchPrepare(player) to ControlDispatcher
...
Issue: #7882
PiperOrigin-RevId: 341394254
2020-11-11 09:49:32 +00: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
ibaker
fda3b3d8ec
Use static imports for methods that make sense without their class name
...
PiperOrigin-RevId: 323349585
2020-07-27 23:59:52 +01:00
tonihei
7d66865d20
Rollback of 63ae4cc54b
...
*** Original commit ***
Rollback of 6ae472243f
*** Original commit ***
PiperOrigin-RevId: 317331407
2020-06-23 11:06:22 +01:00
olly
63ae4cc54b
Rollback of 6ae472243f
...
*** Original commit ***
Rename Util methods to clarify which Looper is used.
The method name didn't clarify that either the main or current
Looper is used.
***
PiperOrigin-RevId: 317283606
2020-06-23 11:05:56 +01:00
tonihei
6ae472243f
Rename Util methods to clarify which Looper is used.
...
The method name didn't clarify that either the main or current
Looper is used.
PiperOrigin-RevId: 317276561
2020-06-23 11:05:46 +01:00
Dennis Fölster
8d2406ece3
Keep the paused state during buffering without playWhenReady.
...
The PlaybackStateCompat#STATE_BUFFERING expects the playback to begin
once enough data has been buffered. This is however not the case if
playWhenReady is not set on the exoplayer.
2020-05-12 14:43:47 +02:00
bachinger
1699ab0d18
Add missing nullable annotations
...
The MediaSessionConnector gets a Bundle passed to the MediaSession.Callback
from the framework which can be null. This needs to be properly annotated
with @Nullable.
Issue: #7234
PiperOrigin-RevId: 307822764
2020-04-27 10:40:01 +01:00
bachinger
527563da31
remove deprecated usage of PlaybackParameter
...
Removes usage of PlaybackParameters where it seems to be trivial.
PiperOrigin-RevId: 300435199
2020-03-19 00:45:18 +00:00
bachinger
68398b708e
remove pitch field from PlaybackParameters
...
PiperOrigin-RevId: 294936851
2020-02-17 17:12:19 +00:00
bachinger
016bacd178
remove deprecated usage of onPlayerStateChanged
...
PiperOrigin-RevId: 294181886
2020-02-11 17:10:56 +00:00
bachinger
c02933ac0a
rename getPlaybackError
...
PiperOrigin-RevId: 294074348
2020-02-11 17:10:41 +00:00
bachinger
e1c48515eb
add next, previous, fastForward and rewind to ControlDispatcher
...
Issue: #6926 , #6934
PiperOrigin-RevId: 293315532
2020-02-11 17:07:52 +00:00
bachinger
2adec8d984
annotate nullabilty of CommandReceiver
...
Issue: #6938
PiperOrigin-RevId: 292415853
2020-01-31 17:52:08 +00:00
ibaker
4c4cabdfac
(partial) Rollback of 880b879e8c
...
*** Original commit ***
Suppress warnings emitted by Checker Framework version 2.11.1
More information:
https://docs.google.com/document/d/16tpK6aXqN68PvTyvt4siM-m7f0NXi_8xEeitLDzr8xY/edit?usp=sharing
Tested:
TAP train for global presubmit queue
http://test/OCL:278152710:BASE:278144052:1572760370662:22459c12
***
PiperOrigin-RevId: 284738438
2019-12-10 12:37:26 +00:00
bachinger
6c10c94f94
MediaSessionConnector: Support ACTION_SET_CAPTIONING_ENABLED
...
PiperOrigin-RevId: 283546707
2019-12-04 10:00:04 +00:00
bachinger
734b4ad9c8
document media button handling prior to API level 21
...
ISSUE: #6545
PiperOrigin-RevId: 281032120
2019-11-18 17:54:07 +00:00
olly
46d58b5eda
Add missing IntDef case in switch
...
PiperOrigin-RevId: 278332276
2019-11-05 16:17:54 +00:00