我正在开发视频通话 Android 应用程序,其中视频通话适用于 Nexus 4、Moto g2、Moto g3、Moto e 等设备。但是当我在三星 Galaxy J1 4G 上发起通话时,它崩溃了。
这是堆栈跟踪:
E/AndroidRuntime: FATAL EXCEPTION: gl_surface: EglRenderer
Process: com.testvideo, PID: 30509
java.lang.RuntimeException: glUseProgram: GLES20 error: 1282
at org.webrtc.GlUtil.checkNoGLES2Error(GlUtil.java:29)
at org.webrtc.GlShader.useProgram(GlShader.java:118)
at org.webrtc.GlRectDrawer.prepareShader(GlRectDrawer.java:195)
at org.webrtc.GlRectDrawer.drawOes(GlRectDrawer.java:118)
at org.webrtc.VideoFrameDrawer.drawTexture(VideoFrameDrawer.java:38)
at org.webrtc.VideoFrameDrawer.drawFrame(VideoFrameDrawer.java:205)
at org.webrtc.EglRenderer.renderFrameOnRenderThread(EglRenderer.java:585)
at org.webrtc.EglRenderer.bridge$lambda$0$EglRenderer(EglRenderer.java)
at org.webrtc.EglRenderer$$Lambda$5.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.os.HandlerThread.run(HandlerThread.java:61)
我经历了这个问题Android WebRtc Local Video Stream is not display on marshmallow but works on lollipop,但它有点不同。在我的情况下,应用程序仅在三星 Galaxy J1 4G 操作系统上崩溃:5.1.1 型号:SMJ120G
我正在使用以下库/依赖项:
- org.webrtc:google-webrtc:1.0.+
- fi.vtt.nubomedia:utilities-android:1.0.2@aar
如果有人可以提出任何建议,那就太好了。提前致谢 :)