Hello all!
I've been trying to control the vimeo video box I've added to my page. So far I've been using Hide/Show for hiding and showing different video boxes - but what I'd really like to do is use an OnClick event to change the URL of the frame instead.
I tried something like:
$w('#video1').src = ""; export function image3_click(event) { $w("#video1").src = "https://vimeo.com/123456";}
But this didn't work.
Any ideas where I'm going wrong? I searched but couldn't find a solution online.
Thanks everyone!
Eve, "videoUrl" is actually the property to change:
$w('#video1').videoUrl = "https://vimeo.com/123456 "
Guys, I figured it out. I needed to set the SRC, not the URL. DOH! For any other Homers like me - see below:
export function box3_click(event) {$w("#videoPlayer1").src = "https://youtube.com/watch?v=PMWmYf2043g";}
That will work.
P.S. I get the message 'videoUrl' does not exist on '#video1'