Created
August 1, 2020 08:03
-
-
Save halilozercan/6d717a6647fa9099b06f3dc11f823e7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun PlayerSurface() { | |
val playerController = PlayerControllerAmbient.current | |
AndroidView(resId = R.layout.surface) { | |
val exoPlayerView = it.findViewById<PlayerView>(R.id.player_view) | |
playerController.setPlayerView(exoPlayerView) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment