Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter rileycro

    (@rileycro)

    Up… Please, help…

    Plugin Author pupunzi

    (@pupunzi)

    The component expose several methods you can use to control the player.
    If you want to pause or play the video you can use the below method:

    jQuery('#bgndVideo_home').playYTP()
    jQuery('#bgndVideo_home').pauseYTP()

    See the documentation page here:
    https://github.com/pupunzi/jquery.mb.YTPlayer/wiki

    Bye,
    M

    Thread Starter rileycro

    (@rileycro)

    Ok, thanks, but can you say me where i need add this code or method.

    Editing wpmbytplayer/css/mb.YTPlayer.css?

    Plugin Author pupunzi

    (@pupunzi)

    This is javascript, not CSS…
    The two methods above let you control the player from external javascript actions. for exaple applied to a button:

    <input type="button" onclick="jQuery('#bgndVideo_home').pauseYTP()">pause the video</button>

    or to a specific element binded via javascript:

    $("#myElement").on("click",function(){
    jQuery('#bgndVideo_home').pauseYTP()
    })

    Bye,
    M

    Hi, how can we add stop/play button beside fullscreen button http://www.pozeski.hr

    Ty

    Plugin Author pupunzi

    (@pupunzi)

    Use the above code.
    Bye,
    Matteo

    In which file and which row I can add

    <input type=”button” onclick=”jQuery(‘#bgndVideo_home’).pauseYTP()”>pause the video</button>

    Ty

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Start and stop on click’ is closed to new replies.