Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author pupunzi

    (@pupunzi)

    Hi,
    Yes, the code now has become:

    onclick="jQuery('#bgndVideo').changeMovie({videoURL:'https://youtu.be/3ovA7zeviRo',ratio:'4/3'})"

    The function now accept an Object containing all the properties of the video; the only required is the videoURL property.

    For more documentation:
    https://github.com/pupunzi/jquery.mb.YTPlayer/wiki

    Bye,
    Matteo

    Thread Starter chanmedia247

    (@chanmedia247)

    Hi Matteo, thank you so much for the speedy response and for this plugin! I tried inserting the code you provided above but I must be doing it wrong. The whole code I was using is: <span style="color: #dddddd; background:#000000;padding: 5px;"><a onclick="jQuery('#bgndVideo1').changeMovie('https://www.youtube.com/watch?v=bTIY3a5-v3c')" href="#"> New Video</a></span> I tried inserting your code like this <span style="color: #dddddd; background:#000000;padding: 5px;"><a onclick="jQuery('#bgndVideo').changeMovie({videoURL:'https://www.youtube.com/watch?v=bTIY3a5-v3c',ratio:'4/3'})" href="#"> New Video</a></span> I still can’t get it to show. Am I doing it right? Do I need to put in an actual object to link and not just link the title?

    Again fantastic plugin and I look forward to the response.

    Plugin Author pupunzi

    (@pupunzi)

    I need the URL of the page where you are attempting to do that to see if you are doing something wrong…

    Thread Starter chanmedia247

    (@chanmedia247)

    Is there a way to send you the url privately without making it public here?

    Plugin Author pupunzi

    (@pupunzi)

    you can send me a message from my blog:
    https://pupunzi.open-lab.com/contacts/

    Thread Starter chanmedia247

    (@chanmedia247)

    Hi there… ok I just sent you the link via your contacts… Thank you so much again! your plugin makes the website!

    Plugin Author pupunzi

    (@pupunzi)

    Hi,
    here is a test page where you can find a working demo of a button that changes the background video.

    https://pupunzi.open-lab.com/video-test/

    Your code seams OK except for the ID that I presume should be: bgndVideo1 and not bgndVideo.

    Bye,
    Matteo

    Thread Starter chanmedia247

    (@chanmedia247)

    I tried adding bgndVideo1 but still no luck… I also have copied your button code on your video test page and pasted the entire code on my page and when you click the button it just goes to blank and no video.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Selecting different videos to play in background’ is closed to new replies.