Vimeo Buttons – Sample File
February 14, 2018
Vimeo Buttons – Sample File
February 14, 2018
Newbie 18 posts
Followers: 44 people

Here’s the sample file for the Vimeo embed controls.

vimeo Buttons

All Comments
Sort by:  Most Recent
Feb 15, 2018
Feb 15, 2018

This is awesome. Thanks, Jeremy. One question, I’ve been trying to get a toggle sound button working but I haven’t been able to. I don’t get any errors however.

Like
()
(3)
Feb 15, 2018
Feb 15, 2018
>
marissat22566383
's comment

Here’s a script that will toggle a button.

Create a button and a variable called vT. On the button add this script.

vT= !vT

if(vT == true){
window.frames[0].frameElement.contentWindow.player.setVolume(1).then(function(volume) {
}).catch(function(error) {
switch (error.name) {
case ‘RangeError’:
break;
default:
break;
}
});
}
else
{
window.frames[0].frameElement.contentWindow.player.setVolume(0).then(function(volume) {
}).catch(function(error) {
switch (error.name) {
case ‘RangeError’:
break;
default:
break;
}
});
}

Like
()
Feb 15, 2018
Feb 15, 2018
>
Jeremy Shimmerman
's comment

Is there a way to get the controls to work for HTML5 output?

Like
()
Apr 6, 2018
Apr 6, 2018
>
marissat22566383
's comment

This should work with HTML5 output.

Like
()
Feb 15, 2018
Feb 15, 2018

Thanks, Jeremy!

Like
()