Y
Y
Yuri Yerusalimsky2016-03-05 19:19:56
JavaScript
Yuri Yerusalimsky, 2016-03-05 19:19:56

How to defeat the mb_YTPlayer plugin for displaying Youtube videos on the background of the block (does not want to start)?

There is a YTPlayer plugin for jQuery. The essence of the plugin is to output a video from Youtube as a block background. I read the instruction , I tried to connect the script strictly according to it, but the problem is that in the plugin itself, it seems to me, there is a bug that does not allow this plugin to run. I found that my problem was already asked in the corresponding section of GitHub . A person, like me, could not start YTPlayer due to line 457 in the plugin code. This line calls something I don't understand, namely jQuery.mbStorage . Of course, the get property is not called, because the handler does not know what mbStorage is. I have already tried jQuery version both 1.12.1 and 2.2.1. This line still produces the error "Uncaught TypeError: Cannot read property 'get' of undefined ". Tell me, what am I doing wrong? Maybe I missed something?

A version of the plugin that works nonetheless . Apparently, something is wrong in my code.

PS: Pay attention that the proposed solution on the GitHub website is simply, apparently, connecting the old version of the plugin (described here ) This option does not suit me, I need to make the latest version work, plus only one user had a problem with mbStorage, if you look at the bugs plugin on GitHub.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Kirenkov, 2016-03-05
@DeLaVega

1. Run another plugin.
2. Throw out all your js and leave only jQuery and the plugin. And check.
3. Run the downloaded plugin demo and upload your scripts to it. On which fall off, in that direction you will dig.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question