shaka-project / shaka-player-embedded

Shaka Player in a C++ Framework
Apache License 2.0
239 stars 62 forks source link

Paused video doesn't react on changing device orientation #194

Open kareljuricka opened 3 years ago

kareljuricka commented 3 years ago

Issue description

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 IMG_7059

Expected behavior IMG_7060