Merge "Keep the controller when video ended." into jb-dev

This commit is contained in:
Teng-Hui Zhu
2012-05-11 10:00:06 -07:00
committed by Android (Google) Code Review
3 changed files with 10 additions and 0 deletions

View File

@@ -198,6 +198,7 @@ public class HTML5VideoFullScreen extends HTML5VideoView
// after reading the MetaData
if (mMediaController != null) {
mMediaController.setEnabled(true);
mMediaController.show();
}
if (mProgressView != null) {
@@ -320,6 +321,11 @@ public class HTML5VideoFullScreen extends HTML5VideoView
return 0;
}
@Override
public void showControllerInFullScreen() {
mMediaController.show(0);
}
// Other listeners functions:
private MediaPlayer.OnBufferingUpdateListener mBufferingUpdateListener =
new MediaPlayer.OnBufferingUpdateListener() {

View File

@@ -357,4 +357,7 @@ public class HTML5VideoView implements MediaPlayer.OnPreparedListener {
return mStartWhenPrepared;
}
public void showControllerInFullScreen() {
}
}

View File

@@ -279,6 +279,7 @@ class HTML5VideoViewProxy extends Handler
}
public static void end() {
mHTML5VideoView.showControllerInFullScreen();
if (mCurrentProxy != null) {
if (isVideoSelfEnded)
mCurrentProxy.dispatchOnEnded();