Looping, increase/decrease volume fix
This commit is contained in:
@ -53,7 +53,7 @@ const vimeo = {
|
||||
// Get Vimeo params for the iframe
|
||||
const options = {
|
||||
loop: player.config.loop.active,
|
||||
autoplay: player.config.autoplay,
|
||||
autoplay: player.autoplay,
|
||||
byline: false,
|
||||
portrait: false,
|
||||
title: false,
|
||||
@ -155,6 +155,18 @@ const vimeo = {
|
||||
},
|
||||
});
|
||||
|
||||
// Loop
|
||||
let { loop } = player.media;
|
||||
Object.defineProperty(player.media, 'loop', {
|
||||
get() {
|
||||
return loop;
|
||||
},
|
||||
set(input) {
|
||||
loop = utils.is.boolean(input) ? input : player.config.loop.active;
|
||||
player.embed.setLoop(loop);
|
||||
},
|
||||
});
|
||||
|
||||
// Source
|
||||
let currentSrc;
|
||||
player.embed.getVideoUrl().then(value => {
|
||||
|
Reference in New Issue
Block a user