Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drupal 7 > Uncaught TypeError: The element or ID supplied is not valid #163

Open
Gattermeier opened this issue Apr 21, 2015 · 1 comment

Comments

@Gattermeier
Copy link

In Drupal 7 I have to use jQuery via anonymous functions:

(function($) {
var BV = new $.BigVideo();
BV.init();
BV.show('http://vjs.zencdn.net/v/oceans.mp4');
})(jQuery);

However, I am running into following error, I can't seem to figure out:

Uncaught TypeError: The element or ID supplied is not valid. (VideoJS)VideoJS
@ video.js?nn4j8i:21$.BigVideo.BigVideo.init
@ bigvideo.js:231

@hacfi
Copy link

hacfi commented Apr 21, 2015

That’s very odd as BigVideo creates the container itself. Can you check with a debugger why https://github.com/dfcb/BigVideo.js/blob/master/lib/bigvideo.js#L262 or https://github.com/dfcb/BigVideo.js/blob/master/lib/bigvideo.js#L266 isn’t working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants