Jump to content

Playing Multiple Videos After Each Other HTML

Ryois

Hello. I am trying to use Wallpaper Engine for animated wallpapers and I want an HTML page that would automatically change the source video after a video is done playing. My videos are ordered as video1.mp4, video2.mp4, ... video13.mp4. They are all 4K 29.97FPS. Thanks! I can't really render them all as a big mp4 because that would take forever!  As it is 37 minutes long.

Link to comment
Share on other sites

Link to post
Share on other sites

There appears to be an event for checking if the element has 'ended' for audio and video.

 

https://stackoverflow.com/questions/2741493/detect-when-an-html5-video-finishes

https://www.w3schools.com/tags/av_event_ended.asp

 

You could then change the video source to the next video from your 'ended event handler' and reset the time to 0 and whatever other attributes needed.

https://stackoverflow.com/questions/8402158/html5-video-javascript-controls-restart-video

 

Hope these resources help with your wallpaper engine.

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, prolemur said:

There appears to be an event for checking if the element has 'ended' for audio and video.

 

https://stackoverflow.com/questions/2741493/detect-when-an-html5-video-finishes

https://www.w3schools.com/tags/av_event_ended.asp

 

You could then change the video source to the next video from your 'ended event handler' and reset the time to 0 and whatever other attributes needed.

https://stackoverflow.com/questions/8402158/html5-video-javascript-controls-restart-video

 

Hope these resources help with your wallpaper engine.

Thanks! Will do when I get done reinstalling Windows lol.

Link to comment
Share on other sites

Link to post
Share on other sites

On ‎12‎/‎11‎/‎2017 at 9:09 PM, Ryois said:

Thanks! Will do when I get done reinstalling Windows lol.

ew. Windows. 

 

On ‎11‎/‎11‎/‎2017 at 9:41 PM, Ryois said:

They are all 4K 29.97FPS. Thanks! I can't really render them all as a big mp4 because that would take forever!  As it is 37 minutes long.

Then consider not doing it with that format? no one wants to wait for a video of the size on a website. 

 

 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
Share on other sites

Link to post
Share on other sites

4 hours ago, vorticalbox said:

ew. Windows. 

 

Then consider not doing it with that format? no one wants to wait for a video of the size on a website. 

 

 

its just local files 

Link to comment
Share on other sites

Link to post
Share on other sites

8 hours ago, Ryois said:

its just local files 

for you maybe, once on a remote server  I can see it taking s while to load. Did you manage to get it done I am interested in the solution 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
Share on other sites

Link to post
Share on other sites

55 minutes ago, vorticalbox said:

for you maybe, once on a remote server  I can see it taking s while to load. Did you manage to get it done I am interested in the solution 

no homework lol plus I just now installed VS code

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×