src getter fix, local storage fix

This commit is contained in:
Sam Potts
2017-11-05 11:45:02 +11:00
parent 8aaa932050
commit 1c693df00b
10 changed files with 71 additions and 53 deletions

View File

@ -126,6 +126,19 @@ const vimeo = {
},
});
// Source
let currentSrc;
player.embed.getVideoUrl.then(value => {
currentSrc = value;
});
Object.defineProperty(player.media, 'currentSrc', {
get() {
return currentSrc;
},
});
// Rebuild UI
window.setTimeout(() => ui.build.call(player), 0);