I'm listening UIDevice.orientationDidChangeNotification to recalculate player view frame on orientation changed.
On each change, I call:
self.playerView.frame = self.view.bounds;
where self.playerView is ShakaPlayerView instance.
If video is PLAYING, this approach works correctly.
But when video is PAUSED, last image of paused video is rotated but its dimensions aren't recalculated..
Dimensions aren't recalculated until I start to play video again.
ScreenShot
After rotate from landscape to portrait when player paused:
Wrong behavior
Issue description
I'm listening UIDevice.orientationDidChangeNotification to recalculate player view frame on orientation changed. On each change, I call:
where
self.playerView
is ShakaPlayerView instance.If video is PLAYING, this approach works correctly.
But when video is PAUSED, last image of paused video is rotated but its dimensions aren't recalculated.. Dimensions aren't recalculated until I start to play video again.
ScreenShot
After rotate from landscape to portrait when player paused: Wrong behavior![IMG_7059](https://user-images.githubusercontent.com/4226431/100192598-8f88c280-2ef2-11eb-9f94-89db9e5cad7a.PNG)
Expected behavior![IMG_7060](https://user-images.githubusercontent.com/4226431/100192608-9283b300-2ef2-11eb-94f4-9296d6ef24a8.PNG)