aboutsummaryrefslogtreecommitdiffstats
path: root/dist/plyr.polyfilled.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/plyr.polyfilled.js')
-rw-r--r--dist/plyr.polyfilled.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/dist/plyr.polyfilled.js b/dist/plyr.polyfilled.js
index dd017bd7..9eaaeed3 100644
--- a/dist/plyr.polyfilled.js
+++ b/dist/plyr.polyfilled.js
@@ -10763,7 +10763,11 @@ var youtube = {
return Number(instance.getCurrentTime());
},
set: function set(time) {
+ // Vimeo will automatically play on seek
+ var paused = player.media.paused;
+
// Set seeking flag
+
player.media.seeking = true;
// Trigger seeking
@@ -10771,6 +10775,11 @@ var youtube = {
// Seek after events sent
instance.seekTo(time);
+
+ // Restore pause state
+ if (paused) {
+ player.pause();
+ }
}
});
@@ -11562,7 +11571,7 @@ var Plyr = function () {
}
// Set config
- this.config = utils.extend({}, defaults, options, function () {
+ this.config = utils.extend({}, defaults, options || {}, function () {
try {
return JSON.parse(_this.media.getAttribute('data-plyr-config'));
} catch (e) {