You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
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
Expected behavior
The text was updated successfully, but these errors were encountered:
kareljuricka
added a commit
to kareljuricka/shaka-player-embedded
that referenced
this issue
Nov 27, 2020
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
Expected behavior
The text was updated successfully, but these errors were encountered: