Monitoring media-ended events


show more Monitoring media-ended events provides you with in-depth training on Developer. Taught by Ray Villalobos as part of the JavaScript: Events show less
please wait ...

Monitoring media-ended events

In the last movie, I showed you how to start to build a audio jukebox by showing you the different kinds of events and how to generate a play event for any one of these songs. So there's a couple problems with this. Number one, the UI is not updating when a song has finished playing. And you can also play more than one song at the same time. So let's go ahead and refresh. And I'll show you. You can play this one, and then I'll play this other one. (MUSIC) And as I mentioned, I'm just hitting Refresh to stop them right now. So we should not allow the scripting going on here, so we need to fix that.

Now if you look at this page, you can see that there's a lot of methods that we can call. So for example, there's a pause method. We've already used the play method and then there are several properties that we can look for, so for example, we could look for the pass property to see if a song has pause playing. We can also look for an ended property to see if a song is finished pl...

Monitoring media-ended events
Video duration: 4m 20s 2h 11m Intermediate

Viewers:

Monitoring media-ended events provides you with in-depth training on Developer. Taught by Ray Villalobos as part of the JavaScript: Events

Subjects:
Developer Web
Software:
JavaScript
Author:
please wait ...