Hello! I have one video element. How can I switch it to another after completing one? And is it possible to do it so that when the last video ends, the first one turns on?
My code is:
var videos = [ "https://v.cdn.vine.co/r/videos_dashhd/C40B136F021365174982178762752_53f4484ad8e.25.1.ADDA1E67-CF16-4C3B-901A-DE068DE26134.mp4", "https://v.cdn.vine.co/r/videos_h264dash/9E0C561D561232222781018615808_3ae4ac8f321.4.2.559218590213998566.mp4", "https://v.cdn.vine.co/r/videos_h264dash/640E862C-1279-4B1B-89DD-1CC8BD0003A3-121-0000003319090DC5_1.0.6.mp4", "https://v.cdn.vine.co/r/videos_h264dash/00A2889BFD1101390404009553920_148f4f22224.3.2.mp4?versionId=7DBWwt94N5zgF2gU6wjrBD84KJ_Q5s4b" ]; // Как переключать? video {width: 100%; height: 300px;} <video src="https://v.cdn.vine.co/r/videos_dashhd/C40B136F021365174982178762752_53f4484ad8e.25.1.ADDA1E67-CF16-4C3B-901A-DE068DE26134.mp4" controls="">