WordPress.org

Forums

mb.YTPlayer for background videos
[resolved] Selecting different videos to play in background (9 posts)

  1. chanmedia247
    Member
    Posted 1 year ago #

    Hi, being able to select different videos to play full screen used to work using
    <a onclick="jQuery('#bgndVideo1').changeMovie('http://www.youtube.com/watch?xxxxxxxxx')" href="#">

    But now not working any more... Is there a new code?

    http://wordpress.org/extend/plugins/wpmbytplayer/

  2. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    Yes, the code now has become:

    onclick="jQuery('#bgndVideo').changeMovie({videoURL:'http://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

  3. chanmedia247
    Member
    Posted 1 year ago #

    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('http://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:'http://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.

  4. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. chanmedia247
    Member
    Posted 1 year ago #

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

  6. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

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

  7. chanmedia247
    Member
    Posted 1 year ago #

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

  8. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

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

    http://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

  9. chanmedia247
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.