eneim / toro

Video list auto playback made simple, specially built for RecyclerView
Apache License 2.0
1.41k stars 253 forks source link

how to set player for a specific position in a container #488

Closed trongtrong closed 4 years ago

trongtrong commented 4 years ago

I want to set the player for some position (eg : position 0, 7, 12, 19..). How to achieve ?

eneim commented 4 years ago

@trongtrong The ToroPlayer has a callback wantsToPlay. You can return a boolean value to exclude those position you do not want. A better practice is to set a PlayerSelector to your Container and exclude those players whose orders you do not want to play.