mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Restart video previow upon rotation to avoid crash
This commit is contained in:
parent
ad9163320c
commit
a74d042a6a
1 changed files with 5 additions and 0 deletions
|
|
@ -218,6 +218,11 @@ import linphonesw
|
|||
override func didRotate(from fromInterfaceOrientation: UIInterfaceOrientation) {
|
||||
super.didRotate(from: fromInterfaceOrientation)
|
||||
self.layoutRotatableElements()
|
||||
Core.get().videoPreviewEnabled = ConferenceWaitingRoomViewModel.sharedModel.isVideoEnabled.value == true
|
||||
}
|
||||
|
||||
override func willRotate(to toInterfaceOrientation: UIInterfaceOrientation, duration: TimeInterval) {
|
||||
Core.get().videoPreviewEnabled = false
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue