Restart capture after close for older android

This commit is contained in:
Valere 2020-06-15 18:20:13 +02:00
parent eabb0bb41d
commit 8662797cf8

View File

@ -301,6 +301,11 @@ class WebRtcPeerConnectionManager @Inject constructor(
}
}
else -> {
// Fallback for old android, try to restart capture when attached
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP && capturerIsInError && call.mxCall.isVideoCall) {
// try to restart capture?
videoCapturer?.startCapture(1280, 720, 30)
}
// sink existing tracks (configuration change, e.g screen rotation)
attachViewRenderersInternal()
}