Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autoplay video like facebook , Android

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

like image 602
Novus Ordo Seclorum Avatar asked Nov 22 '14 00:11

Novus Ordo Seclorum


1 Answers

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

enter image description here

like image 80
Qamar Avatar answered Sep 29 '22 00:09

Qamar