Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

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

@kareljuricka

Description

@kareljuricka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working correctly

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions