History log of /frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoFragmentGlueHost.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3bcad88cbf4488e747d84893c35f2351b8f84afe 21-Mar-2017 Dake Gu <dake@google.com> leanback: new transport controls

PlaybackTransportRowPresenter is the new UX.

PlaybackTransportControlGlue extends from PlaybackGlue.
PlaybackTransportControlGlue is backed by PlayerWrapper.
PlaybackWrapper wraps underlying media player,
concrete example: MediaPlayerWrapper.

PlaybackSeekDataProvider defines the data interface that app
provides to leanback.
PlaybackUI defines seeking interaction between
PlaybackTransportControlGlue, PlaybackGlueHost and the presenter.

more:
- added progress bar support for media loading.
- fixed vertical video proportion and support video size change.

Test: PlaybackTransportControlGlueTest
PlaybackTransportRowPresenterTest.
Updated SampleVideoFragment.

Bug: 33751556

Change-Id: I1d39c6f65d04121f8cb9c25fb7ce103e32355190
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoFragmentGlueHost.java
e1cde4d4ac42a6e9e16aad2b4df970c7c7d0771c 21-Dec-2016 Dake Gu <dake@google.com> Leanback: parallax and details video API refactoring

There are too many new concpets introduced when we create
multiple building blocks around parallax. This CL tries to
get rid of some classes.

1. Remove class ParallaxSource, integrated into Parallax.
So there is no more setSource()/getSource().

2. Replace DetailsParallaxManager with DetailsParallax. It is no
longer a manager pattern but DetailsParallax is a direct
subclass of Parallax.

3. Replace DetailsBackgroundParallaxHelper with
DetailsParallaxDrawable which is a direct subclass of
CompositeDrawble. No more helper concept.

4. remove the glue creation API from DetailsFragment, those
are not necessary and app can do it on the side.

The summary of new classes:
1. Parallax, tracks multiple UI events and perform multiple
ParallaxEffects on ParallaxTargets. RecyclerViewParallax is a
subclass of Parallax that monitors RecyclerView child positions.

2. DetailsParallax is a subclass of RecyclerViewParallax,
DetailsFragment holds the DetailsParallax object and is responsible
to attach it to VerticalGridView and sync with Transition animation.
DetailsParallax is shared by both background bitmap and video.

3. Created a DetailsFragmentBackgroundController class responsible
for parallax background and embedded video playing.

Bug: 33750080
Bug: 33751156
Test: all existing leanback tests

Change-Id: Iec81a444d5d4fbeb675f16222b09b407acf007a2
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoFragmentGlueHost.java
95ac470f2bbea06114a64906d95c0da7d9412db0 29-Nov-2016 Dake Gu <dake@google.com> API review: move PlaybackGlue classes into media package

Move PlaybackGlue, PlaybackControlGlue to new media package.
Move inner class PlaybackGlueHost to top level.

keep/deprecate old class PlaybackControlGlue, and make it
extends from the new media.PlaybackControlGlue class.

Renamed HostLifeCycleCallback to HostCallback.

Refactoring method name of media.PlaybackControlGlue:
createControlsRowAndPresenter -> onCreateControlsRowAndPresenter
createPrimaryActions -> onCreatePrimaryActions
added onCreateSecondaryActions.
The old methods still exist the app.PlaybackControlGlue.

Lots of javadocs.

Bug: 33002776
Test: PlaybackOverlayFragmentTest, SupportLeanbackDemos

Change-Id: Ic8fa29dd2191222977f663773d3cde038345109a
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoFragmentGlueHost.java
fe4317c9f0492c67e2ee48e3d135f649f5f1fc5c 29-Nov-2016 Dake Gu <dake@google.com> leanback: hide embedded video, parallax, CompositeDrawable

Hide the new classes/methods before finalizing APIs.

Change-Id: I3b6660a60457821f9e5e7aa40b5e98f16fb0baff
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoFragmentGlueHost.java
aa49439ba6276137f94fcdc1bf4f69b78833dad6 01-Nov-2016 susnata <susnata@google.com> Adding VideoFragment sample to SupportLeanbackDemo app.

Test: None
Change-Id: I1841fa357825bf7ab719a236b47e04aa21a72e6b
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoFragmentGlueHost.java
4702556bfd15c9819a7b2af759aee0f719cd631f 11-Oct-2016 susnata <susnata@google.com> Adding video player to DetailsFragment.

Added VideoFragment for rendering videos to DetailsFragment.
Video playback will be configured by DetailsFragmentVideoHelper.
Parallax functionality will continue to be configured by
DetailsBackgroundParallaxHelper. ParallaxManager will be shared
between the helpers for running animations based on the position
of DetailsOverview view.

Updated LeanbackSupportDemo(NewDetailsFragment) sample code to
use the video player.

Test: None
Change-Id: Iaeee2caf3b7f3567e4a53ad76574db9adaa32ba0
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoFragmentGlueHost.java