Has anyone else run into compatibility issues when using MediaElement and jQuery Tools on the same page?
Firefox crashes whenever I have both libraries included on a page and I call $('video').mediaelementplayer(); If I remove the reference to jQuery Tools, the page loads perfectly, and if I remove the call to mediaelementplayer(), the page loads perfectly.
No exceptions are thrown. The entire browser just locks up and will not respond. I have recreated this problem on both Mac and Windows machines.
Here's a test page: http://thewellcommunity.org/firefox-crash.htm
I have upgraded to the latest versions of jQuery, jQuery Tools and MediaElement. The crash existed before I upgraded each of those libraries. The only difference is that when I had version 1.2.5 of jQuery Tools, the crash was less severe, only happened occasionally, and seemed to be limited to Macs. Firefox would lock up for a short time, but then would eventually become stable again. As soon as I updated to 1.2.7, the crash started happening every time and could not be recovered from.
The live home page of our site is still using jQuery Tools 1.2.5, so the original crash can be seen there... http://thewellcommunity.org
Does anyone have any idea what might be happening? Or do you know how I might debug this. I've tried try-catch blocks, but the browser crashes before the catch can happen.
I found the problem! It appears that the tabs in jQuery Tools and the volume slider in MediaElement don't play nicely together.
I was finally able to get Firefox to load the page enough to the point where it told me that a script was taking a long time. I checked the firebug debug window and it was stuck on changing the visibility of the volume slider for the MediaElement player.
I went into my initialization code and disabled the volume slider and suddenly the entire page works perfectly.
Definitely not an ideal solution, but I'm willing to live with it for now, at least until I have time to find a different HTML5 video player or get rid of jQuery Tools completely.
Thanks to @Sparky672 for your help!