mardi 1 décembre 2015

Ember how to catch the action 'ended' from html5 video tag on a controller?

I have an hbs file with html5 video tag:

<video id="externalVideo" controls loop>
    <source src="../assets/videos/test.mp4" type="video/mp4">
    Your browser does not support HTML5 video.
</video>

and I'm trying to trigger an action when the video ends and handle the event on the template's controller but I just can't seem to catch the event on the controller, how can I do this?




Aucun commentaire:

Enregistrer un commentaire