Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <com.google.android.exoplayer2.ui.PlayerView
- android:id="@+id/player_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:controller_layout_id="@layout/exo_controls" />
- fun toggleController() {
- val playerView = findViewById<PlayerView>(R.id.player_view)
- val controlsVisible = // ???
- if (controlsVisible) {
- playerView.hideController()
- } else {
- playerView.showController()
- }
- }
Add Comment
Please, Sign In to add comment