Don't sleep when inline video start
bug:4563692 Change-Id: I0174403e3f78b5a637500fbaaf7f9219efe0cbc8
This commit is contained in:
@@ -7,6 +7,7 @@ import android.webkit.HTML5VideoView;
|
||||
import android.webkit.HTML5VideoViewProxy;
|
||||
import android.view.Surface;
|
||||
import android.opengl.GLES20;
|
||||
import android.os.PowerManager;
|
||||
|
||||
/**
|
||||
* @hide This is only used by the browser
|
||||
@@ -51,6 +52,7 @@ public class HTML5VideoInline extends HTML5VideoView{
|
||||
public void prepareDataAndDisplayMode(HTML5VideoViewProxy proxy) {
|
||||
super.prepareDataAndDisplayMode(proxy);
|
||||
setFrameAvailableListener(proxy);
|
||||
mPlayer.setWakeMode(proxy.getContext(), PowerManager.FULL_WAKE_LOCK);
|
||||
}
|
||||
|
||||
// Pause the play and update the play/pause button
|
||||
|
||||
Reference in New Issue
Block a user