Forum Xamarin.Forms

What is the best way to show a list of videos that is playable in each cell with Xamarin.Forms?

Ruvi1996Ruvi1996 Member ✭✭

I'm trying to create a UI that loads a list of videos like in video streaming apps. I've seen that putting a video player inside a CollectionView or a ListView performs bad. What is the best way to go with this? Is it possible to show only a thumbnail of the video as an image in a cell and when user clicks on it only a video player appears on the same place and begin to play? If it is possible please give me some ideas to go with this

Answers

  • jezhjezh Member, Xamarin Team Xamurai

    Is it possible to show only a thumbnail of the video as an image in a cell and when user clicks on it only a video player appears on the same place and begin to play?

    You can add a CollectionView to display the video list and add a videoplayer above the CollectionView by using a Xamarin.Forms RelativeLayout .

    And when you click the item of the video list, then load the new video item to the videoplayer by url or path and play it.

Sign In or Register to comment.