Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FullScreen #43

Open
masoud-mhs opened this issue Oct 20, 2020 · 1 comment
Open

FullScreen #43

masoud-mhs opened this issue Oct 20, 2020 · 1 comment

Comments

@masoud-mhs
Copy link

FullScreen mode rotate all views in screen! why?

@datastructblues
Copy link

Because of that function in AndExoPlayerView.kt file

fun setScreenMode(screenMode: EnumScreenMode = EnumScreenMode.MINIMISE) {
        when (screenMode) {
            EnumScreenMode.FULLSCREEN -> {
                getActivity()?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
            }
            EnumScreenMode.MINIMISE -> {
                getActivity()?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;
            }
            else -> {
                getActivity()?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;
            }
        }

        currScreenMode = screenMode
        setShowScreenModeButton(currScreenMode)
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants