summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/MoviePlayer.java
Commit message (Collapse)AuthorAgeFilesLines
* Gallery: Do not set the background to null for video.Teng-Hui Zhu2012-10-301-21/+0
| | | | | | | | | This will fix screen corruption when exit while video complete or rotate while video playing. bug:7405595 Change-Id: I8b559390a284e5c850bc02a76add86c4de600144
* Add the UI elements for video trim activity.Teng-Hui Zhu2012-09-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Refactored the classes to support both the video play and trim. Now the common code for controller overlay is in CommonControllerOverlay, which is basically the same as the original MovieControllerOverlay without animation. Because in trimming, we don't want to hide all the controller. The specific animations are implemented in the sub-classes which are TrimControllerOverlay and MovieControllerOverlay. At the same time, TrimTimeBar extended TimeBar to support the extra trimming start scrubber and end scrubber. The interface between the timebar and the controllerOverlay are kept almost the same way, except adding the trimming info when necessary. With all these, the activity of TrimVideo now relied on the TrimTimeBar and TrimControllerOverlay. Similarily, the MovieActivity relied on the TimeBar and MovieControllerOverlay. 2. Hook the TrimVideo activity with the trim menu. Note that the icons are temporary for now, still need UX input on that. bug:7093055 Change-Id: Ib9bfbc090106744a569fce4c451ddffc0a2c699b
* Remove unused resources and fix some warnings.Owen Lin2012-08-301-0/+2
| | | | Change-Id: I075977150c7da7650e723e29406f24ae2e23ea97
* Remove dependencies on APIs only exist on newer platforms.Chih-Chung Chang2012-07-031-2/+6
| | | | Change-Id: I606a23863247454051dd183ddf6b77f6bc882685
* Don't reuse bitmap before HoneyComb.Owen Lin2012-07-031-2/+3
| | | | Change-Id: I0df9bf0a8f43e28ed25b436d4c584dc3ceb43c1d
* Avoid using View.SYSTEM_UI_FLAG_LOW_PROFILE.The Android Open Source Project2012-07-021-1/+1
| | | | | | | Use View.STATUS_BAR_HIDDEN instead. Bug:6706727 Change-Id: I0324a251b10eba11350f1813ee975d493bbcfafa
* Don't use Build.VERSION_CODES.Owen Lin2012-06-281-3/+2
| | | | | | | | Since they won't be available on old platform. bug: 6752318 Change-Id: I55a9e83dbf05b93c83c68cb31f6edcbc29793283
* Guard the use of SYSTEM_UI_FLAG_XXXX with TargetApiOwen Lin2012-06-221-27/+39
| | | | | | bug: 6698718 Change-Id: I6962f0128ce2bd57658b7f3b77d2bc150eff1f60
* Use View.setBackgroundDrawable instead of setBackground.Wu-cheng Li2012-06-211-1/+2
| | | | | | | | View.setBackground was added in API 16. Use setBackgroundDrawable instead. bug:6698428 Change-Id: I1346ba4c640ae98d76e333779b4620cdc48b6a3a
* Make SystemUI always consists with the contrller overlay.Owen Lin2012-06-191-10/+1
| | | | | Change-Id: I81f2a71fd38fc2588a9acb97b9d333978ffb5e48 fix: 6679875
* Add back the background when we show the action barOwen Lin2012-05-251-6/+43
| | | | | | | | | | | | | | | | This change fix the following UI issues: 1. We add a black backgorund when ActionBar shows and remove it when we hide the action bar. 2. Make the postion of video stable when opening 3. Prevent glitching when opening a video 4. Make it really full-screen. 5. Hide ControlOverlay at begining. bug:6519765 bug:6491674 Change-Id: I3ab033642df2c4a158b99385b02e3e967eebeabd
* Fix 6519765 Ghosting is seen when hiding the actionbar in fullscreen video ↵Ray Chen2012-05-231-8/+12
| | | | | | | | | | | playback mode b:6519765 Ensure SYSTEM_UI_FLAG_LAYOUT_STABLE and SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN is set in all states so ActionBarOverlayLayout can response to fitSystemWindows and onSystemVisibilityChange correctly. Change-Id: I41a33c9e7d21243bde6fa64e6cd1b709e7b04203
* Fix 6479216 Playing a video should go full-screen firstRay Chen2012-05-141-4/+19
| | | | | Change-Id: I7b1d2bd28531ec4fd4b65862122cf058ef69066e b: 6479216
* Fix 5661035: Accepts bluetooth keys while playing a video from gallery.Chih-Chung Chang2011-11-291-0/+50
| | | | Change-Id: I8174b1a97baad563d8bbd685b9aab3a8ca428ead
* Show control overlay when earphone is unpluggedOwen Lin2011-11-111-10/+6
| | | | | Change-Id: I3e259e66d318010a3f9e9b47b561a09b2db2b6a5 fix: 5563251
* Fix 5585254: Make system UI enter "low profile mode" while playing.Chih-Chung Chang2011-11-091-1/+2
| | | | Change-Id: I91f680871b7a965f6776cb017dcd825a587e5054
* Fix 5393669: New Player Control UI.Chih-Chung Chang2011-10-181-60/+131
| | | | Change-Id: I1aa310eee3b7715dbefea6b2f24e6f32481db49c
* Fix 5384679: Back button doesn't work in Video PlayerChih-Chung Chang2011-09-281-12/+16
| | | | Change-Id: Idde8778fc5643ef21fd4ad39ffbaa3c9e0c7d147
* Fix 5158468: Hide system bar when no play control is shown.Chih-Chung Chang2011-09-281-1/+24
| | | | Change-Id: Iada70c39440f19eec1cb00088531719bc1bb8328
* Pause the playback of video if the activity is resumed after 3 mins.Owen Lin2011-09-201-16/+50
| | | | | | | | | | | | | | | | fix: 5260232 Also keep the current playback position when the activity is resumed. Originally, we use the bookmark to keep the position. However, the bookmark will be ignored if 1.) The video duration is less than 2 mins, 2.) The video is just started (with 30sec), or 3.) The video is approching the end. I think resume should not limited by the above rules. And we did get some reports on this. (We mark them as WORK AS INTENTDED). Change-Id: Ib9ac359d7ccb6a0278777b0892f0821e16bbb745
* Initial code for Gallery2.Owen Lin2011-08-181-0/+291
fix: 5176434 Change-Id: I041e282b9c7b34ceb1db8b033be2b853bb3a992c