How to add a few videos, in

I have 5 videos, how can I add them to src? Only the first is played.



  • edited July 2019

    Hey @XOLDEN, while the src property can hold multiple links, it will only play the first available one, so in a way specifying multiple sources is a way to provide a fallback in case your other links fail/are unavailable. However, you can still store multiple different videos in the src and swap between them. To do so you need to access the html video element and set the source manually out of our multiple sources. Here's an example:

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion