How to create the sort view count same as youtube

Hi Bubblers,

Our company has done a lot of teaching videos. But the problem I have is I want to sort the videos that have the most view count like YouTube, do you all have any solutions?


If your videos are hosted somewhere like Vimeo, or Youtube ct. then you should be able to access the view count via API, so you can just use that (either directly, or to store the view count in your own database)…

If you’re storing your videos somewhere else then you’ll probably need to just create your own view count field in your database and update it whenever the video is viewed.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.