Add Next and Previous buttons embedded in HTML5 Video Player

Asked

Viewed 80 times

0

I’m looking for a way to do something that Youtube has in their app, however, in an HTML5 video player using only HTML, CSS and Javascript/Typescript.

Look at:

inserir a descrição da imagem aqui

I already have all the code and logic of how the buttons work. But I can’t find any reference anywhere to make them stylized like this. I know I can add normal buttons to Next and Previous. However, I’m trying to do something embedded in the video, like how native Play and pause buttons already work.

  • Detecting the end of the video and placing the buttons on the player (position Absolute) would not work?

  • @caiocafardo think q might even work. I think q was fixated on using a video tag resource for this and I didn’t think of it. I’m going to test here! ;)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.