summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/MoviePlayer.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Gallery2: Pause music playback while playing video"Linux Build Service Account2015-01-201-0/+9
|\
| * Gallery2: Pause music playback while playing videoSurajit Podder2015-01-111-0/+9
| | | | | | | | | | | | | | | | Add changes to send pause command to music service from MoviePlayer. Change-Id: I3532ecee34f197fdca04f678cc18ae542794ae83 CRs-Fixed: 765206
* | Gallery2: fix the video playback after system language changedLi Sun2015-01-121-0/+3
|/ | | | | | | | | | | - when system language changed, the activity would be destroyed and recreated. The subobject MoviePlayer would be also recreated. But in this case, MoviePlayer doesn't set some parameters like the URI, duration and etc. It cause the video playback failed. - add the related function calls to restart the video playback. Change-Id: I8dc011216bb5bcee8903ba3873ce37582927af45 CRs-Fixed: 597934
* MoviePlayer: prevent resume dialog for live streamingkaiyiz2014-12-231-3/+10
| | | | | | | | | | The player should not offer "resume playing" dialog for live streaming when user navigates back to it. (cherry picked from commit 3a16d7f019fc77c54ce38a137507ba5e5ac1ae8b) Change-Id: I7fe6727ab884056a9135d1fa5ab21125570f70a3 CRs-Fixed: 637212
* Merge 8d0bb42dd2cfee13a2ab639e7b8a3a86efdcb318 on remote branchLinux Build Service Account2014-12-031-0/+6
|\ | | | | | | Change-Id: Ibbf2711e54b45de0509bd77fa94fd840e691f795
| * Revert "Gallery2: reduce post delay time"Surajit Podder2014-11-171-1/+1
| | | | | | | | | | | | | | This reverts commit a062a4a3b567553622aa1e3b4de393917225b8b3. CRs-Fixed: 756218 Change-Id: I22eee7e21b0eb4a7900ae7db886b9a3cab56fe23
| * Merge "MoviePlayer: Flush UI display after suspend/resume"Linux Build Service Account2014-11-081-0/+6
| |\
| | * MoviePlayer: Flush UI display after suspend/resumeHui (QRD) Yu2014-11-051-0/+6
| | | | | | | | | | | | | | | | | | | | | - Post mPlayingCheck again in onResume() for HTTP streaming - To disable the "Loading" pattern after resume Change-Id: Ic0e5bd0bb0710d76f41a40249022526b4d4e71db
| * | Gallery2: reduce post delay timevivek mehta2014-11-051-1/+1
| |/ | | | | | | | | | | | | | | Currently there is 500ms of delay added in Video view that adds to app playback startup latency time. Reducing this delay to 50ms helps in reducing the startup latency. Change-Id: If1db674a66d68b94654868fd3e4d5c84ea5265e7
* | Gallery2: Set default value for server timeoutkaiyiz2014-11-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | The timeout of server is not set when read from flag of SERVER_TIMEOUT, the value will stay to be -1, as a result there will be no resume dialog Set a default value of 3 min for resume timeout CRs-Fixed: 753834 Change-Id: Icd4640c4b56a64857dfade1bb8d7a3581494d404
* | Gallery2: don't pause background music perminentlywjiang2014-11-131-12/+0
| | | | | | | | | | | | | | | | | | Gallery app requests transient audio focus twice and explicitly pauses background music playback. To allow music resume after movie playback exists, remove redundant audio focus request and pause broadcast. CRs-Fixed: 695669 Change-Id: I46b88defc887d3e5b5c97acdc4f5a0a11d486a76
* | Gallery2: Make forward/rewind button grey when stopVideokaiyiz2014-11-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | StopVideo Api is setting the view visibility which causes the surface to be created and make the bug happen. Removed the functionality of the view visibility in stopVideo Api CRs-fixed: 642082 Change-Id: I4305302e52ec647bc2b935a817e77a173647be22
* | Gallery2: Fix batches of issues in movie effectswjiang2014-11-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix following issues: - All settings aren't restored to previous state when user cancel his operations. - Check the validity to avoid calling member function of an already released object. - Recycle effect instance when MovieActivity pauses. - Don't restore strength from pref when toggling switch. - Force the Effect's dialog to be uncancelable. - Fix null pointer and effect leak issue due to CMCC features. - Fix audio effects dialog display on small screens. - Recognize bluetooth headset. - Update visual design. Conflicts: src/com/android/gallery3d/ui/Knob.java Change-Id: I803897508c0c1a6723170b7691e3ece03680e4f1
* | Gallery2: add some video featuresLikai Ding2014-11-041-22/+301
| | | | | | | | | | | | | | including: previous/next video play mode, screen mode, fast forward/rewind button, step settings. Change-Id: I3f4890c4dd95956e0eca889a5fd8b8d83b8d542e
* | Gallery2: support live streaming and bookmarksLikai Ding2014-11-041-34/+748
| | | | | | | | | | | | | | Users can input a URL for streaming display. URL bookmarking is supported. Change-Id: Ia69497cdcfee963ba2209119a5b9dc82b64497da
* | Gallery2: support loop/single video play modeLikai Ding2014-11-041-4/+108
| | | | | | | | | | | | | | | | This change allows a video to be played repeatedly. It also introduces an extension framework. Change-Id: I5566192f138c1f0fd889b85496dd27fbf2aed10d CRs-Fixed: 507973
* | Gallery2: support audio effects during video play.Likai Ding2014-11-041-0/+8
|/ | | | | | | | | | Porting from kk with fixes Conflicts: res/values/strings.xml Change-Id: I267c3c7e402fd5cf2bb223547003af491dd8289e Signed-off-by: Xiaojing Zhang <zhangx@codeaurora.org>
* Enable virtualizationMarco Nelissen2013-09-121-0/+21
| | | | | | | | | | | When the Intent says to virtualize, and the right virtualizer is present on the device, enable virtualization. Bug: 8767565 Bug: 10727216 Change-Id: I8a98404b21c434966b7ae2dc341eb38f2a47eef2 (cherry picked from commit af6b0d2c08afd7803a92856c7c39b5e6144addfa)
* When video not seekable, don't show the scrubberztenghui2013-04-171-1/+11
| | | | | | bug:7117365 Change-Id: I133ea68eaebf1d875a27336ac524d785efe71cc2
* 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