Active
Project:
jPlayer
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2011 at 06:31 UTC
Updated:
6 Feb 2013 at 05:21 UTC
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
Comment #1
voskuh commentedI can confirm this problem with loading a new player with AJAX in general.
Comment #2
Sjarsena commentedI 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.
Comment #3
jasonaaronwood commentedI am also stumped on this same problem. Has anyone made any breakthroughs on this one?
Comment #4
jasonaaronwood commentedAfter 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.)
Comment #4.0
jasonaaronwood commentedupdate to add
tags