Seeking assistance with detecting the end of an HTML video
in Ionic2 (Angular2 and Typescript). The relevant code snippets can be found below:
Template:
<video poster="" id="v" playsinline autoplay webkit-playsinline onended="vidEnded()">
<source src="assets/vid.mp4" type="video/mp4">
</video>
Component:
vidEnded() {
console.log("video ended");
this.leavePage();
}
In need of guidance - any help is appreciated. Thank you.