Search code examples
androidandroid-recyclerviewandroid-videoview

How to play video in the middle of the RecyclerView list


I have multiple videos in the RecyclerView. I want when list focus in the middle the video must play automatically.


Solution

  • 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