am 2d09b855: Merge "When the video is not on the front, it should be paused" into honeycomb-mr1
* commit '2d09b855d5c0749ab845d3f2775125fea294f07c': When the video is not on the front, it should be paused
This commit is contained in:
@@ -109,7 +109,7 @@ class HTML5VideoViewProxy extends Handler
|
||||
boolean foundInTree = nativeSendSurfaceTexture(surfTexture,
|
||||
layer, currentVideoLayerId, textureName,
|
||||
playerState);
|
||||
if (playerState == HTML5VideoView.STATE_PREPARED
|
||||
if (playerState >= HTML5VideoView.STATE_PREPARED
|
||||
&& !foundInTree) {
|
||||
mHTML5VideoView.pauseAndDispatch(mCurrentProxy);
|
||||
mHTML5VideoView.deleteSurfaceTexture();
|
||||
|
||||
Reference in New Issue
Block a user