Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to make a Video Player/Playlist

Featured Replies

Hi Everyone I hope you're well.

 

I've been trying to work out how to make a video player with a playlist for the project that I'm working on. Their doesn't seem to be many tutorials on this and was wondering if someone on here could help me out? I would like to make something similar to this https://cdn.athemes.com/wp-content/uploads/onplay-video-magazine-theme.jpg

If anyone can help me out it would be much appreciated.

Thanks!

  • 2 weeks later...

This is a pretty low level explination of the one I built but...

 

I have one actual video element on page with a list ( just a good ole ul) of videos. Going by the example you posted, the list might look like this...

 

<li>

<button data-src="video src">

<img src="img src">

<p>video title</p>

</button>

</li>

 

On page load, I grab the first video src and load it. when the video is done ( calculation of video.duration - video.currentTime), I grab the next on the list and play.

 

The actual Playlist I developed is still not live yet but you can see an example of the video switching element here...

https://www.xfinity.com/compare/comcast-xfinity-vs-directv.html

 

(dear mods, this is not me promoting this business, just trying to help out)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.