Merge branch 'develop' of https://github.com/Selz/plyr into develop

# Conflicts:
#	dist/plyr.js
This commit is contained in:
Sam Potts 2017-05-07 19:04:05 +10:00
commit 9e2580ec6a
2 changed files with 8 additions and 1 deletions

2
dist/plyr.js vendored

File diff suppressed because one or more lines are too long

View File

@ -2533,6 +2533,13 @@
// 5 Video cued
switch (event.data) {
case 0:
// YouTube doesn't support loop for a single video, so mimick it.
if (config.loop.active) {
// YouTube needs a call to `stopVideo` before playing again
instance.stopVideo();
instance.playVideo();
break;
}
player.elements.media.paused = true;
trigger(player.elements.media, 'ended');
break;