# HTML5 video ended event doesn't fire on Wowza

**URL:** <https://community.wowza.com/t/html5-video-ended-event-doesnt-fire-on-wowza/34220>\
**Category:** Wowza Streaming Engine\
**Created:** [November 5, 2010, 3:14pm UTC](https://community.wowza.com/t/html5-video-ended-event-doesnt-fire-on-wowza/34220 "2010-11-05T15:14:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matej\_Poklukar](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@Matej\_Poklukar](https://community.wowza.com/u/Matej_Poklukar)\
**Post date:** [November 5, 2010, 3:14pm UTC](https://community.wowza.com/t/html5-video-ended-event-doesnt-fire-on-wowza/34220/1 "2010-11-05T15:14:35Z")

</div>

Hello,

I have problem with firing ended event on Wowza media server.

I have HTML5 video tag and everything works fie except when video is on end ended event doesn’t fire.

This is how I binf eded event on my player (with jQuery):

$("#videoTag").bind(“ended”, function() {

alert(“I’m done!”);

});

It makes all much strange when I play normal mp4 file event is fired, but when play file from wowza server even’t doesn’t fire.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 5, 2010, 6:03pm UTC](https://community.wowza.com/t/html5-video-ended-event-doesnt-fire-on-wowza/34220/2 "2010-11-05T18:03:32Z")

</div>

I’m not sure about the jQuery method. But I have tested onend in a video tag like this:

[https://www.wowza.com/docs/how-to-do-pre-roll-and-playlist-for-ios-a-client-side-work-around](https://www.wowza.com/docs/how-to-do-pre-roll-and-playlist-for-ios-a-client-side-work-around)

Try

```auto
$("#videoTag").bind("onended", function() {
alert("I'm done!");
});

```

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 8, 2010, 2:25pm UTC](https://community.wowza.com/t/html5-video-ended-event-doesnt-fire-on-wowza/34220/3 "2010-11-08T14:25:18Z")

</div>

I just don’t know about JQuery. But if you add the events to the video tag, it works.

```auto
<video src="http://xxx.xxx.xxx.xxx:1935/vod/sample.mp4/playlist.m3u8" controls onended="end(event)" id="video1">
</video>

```

Richard

---

<div class="post-metadata">

**Author:** ![Matej\_Poklukar](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@Matej\_Poklukar](https://community.wowza.com/u/Matej_Poklukar)\
**Post date:** [November 8, 2010, 8:22am UTC](https://community.wowza.com/t/html5-video-ended-event-doesnt-fire-on-wowza/34220/4 "2010-11-08T08:22:05Z")

</div>

Thank’s for your replay but it didn’t solve my problem. Code on example also didn’t fire end event. Did you tried and it works?

It looks that other developers found this problem as well :

[https://www.wowza.com/forums/showthread.php?11043-Iphone-IPad-cupertinostreaming-VOD-canot-play-to-end&highlight=iPad](https://www.wowza.com/forums/showthread.php?11043-Iphone-IPad-cupertinostreaming-VOD-canot-play-to-end&highlight=iPad)

I hope we will find solotion to this problem asap because now we have limitation for using html5 functionality.

best
