退出视频通话时,Surface没有有效的原生Surface错误

时间:2016-10-18 07:24:36

标签: android webrtc

哪些步骤会重现此问题?

1.Trest on SamSung Galaxy TabA

2.无法退出一对一视频通话

3.Sreface在结束视频通话时没有有效的原生Surface错误。

您使用的是哪个版本的产品?在什么操作系统上?

MarshMallow(Android 6),三星Galaxy TabA

请在下面提供任何其他信息。

使用以下代码退出视频通话:

    if (factory != null ) {
        factory.stopAecDump();
    }

    Log.d(TAG, "Closing audio source.");
    if (audioSource != null) {
        audioSource.dispose();
        audioSource = null;
    }

    Log.d(TAG, "Stopping capture.");
    if (videoCapturer != null) {
        try {
            videoCapturer.stopCapture();
        } catch(InterruptedException e) {
            throw new RuntimeException(e);
        }
        videoCapturer.dispose();
        videoCapturer = null;
    }
    Log.d(TAG, "Closing video source.");
    if (videoSource != null) {
        videoSource.dispose();
        videoSource = null;
    }
    Log.d(TAG, "Closing peer connection factory.");
    if (factory != null) {
        factory.dispose();
        factory = null;
    }
    if(localSurfaceView != null && localSurfaceView.isEnabled() )localSurfaceView.release();
    if(remoteSurfaceView != null && remoteSurfaceView.isEnabled())remoteSurfaceView.release();

日志:

E / Legacy-CameraDevice-JNI:LegacyCameraDevice_nativeGetSurfaceId:无法从曲面检索原生曲面。

E / CameraDeviceGLThread-1:GL渲染线程上收到的异常:                                                                          java.lang.IllegalArgumentException:Surface没有有效的原生Surface。

在android.hardware.camera2.legacy.LegacyCameraDevice.nativeGetSurfaceId(原生方法)

在android.hardware.camera2.legacy.LegacyCameraDevice.getSurfaceId(LegacyCameraDe vice.java:658)

在android.hardware.camera2.legacy.LegacyCameraDevice.getSurfaceIds(LegacyCameraDevice.java:667)                                                                              在android.hardware.camera2.legacy.SurfaceTextureRenderer.drawIntoSurfaces(SurfaceTextureRenderer.java:715)

在android.hardware.camera2.legacy.GLThreadManager $ 1.handleMessage(GLThreadManager)

at E / BufferQueueProducer:[SurfaceTexture-1-4811-1] cancelBuffer:BufferQueue已被放弃

10-17 18:10:3​​1.288 4811-4824 / com.caprusit.capv E / BufferQueueProducer:[SurfaceTexture-1-4811-1] cancelBuffer:BufferQueue已被放弃

0 个答案:

没有答案