pupunzi / jquery.mb.YTPlayer

use a custom yutube player for a video as background on jQuery framework
https://pupunzi.com/mb.components/mb.YTPlayer/demo/demo.html
1.3k stars 431 forks source link

Usage of jQuery.slim fails silently #435

Closed krnlde closed 5 years ago

krnlde commented 5 years ago

I recently had trouble with this library, where the video wouldn't want to initialize properly, parts worked (like the needed DOM Containers where created correctly) but most of it didn't (like adding the actual iframe and starting the video). Unfortunately there where no errors in the console whatsoever - nothing was happening in the network tab of the inspector either.

So if anyone arrives here from google, the TL;DR answer is: use jquery not jquery.slim

krnlde commented 5 years ago

Maybe it's worth that @pupunzi gets notion of this issue?

pupunzi commented 5 years ago

Hi, Thank you for the advice. The jquery.slim.js library removes many core methods used by the YTPlayer plugin and it is almost impossible to make it works without. I'll add this information in the documentation. All the best, Matteo