Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 944dc02

Browse files
committed
[[ Bug 23100 ]] Ensure android player renders over OpenGL view
This patch sets the `setZOrderMediaOverlay` of the android player view to ensure the player renders over the OpenGL surface view. If not set if the player view is created before the OpenGL view the video will not be visible.
1 parent 54d022a commit 944dc02

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/notes/bugfix-23100.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix rendering of mobile player when acceleratedRendering is true

engine/src/java/com/runrev/android/nativecontrol/ExtVideoView.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ private void initVideoView() {
188188
mVideoHeight = 0;
189189
getHolder().addCallback(mSHCallback);
190190
getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
191+
192+
/* We always want the video's surface view to sit on top of any OpenGL
193+
* surface view, so set this as a media overlay. */
194+
setZOrderMediaOverlay(true);
191195
setFocusable(true);
192196
setFocusableInTouchMode(true);
193197
requestFocus();

0 commit comments

Comments
 (0)