Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

DMP 4310 video tag

Hi I am developing a webpage for DMP 4310 firmware version 5.4

I have a video tag and I want to detect when the video ends. Here is my code:

 

<video id="myVideo"></video>

document.getElementById('myVideo').addEventListener('ended',myHandler,false);
    function myHandler(e) {
        if(!e) { e = window.event; }
        // handle it
    }

But the event does not fire. Even if I add an alert inside it.

 

Please help. Thanks

179
Views
0
Helpful
0
Replies
CreatePlease to create content