aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins/vimeo.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2017-11-16 11:38:06 +0100
committerSam Potts <sam@potts.es>2017-11-16 11:38:06 +0100
commitd7a1c4428138d2dd5af09e41e998d1e08dafe76e (patch)
treea3f039f1a2564f43e5f3fa9f49db0527f209f04e /src/js/plugins/vimeo.js
parentc64b8f69403b0287f55f25dc533b41cb8d34075d (diff)
downloadplyr-d7a1c4428138d2dd5af09e41e998d1e08dafe76e.tar.lz
plyr-d7a1c4428138d2dd5af09e41e998d1e08dafe76e.tar.xz
plyr-d7a1c4428138d2dd5af09e41e998d1e08dafe76e.zip
Using fetch instead of xhr, grabbing title for YouTube
Diffstat (limited to 'src/js/plugins/vimeo.js')
-rw-r--r--src/js/plugins/vimeo.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/plugins/vimeo.js b/src/js/plugins/vimeo.js
index f567bc32..10c0fc62 100644
--- a/src/js/plugins/vimeo.js
+++ b/src/js/plugins/vimeo.js
@@ -56,6 +56,7 @@ const vimeo = {
title: false,
speed: true,
transparent: 0,
+ gesture: 'media',
};
const params = utils.buildUrlParameters(options);
const id = utils.parseVimeoId(player.embedId);
@@ -203,6 +204,7 @@ const vimeo = {
// Get title
player.embed.getVideoTitle().then(title => {
player.config.title = title;
+ ui.setTitle.call(this);
});
// Get current time