How to do an autoplay like facebook in a listview, only one video at a time, and pause it when it comes out of focus.
thank you very much. I hope you can help me
Here is auto play video in list and recyclerview.
Implementing video playback in a scrolled list (ListView & RecyclerView) by Danylo Volokh
Here is the gradle dependency for the library:
dependencies {
compile 'com.github.danylovolokh:video-player-manager:0.2.0'
}
Article link and code git link
Demo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With