I have multiple videos in the RecyclerView. I want when list focus in the middle the video must play automatically.
Asked
Active
Viewed 5,700 times
2
-
1You mean when scrolling stops, play the video which is in the center of the page? – 2hamed Apr 20 '16 at 06:43
-
http://stackoverflow.com/questions/30978030/playing-video-using-textureview-in-recyclerview – Saurabh Vardani Apr 20 '16 at 06:44
1 Answers
0
Video-Player-Manager - it gives the ability to invoke MediaPlayer methods in a background thread. It has utilities to have only one playback when multiple media files are in the list. Before new playback starts, it stops the old playback and releases all the resources.
https://github.com/danylovolokh/VideoPlayerManager
This may be useful to you

Venkatesh
- 209
- 2
- 11
-
1I have implemented these methods already. i just want to play the video in recyclerview in the middle of the screen – Shikha Ratra Apr 20 '16 at 06:54
-
please see this link for recycler view plays the video in the center of the screen https://github.com/danylovolokh/VideoPlayerManager#usage-in-scrolling-list-listview-recyclerview @ShikhaRatra – Pratik PSB May 27 '21 at 07:08