Skip to content
Snippets Groups Projects
Commit 60ccee5c authored by srosse's avatar srosse
Browse files

OO-4462: add listener for external video to init markers

parent 11e25131
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,9 @@ Object.assign(MediaElementPlayer.prototype, {
media.addEventListener('durationchange', function () {
player.setmarkers(controls);
});
media.addEventListener('loadedmetadata', function () {// for external video like YouTube
player.setmarkers(controls);
});
media.addEventListener('timeupdate', function () {
currentPos = Math.floor(media.currentTime);
if (lastPlayPos > currentPos) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment