February 14, 2018
Vimeo Buttons – Sample File
Comments
(5)
February 14, 2018
Vimeo Buttons – Sample File
Newbie 18 posts
Followers: 41 people
(5)

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

vimeo Buttons

5 Comments
2018-02-15 16:32:12
2018-02-15 16:32:12

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)
>
marissat22566383
's comment
2018-02-15 18:03:45
2018-02-15 18:03:45
>
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
>
Jeremy Shimmerman
's comment
2018-02-15 23:00:35
2018-02-15 23:00:35
>
Jeremy Shimmerman
's comment

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

Like
>
marissat22566383
's comment
2018-04-06 15:09:07
2018-04-06 15:09:07
>
marissat22566383
's comment

This should work with HTML5 output.

Like
2018-02-15 10:28:58
2018-02-15 10:28:58

Thanks, Jeremy!

Like
Add Comment