Hi,
At the time the WP version doesn’t have this feature implemented although it supports the method.
The method you have to use to change the background video is:
$('[bkgnd video ID]').changeMovie('[YT video url]');
So, if you are using the YTPlayer for the frontpage you can add a link in the content like that:
<a href="#" onclick="$('#bgndVideo_home').changeMovie('[YT video url]')"> new video </a>
Bye,
Matteo
Hi,
First of all thank you for this great plugin.
I would like to to the same as mr_dw above, but when I tried to post your link code into html editor on page, clicking link does nothing.
Do I need some plugin or special approach to paste such link with onclick atribute to make it work on page?
Cheers,
Michal
Hi,
Sorry, the right syntax on wordpress is:
<a href="javascript:void(0)" onclick="jQuery('#bgndVideo_home').changeMovie('[YT video url]')"> new video </a>
The $ is not applicable to prevent cross library conflicts.
Bye,
Matteo
Thanks for your support Matteo. I managed to make it work using your hint – I had to change only the div ID, so the code looked like:
<a href="#" onclick="jQuery('#bgndVideo1').changeMovie('https://www.youtube.com/watch?v=xxxxxxxxxxx')"> new video </a>
Thanks once again!
Michal
Ok, That because your video has been inserted using the short code in the page editor; This case the DIV id is different as you can have more than one video per page (f.e.: one as background and one as in line player).
Bye