Closed (fixed)
Project:
jPlayer
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2010 at 21:08 UTC
Updated:
22 Mar 2014 at 02:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
MrVictor commentedThis is good!
Comment #2
patrickroma commentedDid you try it? Does it work?
Comment #3
sbogner@insightcp.com commentedI applied this patch and it did not work for me - it appears nothing changed in the display. See www.insightcp.com/blog for an example.
Comment #4
patrickroma commentedYeah, the same goes for me... Actually the patch doesnt change that much Code... Somebody ideas for a working Version?
Comment #5
hansrossel commentedThis is rather a bug
Comment #6
ermannob commentedIt works. Thanks!
Comment #7
sbogner@insightcp.com commented@ermannob - glad this worked for you, but it still doesn't work for me.
Comment #8
blazey commentedThis one should work
Comment #9
sbogner@insightcp.com commentedThanks blazey - I tried applying the patch and got a bit of an error:
I reinstalled the latest version of jplayer prior to the patch.
Having said that, you can see the results on my site at http://www.insightcp.com/blog . For a blog entry without an MP3 file, take a look at http://www.insightcp.com/blog/catching-how-new-hr-systems-work
It's different now, but it seems that jplayer is still displaying when there is no MP3 file.
*** Update: I manually added the changes to jplayer.tpl.php and that didn't seem to change anything.
Comment #10
sbogner@insightcp.com commentedThere might have been some caching problems, because the next day everything appeared to be working fine after applying the changes manually (the patch for some reason didn't update everything). So the changes work, but the patch didn't apply completely.
Comment #11
Grifforg commentedIt's a pity because I would like to use this html5 module instead of Flash to display sound files in some of my nodes. I tried the patches and it was impossible for me to make them apply. Hope for a solution.
Comment #12
Grifforg commentedAs sbogner I had the same error message and I made the changes to jplayer.tpl.php manually. It works. No player when the field is empty. Anyway impossible for me to manage the player to display in list mode. I can live with it but I hope for an update :-) One could set the player to multifile player and the player be displayed as a one file one if there is only one file uploaded. Anyway, it's still a work in progress…
Comment #13
zacho commentedI also manually applied that patch.
Same as previous poster: it works for single files, but it seems to break the playlist version (which always stops showing).
Comment #14
mandclu commentedSubscribing. I'm having the same issue with the player displaying even with no audio.
I notice that some of the changes apply specifically to the playlist functions, has anyone tried selectively applying the changes in the patch at #8 to see if that works?
Comment #15
mandclu commentedFWIW, I've been able to temporarily solve my issue in the theme layer by making the following change to a specialized implementation of content-field.tpl.php (called, in my case "content-field-field_showaudio.tpl.php") on line 36.
Change:
To:
Works perfectly for my needs. From a purist perspective it still leaves the field wrapper markup when there's no audio to display (which isn't really needed) but this solved the most critical part of the issue.
We still need a fix for the actual logic, though. $field_empty should be true if a file hasn't been chosen.
Comment #16
blazey commentedThis issue is fixed in beta3. Let us know if it works for your sites
Comment #17
sbogner@insightcp.com commentedbeta3 fixed it for me. I had to do 2 things though - 1) after applying the update, clear the site's cache, and 2) check to make sure that you still have jplayer set for the custom file-field in your content type - mine got reset to 'Generic Files' for some reason.
Comment #18
linoleum commentedexactly the same as #17 with the same issue
Comment #19
blazey commentedComment #20
Grifforg commentedSame thing for me (#17). It should be written in the Read me to take care of it because I couldn't get back the players in my pages and was to reinstall the previous set because after a long time I didn't know how to fix it. Thanks to these comments. But I wasted a little time and with a few lines in the Read me I had not.
Comment #21
rszrama commentedEDIT: Ugh, my code is way outdated. :-/
Comment #22
rszrama commentedComment #23
rschletty commented