Skip to content

Instantly share code, notes, and snippets.

@shkcodes
Created Jul 17, 2021
Embed
What would you like to do?
Box {
AndroidView(
factory = { context ->
context.inflate<PlayerView>(R.layout.player_view).apply {
layoutParams = ViewGroup.LayoutParams(MATCH_PARENT, MATCH_PARENT)
player = exoPlayer
}
}
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment