Download

Problem getting a webbrowser widget working on a widgetcomponent on Android

Hi there,
I am trying to get a webbrowser widget to display on a WidgetComponent. This works fine on a PC, Mac or IPhone, but on an Android build, all I get is a black square. I’ve tested this on 4.26.2 and 5 preview.

Trawling through logcat I found the following, not sure if this is relevant.

E Company.testwe: [SurfaceTexture-142-30373-0] checkAndUpdateEglState: invalid current EGLDisplay
W System.err: java.lang.IllegalStateException: Unable to update texture contents (see logcat for details)
W System.err: at android.graphics.SurfaceTexture.nativeUpdateTexImage(Native Method)
W System.err: at android.graphics.SurfaceTexture.updateTexImage(SurfaceTexture.java:248)
W System.err: at com.epicgames.ue4.WebViewControl$OESTextureRenderer.getFrameUpdateInfo(WebViewControl.java:1519)
W System.err: at com.epicgames.ue4.WebViewControl$OESTextureRenderer.updateVideoFrame(WebViewControl.java:1481)
W System.err: at com.epicgames.ue4.WebViewControl.updateVideoFrame(WebViewControl.java:1371)

It’s not a problem with the webbrowser widget, because if you put it on an overlay, it works fine. It seems to be the copying onto the texture.

Do you think this is fixable, or is there a good workarround? I don’t think I can amend the unreal source code, as this is intended to be part of a plugin.

James