This time I will share jQuery Plugin and tutorial about HTML5 Background Player For Vimeo Videos – mb.vimeoPlayer, hope it will help you in programming stack.
mb.vimeoPlayer is a jQuery HTML5 video background plugin which allows you to insert a responsive, fully controllable Vimeo video player as the background of any container element.
How to use it:
1. Load the latest version of jQuery library and the jQuery mb.vimeoPlayer.js plugin’s files in your html page.
1 |
< link href = "jquery.mb.vimeo_player.min.css" rel = "stylesheet" > |
2 |
< script src = "//code.jquery.com/jquery.min.js" ></ script > |
3 |
< script src = "jquery.mb.vimeo_player.min.js" ></ script > |
2. Insert a Viemo video player into the page as this:
1 |
< a id = "bgndVideo" class = "player" |
3. Call the function to initialize the Vimeo video player with default settings.
1 |
myPlayer = $( "#bgndVideo" ).vimeo_player(); |
4. All default settings which can be passed to the vimeo_player()
method or via data-property
attribute as shown above.
01 |
$( "#bgndVideo" ).vimeo_player({ |
15 |
show_vimeo_logo: true , |
16 |
stopMovieOnBlur: true , |
18 |
mobileFallbackImage: null , |
20 |
optimizeDisplay: true , |
22 |
align: "center,center" , |
23 |
onReady: function ( player ) {} |
5. Available methods to control the Vimeo video player.
08 |
myPlayer.v_fullscreen() |
11 |
myPlayer.setVolume(20) |
20 |
myPlayer.v_toggleVolume() |
23 |
myPlayer.setAlign( 'top,right' ) |
6. Events.
01 |
myPlayer.on( "VPReady" , function (e){ |
05 |
myPlayer.on( "VPStart" , function (e){ |
09 |
myPlayer.on( "VPProgress" , function (e){ |
13 |
myPlayer.on( "VPPlay" , function (e){ |
17 |
myPlayer.on( "VPPause" , function (e){ |
21 |
myPlayer.on( "VPEnd" , function (e){ |
25 |
myPlayer.on( "VPFullScreenStart" , function (e){ |
29 |
myPlayer.on( "VPFullScreenEnd" , function (e){ |
33 |
myPlayer.on( "VPMuted" , function (e){ |
37 |
myPlayer.on( "VPUnmuted" , function (e){ |
41 |
myPlayer.on( "VPTime" , function (e){ |
Changelog:
v1.2.0 (2021-01-10)
- Added the quality parameter available for PRO and PLUS users
v1.2.0 (2020-11-27)
- Bug fix: With the new Mac OS update (Big Sur) the browser user agent has changed and the os verification was firing a blocking bug.
2019-06-21
2018-06-11
- v1.1.8: Mobile copatibility
2018-05-24
- v1.1.7: reduced the start time at 1150ms
2018-01-22
- v1.1.6: Updated resize behavior to fix the flickering
2018-01-18
2018-01-16
2017-11-08
- v1.1.2: Bug fix: the v_change_movie was not working
2017-11-01
2017-10-31
2017-09-05
2017-06-24
2017-06-01
2017-05-12
- OS detection for mobile fix
2017-05-11
2017-04-19
- Bug fix: At video start the audio was on for 1 sec. also if the mute option was set to true.
2017-04-12
- Bug fix: the audio was there for the first second even if mute was set to true
2017-04-11
2017-03-28
2017-03-22
2017-03-21