Giter Site home page Giter Site logo

pupunzi / jquery.mb.ytplayer Goto Github PK

View Code? Open in Web Editor NEW
1.3K 69.0 438.0 32.5 MB

use a custom yutube player for a video as background on jQuery framework

Home Page: https://pupunzi.com/mb.components/mb.YTPlayer/demo/demo.html

JavaScript 88.11% CSS 11.89%
youtube-api video javascript background-video youtube-player youtube-player-api

jquery.mb.ytplayer's Introduction

jquery.mb.ytplayer's People

Contributors

andrewmclagan avatar bhamodi avatar brandl avatar caifara avatar jakob-stoeck avatar kohljary avatar komlev avatar peterdavehello avatar pizzapete avatar pupunzi avatar skirsten avatar snapshotpl avatar socreative avatar svencreations avatar tallesairan avatar thirumani02 avatar tricknotes avatar zauberfisch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery.mb.ytplayer's Issues

Player hides in Chrome and Opera when playing and is visible when paused

First of all: Thank you for this great plugin!

The player is working in FF without any issues, however, in Chrome and Opera (and probably Safari) the player hides itself when playing. The video is still playing somewhere in the background, but the screen isn't visible anymore. When the video is paused, the screen shows up again.

It almost looks like the player forces the containing div to hide itself. I've added some css settings such as positioning, z-index and display settings, but none of them work.

I tried different containment settings (body, self), but nothing seems to work.
Any help is apreciated, thanks in advance!

showControls boolean = video doesn't play

Good day,

I am using this jquery to using YT video on background. It's working very well but I want disable YT controls and logo. If I disable (boolean) showControls, the video doesn't play. Do you know why?

Thank you very much and sorry for my bad english

jquery.mb.YTPlayer demo-bugs?

Unfortunately I noticed a few 'bugs' (on PC):

  • the 'demo_videoList.html' on Internet Explorer 10 plays always the same video; on Safari 5 and Opera 12 does not autoplay
  • the 'demo_videoList_autoChange.html' on Opera 12 jumps continuosly to nex video, without playing one fully..
    what a pity..

How to remove YTPlayer

First I have to say, great job, your plugin is the only one that works right away! But sadly I have not found any way to destroy the player and reinitialize it later on. I want the user to activate / deactivate the background video in a specific div.

EDIT: there is a method "playerDestroy", but after a call to that method you can not play videos anymore (as long as you do not reload the page)

getPlayer() undefined

Prevent final fadeOut

Hi!

first of all, thank you very much for this great plugin. It is very useful!

I have some problems with the fadeOut effect applied to the videos around the last 2/3 seconds at the end part. This option is cutting some videos and I´d like to know how to remove it.

Thanks!

Not working in Chrome/Win 8.1

Hello:

I love your plugin and it was very easy to implement. It works beautifully in IE/Safari/Firefox, but it will not work for me in Chrome. I'm running v35.0.1916.153 in Win8.1, and both of my PCs are touch screen. And I am not working locally... my files are on the server. http://000ae.hhrealestatemedia.com.

Any ideas?

Regards,
Angela

Question & Feature Request.

first thanx so god dam much for this ,

  • The Question
    i wanted to ask how to use the addRaster as there is only true / false ,shouldn't it be there like another property that point to the raster img ?
  • The Feature Request.
    isn't it possible to make the plugin work with Vimeo as-well ,i know that lots of the current props wont work but i mean cant we add a link to Vimeo and the plugin stretchs it beyond the container size in-order to hide the controls & other stuff that is not possible to change with the plugin.

Video time being cut off

I have a video that is 1:01 minutes long and it's being cut off at 57 seconds. I don't have stopAt in my data properties. Any idea? I also have it on autoplay

Not working in latest Chrome?

Hi,
the demos don't work in the latest Chrome for me (29.0.1547.76 on OSX). They play fine in Firefox and Safari though.
Any ideas?

jquery.mb.YTPlayer and loop:false

I noticed that if you set the loop option to false, the video does not start playing, although autoplay is on. This concerns Opera 12 and Safari 5 on Windows 7. I hope there is a solution to this. Thanks.

mb.YTplayer and Contact Form 7 (WP Plugin)

First of all; thanks for the amazing script, it works great!
I only detect an issue when I have mb.YTplayer (not the WP plugin) running on my website and I install the 'Contact Form 7' WordPress plugin. The video (or script?) stops working..

When I deactivate the CF7 plugin, the video (or script) starts working again.

vol not being set

hey,

even though I have set the initial volume using the vol: 20 option it's not being set, I still get full volume.

is this a bug, can someone help?...

Conflict with bootstrap collapse

My bootstrap accordion doesn't work when I use YTPlayer, displaying javascript error
"Uncaught TypeError: Cannot convert undefined or null to object" on click. Please help!

autoPlay: true stopped working

It was working for a while, but I noticed it randomly stopped working for me this morning and now the user needs to click the play button (or use .playYTP()) to start the video.

It looks like in YTPlayer.checkForStartAt interval line 356:

if (YTPlayer.player.getCurrentTime() >= startAt && YTPlayer.player.getDuration() > 0) {

YTPlayer.player.getCurrentTime() is 0 and startAt is 1 so it never plays, but in my settings I have startAt: 0

Edit:
switching YTPlayer.opt.startAt ? YTPlayer.opt.startAt : 1;
to YTPlayer.opt.startAt ? YTPlayer.opt.startAt : 0;
fixes the issue, but seems like it could be some bigger problem

Version 2.7.0

Not working in Firefox 27.0.1

The plugin doesn't work in the lastest version of firefox.
I think youtube change their api rules but I'm not sure.
Do someone else has problems with firefox ?

UPDATE : The problem is not with Firefox, but with the Firefox's plugin YouTube Center (http://userscripts.org/scripts/show/114002), when he’s activate, YTPlayer doesn’t work.

mobile/tablets fallback

Great plugin!

How can I display an image fallback on mobile devices/tablets ?
Is this possible ? If so, how? I do have Modernizr.

Thank you!

YTPlayer stopped working

It seems that the plugin isn't working anymore. I've just downloaded the demo files, and they're also not working -locally- anymore. They did work a while ago. While that's not a really big issue, the YTPlayer sometimes also doesn't work on a server anymore.

What could this issue be?

How to remove Youtube's Ads ?

Hi,

firstly great plugin very useful for my projects, but is it possible to remove the Youtube's Ads on the video ?

Greetz

Cant disable video loop

Cant disable video loop - here is the code used (it's a shortcode)

a id="bgndVideo" href="'.$video.'" class="movie" data-property="{opacity:1, isBgndMovie:false,loop:false optimizeDisplay:false, showYTLogo:false, showControls:true, ratio:''.$ratio.'',startAt:0,quality:'hd720',addRaster:true,lightCrop:true,autoPlay:'.$autoplay.', containment: '.vid'.$rand.''}"

using this script version
last modified: 01/04/13 11.00

Autoplay and playYTP() Not Starting Video

I have an overlay div showing while the video loads to prevent flickering, but if you disable it, you'll notice that the video shows only the cover image and doesn't autoplay despite having the autoplay: true option set. Also, if I send the command, jQuery('youtube1').playYTP() through the console, the overlay disappears, but the video again fails to start.

This may be a change in the YT API, since this functionality was working fine before.

Thanks for the help. Here's a demo site to see what I mean:

http://wptrunk.notne.com/

Fallback

If you have the YTPlayer as a element background, does it fall back to the youtube player? or does it fallback to an image?

Video Doesn't Play Correctly

Hi,

I'm not edit any code, just change url, what I see is, it will skip about 4 seconds of video. 1 seconds on begininng and 3 seconds at end. If video about 0:50 seconds, it's will stop at 0:47 seconds. How to fix it?

Play/pause and other Icons not showing in control bar for background video

I am using this script in word press theme . This working fine for youtube video as background video ,but inside control bar there is not any play/pause mute/unmute icons. I have all those icons in Images folder at root of wordpress.
I go through Js file where I found lines:

controls : {
play : "",
pause : "",
mute : "",
unmute: "",
onlyYT: "",
ytLogo: ""
},
rasterImg : "images/raster.png",
rasterImgRetina: "images/[email protected]",

What I need to change in those above line to have icons in contole bar for wordpress theme?

Not available through Bower

I see you have .json file, however it seems that the package is not registered with bower, so I can't find the plugin via bower search.

feature request: stopAt

Hey!

Awesome work you did with this plugin!

I wonder if it would be possible to add a stopAt function to the code?

Could work similar to the startAt, but with negative values like:

stopAt: -15 to make it stop 15 seconds prior to the video end.

Let me know if I can do anything to assist you with this.

//Aleksander

jQuery syntax error in Chrome

It seems that after Chrome's latest update the background player isn't working.

Try opening the demo file from the download: singleMovie.html, no background movie is displayed and the Chrome console shows:

Uncaught SyntaxError: Unexpected identifier jquery.mb.YTPlayer.js:85
Uncaught TypeError: Object [object Object] has no method 'mb_YTPlayer' singleMovie.html:52

Can someone confirm this? and even offer a fix?

Fullscreen for Containment:self

Hi pupunzi , can you please tell me how to implement the fullscreen button a on single video , small player with Containment set to self ?

latest build not working in any browser

Hello,

I've installed jquery.mb.YTPlayer in the basic Twitter Bootstrap template, added jQuery.js and others, although player is not working. JS runs fine as I've tested it with

<script> alert($(window).height()); </script>

Also no errors in console, address: www.emalihin.com/2

Please advise if there's anything else I've missed?

Regards
Eugene

Video in Firefox will not played.

Firefox is not playing html5 videos. The video tag can added to dom witch is html5 indicator of plugin, but firefox has some trouble with the html5 googlevideo service.

So i think the webdeveloper should decide that he wants html5 or not.

I suggest that ytplayer plugin provide a setting variable to configure that.

Video position fixed in container

Hey,

Awesome plugin.
I have a question: is it possible to make the video fixed inside a container, while scrolling the container? I'm using the plugin to generate YouTube video backgrounds for different page sections with content and want to make the videos fixed. When it comes to images, background-attachment: fixed; works great, but on this case, it looks like it`s a bit more complicated.

Regards!

playlists

Hi, the YTplayer is being used in a Joomla template, Cashemir, that I have purchased.
I am trying to figure out if YTplayer can play YouTube playlists.
I have tried inserting one (PLTKV7BkhP7i0rWOaChXnqckJV_7-IKgdt) but it doesn't seem to be working.
Can the YTplayer handle a YouTube playlist (instead of manually inserting a number of videos in the script)?

Carsten.

Black bar in the top of fallback cover image

Hi pupunzi, thanks for such a great work.
The script is working good in the desktop browser, however when I opened the page in the mobile browser (I tested with iphone and ipad) there's a black bar in the top of fallback image. Can you check it?
Thanks!

Doesn't work

In my console log on Chrome I see:
Uncaught TypeError: Cannot read property 'vol' of undefined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.