Vimeo hotfix

This commit is contained in:
Sam Potts
2018-03-29 19:35:02 +11:00
parent dda8e30b92
commit 1c06f6d06d
15 changed files with 37 additions and 21 deletions

View File

@ -202,9 +202,15 @@ const vimeo = {
// Source
let currentSrc;
player.embed.getVideoUrl().then(value => {
currentSrc = value;
});
player.embed
.getVideoUrl()
.then(value => {
currentSrc = value;
})
.catch(error => {
this.debug.warn(error);
});
Object.defineProperty(player.media, 'currentSrc', {
get() {
return currentSrc;