Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e26d82f authored by Teng-Hui Zhu's avatar Teng-Hui Zhu
Browse files

When the video is not on the front, it should be paused

bug:4165855
Change-Id: Icbdab81fe5beb8642841b16773b0e5350b4221cf
parent efb8eda4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();