0

I have a listview/Recyclerview. Each rows contain Youtube video panel. I am able to display a list of videos in listview. So now user have to click on play button and stop for pause video.

But i am trying auto play one video at a time when it visible to user and auto stop when user scroll down. I looked at but not having solution .

Automatically Playing video in listview/scrollview similar to facebook

Kinldy help me!

Community
  • 1
  • 1
Rahul Rawat
  • 999
  • 2
  • 17
  • 40

1 Answers1

0

Add this library to your project

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
        compile 'com.github.waynell:VideoListPlayer:1.4'
}

source : https://github.com/waynell/VideoListPlayer

Ajay Venugopal
  • 1,544
  • 1
  • 17
  • 30