Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the node direct link jplayer works ok but...
I'm trying and trying all variants in views but jplayer dont show... I see only text links :(
I try jPlayer multifile playlist option in the Field and playing with the others parameters -> NOTHING
I try jPlayer option in Style under Basic settings and playing with the others parameters -> NOTHING
Please Help!
THanks
Comment | File | Size | Author |
---|---|---|---|
#3 | screenshot.png | 4.15 KB | zacharycaplan |
Comments
Comment #1
jimajamma CreditAttribution: jimajamma commentedThere is a patch in a thread called Views Oddity that might fix your issue
Jim
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedSame to me
outside the views it works
Comment #3
zacharycaplan CreditAttribution: zacharycaplan commented+1
patch in views oddity thread did nothing, the player doesn't display and just shows the text links.
i can force the player to display using 'Jplayer player' option for filefield display format but it still doesn't work and appears as in the attached screenshot.
if i look at the source for either of these options, the jplayer's id is blank and everything else appears to be missing a distinct id number and instance reference (progress bar id="-progress" instead of id="jplayer-20-field-songs-progress")
hope this helps shed a little more light on the issue
Comment #4
zacharycaplan CreditAttribution: zacharycaplan commentedupdate: it appears using the display style in a view does not trigger the css/js includes for jplayer...thoughts on how to rectify this?
Comment #5
jimajamma CreditAttribution: jimajamma commentedThere were multiple bugs/issues in the beta2 and earlier versions of jPlayer that make me think the views portion could never have worked. I fixed a couple of them that made the module work for me, if you look through the issue cues you can see the patches I've uploaded. If you could post a screen shot of the views screen, that might help me track it down further for you. I fat fingered a whole bunch of this there that after I figured out what was wrong, it was one of those "duh" moments. But just the fact that you are in fact getting SOME of the css in there makes me think that's one of the issues (those blue bordered things in there are defined in the css as an example)
Comment #6
DavidHadaller CreditAttribution: DavidHadaller commentedI had this same issue as in the screenshot from #3. I made the following changes to these two files and I was good to go (changes made to 6.x-1.0-beta3).
Note: I used the 'path to file' field formatter in the view, although others should work.
**ISSUE: The variable $filepath was actually just the fileid number, but was being treated by the code as the actual path**
**SOLUTION: load the filepath**
file: jplayer_style_plugin.inc
function: jplayer_style_plugin -> render
line: 101
**ISSUE: The output of the view was being blocked by this if statement **
**SOLUTION: Comment out the if-statement. This may have other implications **
file: jplayer.theme.inc
function: template_preprocess_jplayer_view_playlist(&$vars)
line: 76
Comment #7
deviantintegral CreditAttribution: deviantintegral commentedI've committed the change fixing the issue with checking the wrong variable template_preprocess_jplayer_view_playlist() in 5be54f6, and am addressing the file ID issue over at #919700: Views Oddity.
Comment #9
vchen CreditAttribution: vchen commentedIs it just me, or is this still a problem in version 7.x-2.0-beta1 with Drupal 7?
Comment #10
joshuautley CreditAttribution: joshuautley commentedI'm using views in D7 and I have it as a block which works fine.