Vimeo stop video jquery

Vimeo.API.js is a lightweight jQuery wrapper around the Vimoe video API which allows you to control Vimeo videos embedded in your webpage with custom jQuery methods and events.

Basic usage:

1. Make sure both the jQuery vimeo.api.js and jQuery library are included.

2. Embed an iframe Vimoe player into your web page.

jQuery Magic:- add bellow jQuery code into your footer.php file in a

url: https://player.vimeo.com/video/205350867

jQuery Magic:- add bellow jQuery code into your footer.php file in a <style id="compiled-css" type="text/css"> a {<!--from w w w . d e mo 2s . co m--> background: #000; color: #fff;} <body> <script src="http://a.vimeocdn.com/js/froogaloop2.min.js"> <iframe id="vimeo-player" src="http://player.vimeo.com/video/40977539?api=1" width="400" height="225" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen> <a id="stop" href="#">STOP <a id="play" href="#">PLAY <script type='text/javascript'> var iframe = $('#vimeo-player')[0]; var player = $f(iframe); $('#stop').click(function() { console.log('stoped'); player.api('pause'); }); $('#play').click(function(){ console.log('play'); player.api('play'); })


Page 2

<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.0.js" > <!--from w w w .d em o2 s. com--> <body> <div id="player1"> <iframe src="https://player.vimeo.com/video/63502573" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen> <div id="filmklip_thumb1"> BUTTON <script type='text/javascript'> $('#player1').hide(); $('#filmklip_thumb1').click(function(e) { e.stopPropagation(); if($('#player1').css('display') != 'none') { var iFrame = $('#player1 iframe'); var iFrameSRC = iFrame.attr('src'); iFrame.attr('src',''); iFrame.attr('src', iFrameSRC); } $('#player1').slideToggle('slow'); }); $(document).click(function() { if($('#player1').css('display') != 'none') { $('#player1').slideUp('slow'); var iFrame = $('#player1 iframe'); var iFrameSRC = iFrame.attr('src'); iFrame.attr('src',''); iFrame.attr('src', iFrameSRC); } });