Mediaelement.js player stop at end of video?

I believe that the default behavior of the video element is to go back to the beginning so you'd just need to override this by listening for the ended event var player = $('#myvideo'). Mediaelementplayer(); player.media. AddEventListener('ended', function(e) { player.media.

SetCurrentTime(player.media. Duration); }, false) Hope that helps!

I believe that the default behavior of the element is to go back to the beginning so you'd just need to override this by listening for the ended event. Var player = $('#myvideo'). Mediaelementplayer(); player.media.

AddEventListener('ended', function(e) { player.media. SetCurrentTime(player.media. Duration); }, false); Hope that helps!

John - thanks so much for responding. I placed your code inside inside the element of the page with my video. To make sure I understand, #myvideo is the div containing the video on the page.

I changed the name to reflect the #div id I used. It is still rewinding to the start. Have I done something wrong?

- thanks - Don – Don McMillan Feb 11 at 14:43.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions