diff options
author | Sunita Nadampalli <sunitan@ti.com> | 2011-04-11 13:01:17 -0500 |
---|---|---|
committer | Sunita Nadampalli <sunitan@ti.com> | 2011-04-11 13:01:17 -0500 |
commit | 29630566cf3880095d244c789ac1bab2c9959302 (patch) | |
tree | 12d1f28fbec8046b9a4a9ce499d2402d3aca83e8 | |
parent | 794314f51cb42ef0e947d02a4c57b820f9f1a9df (diff) | |
download | base-29630566cf3880095d244c789ac1bab2c9959302.tar.gz |
VideoView fix for pause/resume scenrio during AV Playback on HDMI
Description# Video View start method is modified to query HDMI
observer for the latest HDMI state.
During the scenario: AVPlayback pause -> then suspend and then
resume -> start playback, the HDMI events were coming even before
the player was ready to handle them, hence the first HDMI event
was lost during this scenario, hence the playback resumes only
on LCD.
This is fixed by force reading the HDMI Observer state on
resume as well as in start method.
DRT#OMAPS00235625 - AV playback suspend/resume on HDMI: Cloning broken on resume
Change-Id: I2c4b447aa8ad671b86f6d07e823bf6bd23a29067
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
-rwxr-xr-x | core/java/android/widget/VideoView.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/widget/VideoView.java b/core/java/android/widget/VideoView.java index 22fbb2c11b6f..b30f68997605 100755 --- a/core/java/android/widget/VideoView.java +++ b/core/java/android/widget/VideoView.java @@ -645,6 +645,11 @@ public class VideoView extends SurfaceView implements MediaPlayerControl { if (isInPlaybackState()) { mMediaPlayer.start(); mCurrentState = STATE_PLAYING; + if(SystemProperties.OMAP_ENHANCEMENT) { + Intent hdmiIntent = mContext.registerReceiver(null, + new IntentFilter(ACTION_HDMI_PLUG)); + mReceiver.onReceive(mContext, hdmiIntent); + } } mTargetState = STATE_PLAYING; } |