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

Cannot enter fullscreen #43

Open
immortalmice opened this issue Feb 6, 2025 · 0 comments
Open

Cannot enter fullscreen #43

immortalmice opened this issue Feb 6, 2025 · 0 comments

Comments

@immortalmice
Copy link

Code is here, version is 1.2.0

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        FirebaseApp.initializeApp(this)
        VideoPlayerCacheManager.initialize(this, 1024 * 1024 * 1024)
        setContent {
            io.sanghun.compose.video.VideoPlayer(
                mediaItems = listOf(
                    VideoPlayerMediaItem.NetworkMediaItem(
                        url = "https://html5demos.com/assets/dizzy.mp4"
                    )
                ),
                modifier = Modifier
                    .width(vw(percentage = 0.5))
                    .aspectRatio(16.0f / 9),
                autoPlay = true,
                repeatMode = RepeatMode.ALL,
            )
        }
    }
}

When click on fullscreen control, it change the orientation, but it didn't enter the full screen mode

Image

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

1 participant