Enable LinkButton once HTML5 video play list completed in JavaScript

Waghmare
 
on Jan 25, 2021 01:40 AM
734 Views

Hi Team,

Hi Team,

How to play multiple videos in HTML video tag and enables the button once video list completes

I want to play multiple videos in HTML video tag.

Once the all videos get end i want to enable HREF link button for navigation.

Please help me to achieve this.

<video autoplay loop id="bbgVid">
    <source src="style/mpVideos/mpv1.mp4" type="video/mp4">
    <source src="style/mpVideos/mpv2.mp4" type="video/mp4">
</video>

 

Download FREE API for Word, Excel and PDF in ASP.Net: Download
dharmendr
 
on Jan 28, 2021 02:55 AM

Use ended event.

<video autoplay loop id="bbgVid">
    <source src="style/mpVideos/mpv1.mp4" type="video/mp4">
    <source src="style/mpVideos/mpv2.mp4" type="video/mp4">
</video>
<script type='text/javascript'>
    document.getElementById('bbgVid').addEventListener('ended', myHandler, false);
    function myHandler(e) {
        // Enable HREF link button.
    }
</script>