I'm using jPlayer + this module to display a bunch of audio files on a page with views, and several of the views have an AJAX pager. On first load, all of the players work fine (I'm guessing thanks to the patch committed here: http://drupal.org/node/1194384) but when paging using the views pager, an AJAX request is fired, the page does not update with the next set of results from the view, jPlayers are non-functional, and Firebug reports this error in the console:

this.options.swfPath.toLowerCase is not a function - (this.options.swfPath.toLowerCase().sl...tions=this.require.video?b.extend(!0.......

It looks like somehow that the module is not feeding Drupal.settings.jPlayer.swfPath to jPlayer when using AJAX for views pagers. I am still a newbie at understanding AJAX, so I'm at a loss as to how to proceed...

Any help?

Comments

voskuh’s picture

I can confirm this problem with loading a new player with AJAX in general.

Sjarsena’s picture

I am experiencing problems similar where I load a page via Ajax and the player and buttons loads but the audio does not seem to load and nothing is played when clicked on the buttons.

jasonaaronwood’s picture

I am also stumped on this same problem. Has anyone made any breakthroughs on this one?

jasonaaronwood’s picture

After making that post the other day, I had a completely unrelated issue with another module, where I was forced to switch my host's PHP version from 5.2 to 5.3.

Now I'm not having this AJAX problem with JPlayer anymore all of a sudden. :)

(I use GoDaddy; it was in the Hosting Control Panel, under Settings > Programming Languages; it took a few hours to update; updating your PHP version might screw up some functionality on your site if anything depends on PHP 5.2, so do this at your own risk; GoDaddy lets you switch back.)

jasonaaronwood’s picture

Issue summary: View changes

update to add tags