Skip to content

On rotating device, full screen video not working. #1

Description

@numair96

Hi,
Your code helped me a lot, but I'm stuck in a problem. I'm working on a project that contains TabsActivity. In Youtube tab, when I play video in full screen and rotate the device, it plays in portrait only. I've tried hiding the Tabs and my top bar too. Still no progress. I've set all my views in portrait mode android:screenOrientation="portrait". If I set my Youtube activity to noSensor, the Tab activity restarts and I switched back to Home tab. I've noticed that while rotating it gives me this warning..

W/MediaPlayer(2324): setScreenOnWhilePlaying(true) is ineffective without a SurfaceHolder

Please give solution for this.

P.S. Auto-rotate screen option is enabled.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions