TareK Khoury
TareK Khoury

Reputation: 13021

ExoPlayer position the progress bar below the Player View

Is there a way to position the DefaultTimeBar of the ExoPlayer below the SimpleExoPlayerView while keeping the play/pause and other controls in the center?

A good reference to what I'm trying to achieve UI wise is the YouTube player.

I am using a custom controller_layout_id. But I am stuck between the bounds of my parent which is the SimpleExoPlayerView.

Upvotes: 1

Views: 2579

Answers (1)

TareK Khoury
TareK Khoury

Reputation: 13021

Solved by using a custom PlaybackControlView. Just make sure to set the default control view to false

playerView.useController = false

Assign the custom PlaybackControlView your player instance

playerControls.player = player
playerControls.showTimeoutMs = autoHideMs
playerControls.show()

Works on ExoPlayer 2.6.0

Upvotes: 1

Related Questions