History log of /frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragment.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/VideoSupportFragment.java
f37579e64940bfdd642cc315f6347d60b5addd69 15-Feb-2017 Dake Gu <dake@google.com> cleanup life cycle issue of PlaybackGlue in PlaybackFragment.

onDetachedFromHost should be called in onDestroy. A PlaybackGlue
should survive onDestroyView for the case setRetainInstance(true).
When configuration change, we should not need recreate PlaybackGlue.
Add a VideoFragmentTest.

Refactoring Tests to use SingleFragmentTestBase and remove
lots of redundant test Activity classes and layout files.

Changed test mp4 to be h264 Baseline profile so it can play
on API 19.

Bug: 35364233
Test: added VideoFragmentTest VideoSupportFragmentTest

Change-Id: I93bd8cbf449ac0fea4b6b76d10dc611c538283e8
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragment.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/VideoSupportFragment.java
2452cde3b8d7cbe62f6eb2fbcbcf9a02448d6891 13-Jan-2017 Dake Gu <dake@google.com> Switch from getActivity() to getContext()

In case we host the fragment outside activity.

Bug: 34276716
Test: leanback unit tests and SupportLeanbackDemo app

Change-Id: Ic8e16c038a8590c3359533d00b41f80dca917092
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragment.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/VideoSupportFragment.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/VideoSupportFragment.java
c2168ad5902b189f3c634e47cd956f99df17fbab 20-Oct-2016 susnata <susnata@google.com> Fixing the background color issue on PlaybackOverlayFragment.

Change-Id: Iead87bb57c9ecfd0f6d633cb6268441dae971b35
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragment.java
cc671dd3caac1d0cbf3f6999ab063c9ff1f297b2 18-Oct-2016 Dake Gu <dake@google.com> Add checkstyle:off flag

Test: None
Bug: 32243836

Change-Id: I5c28ee5b4623e25126518ceb99f17b5ee384cb76
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragment.java
2582363a9197a4f30277557330177e45b2aa0cd5 15-Oct-2016 susnata <susnata@google.com> Fix for NPE in PlaybackOverlayFragment (sample app).

Test: None
Change-Id: I29c4766c543f5ec50c2bc15352fa4d6e14822ba1
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/VideoSupportFragment.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/VideoSupportFragment.java