mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-09 08:38:43 +01:00
Restart capture after close for older android
This commit is contained in:
parent
eabb0bb41d
commit
8662797cf8
@ -301,6 +301,11 @@ class WebRtcPeerConnectionManager @Inject constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else -> {
|
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)
|
// sink existing tracks (configuration change, e.g screen rotation)
|
||||||
attachViewRenderersInternal()
|
attachViewRenderersInternal()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user