Merge "Fix the issue the video can't start to play" into honeycomb-mr1
This commit is contained in:
@@ -114,13 +114,6 @@ public class HTML5VideoFullScreen extends HTML5VideoView
|
|||||||
return mVideoSurfaceView;
|
return mVideoSurfaceView;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void start() {
|
|
||||||
if (getAutostart()) {
|
|
||||||
super.start();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
HTML5VideoFullScreen(Context context, int videoLayerId, int position,
|
HTML5VideoFullScreen(Context context, int videoLayerId, int position,
|
||||||
boolean autoStart) {
|
boolean autoStart) {
|
||||||
mVideoSurfaceView = new VideoSurfaceView(context);
|
mVideoSurfaceView = new VideoSurfaceView(context);
|
||||||
|
|||||||
@@ -224,8 +224,9 @@ class HTML5VideoViewProxy extends Handler
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void onPrepared() {
|
public static void onPrepared() {
|
||||||
// The VideoView will decide whether to really kick off to play.
|
if (!mHTML5VideoView.isFullScreenMode() || mHTML5VideoView.getAutostart()) {
|
||||||
mHTML5VideoView.start();
|
mHTML5VideoView.start();
|
||||||
|
}
|
||||||
if (mBaseLayer != 0) {
|
if (mBaseLayer != 0) {
|
||||||
setBaseLayer(mBaseLayer);
|
setBaseLayer(mBaseLayer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user