mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08: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 -> {
|
||||
// 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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user