Skip to content

Switch from androidx.media3.ui.PlayerView to androidx.media3.ui.compose.material3.Player - #23

Draft
marcprux wants to merge 1 commit into
mainfrom
compose-player
Draft

Switch from androidx.media3.ui.PlayerView to androidx.media3.ui.compose.material3.Player#23
marcprux wants to merge 1 commit into
mainfrom
compose-player

Conversation

@marcprux

@marcprux marcprux commented Mar 31, 2026

Copy link
Copy Markdown
Member

Media3 1.10 announced a new compose-friendly androidx.media3.ui.compose.material3.Player Composable, which would be a better fit than our current AndroidView wrapper around androidx.media3.ui.PlayerView.

It supports built-in controls, but unfortunately doesn't have any affordances for auto-hiding the controls, so we would need to implement something like that, perhaps like the example at: https://github.com/androidx/media/blob/main/demos/compose/src/main/java/androidx/media3/demo/compose/layout/MainScreen.kt#L121. Or else we can wait for them to add an auto-hide parameter to the player.

@cla-bot cla-bot Bot added the cla-signed label Mar 31, 2026
@marcprux
marcprux marked this pull request as draft March 31, 2026 21:41
@marcprux

Copy link
Copy Markdown
Member Author

Comparison of the two UIs:

androidx.media3.ui.PlayerView androidx.media3.ui.compose.material3.Player

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant