Merge branch 'develop' of https://github.com/Selz/plyr into develop
# Conflicts: # dist/plyr.js
This commit is contained in:
commit
9e2580ec6a
2
dist/plyr.js
vendored
2
dist/plyr.js
vendored
File diff suppressed because one or more lines are too long
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user