YU No
YU No

Reputation: 99

Control how much ExoPlayer time bar shifts when scrubbing with D-PAD

I am trying to customize how much does the time jump when the ExoPlayer's exo_progress Time Bar is focused and the D-PAD left and right buttons are pressed to move back/forward in time through the content. By default it jumps 6 minutes which is a bit much.

Is this possible?

Upvotes: 1

Views: 282

Answers (1)

YU No
YU No

Reputation: 99

Solved it with the TimeBar's setKeyTimeIncrement property.

var timeBar = playerView!!.findViewById(R.id.exo_progress)
timeBar.setKeyTimeIncrement(30000) //desired increment time in milliseconds

Upvotes: 2

Related Questions