I'm trying to use jPlayer in conjunction with the Paragraphs module, and I'm running into some kind of bug.
I made some tests to compare a regular jPlayer field (file field) and a jPlayer field used in a Paragraphs bundle. As far as the generated HTML goes, I can't see any significant difference (the various ID attributes of both players are different, sure, but that's all), which makes me think that the bug comes from jPlayer rather than from Paragraphs.
The problem is related to the playlist part of the jPlayer interface: clicking on any file name in the playlist (which would normally start playing this file) outputs the following error in the console:
TypeError: media is undefined.
This error occurs on line 1955 of jquery.jplayer.js.
Clicking the "play" button on the jPlayer control starts the first file in the playlist, so this works, but it will not play the following tracks, even if "continuous play" is enabled in the field settings. Clicking the "next" button will just restart the first track, as if it was the only track in the playlist.
Note that the "TypeError" error above also occurs when clicking on the first file in the playlist, even though it is possible to play this track by clicking the "play" button. This error also occurs if there's only one track in the playlist, or if the player kind has been set as "single" (as opposed to "playlist") in the field settings.
Comments
Comment #2
arefen commentedi have a same problem
Comment #3
jwineichen commentedsame error for me