Active
Project:
jPlayer
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2011 at 15:10 UTC
Updated:
5 Jun 2012 at 16:23 UTC
hey guys,
got jplayer going on d7 with media module... and it's working great.
the only issue is how do i add a album cover for these audio nodes i have?
documentation says it takes images for poster frames.
i made an image field for the album cover and am wondering how to get it to show.
thx
Comments
Comment #1
deviantintegral commentedOn one of the sites I've used this module with, we keep covers simple by just displaying the image field above the player. There's no direct integration between jPlayer and the image field. We also only allow one cover image per audio node, even if multiple tracks are uploaded.
If you have a need to actually integrate images with the jPlayer "media" object, there's a few things a patch would have to do:
Comment #2
BrockBoland commentedI have tried setting a 'poster' variable in a variety of places, and it doesn't appear in the player. deviantintegral pointed out that jPlayer might be adding the image to the player on the page, but it could be hidden by CSS; this doesn't seem to be the case, because I never see the element in the DOM.
I have tried:
poster:key to the two$(player).jPlayer()calls intheme/jplayer.js, so that it appears at the same level as volume, muted, etc.$(this).jPlayer("setMedia", playerSettings.files);) would pass an array of files with theposterkey set in each one.$(this).jPlayer("setMedia", playerSettings.files);) would pass an array containing objects with MP3 files and one object with theposterkey set to the URL.None of these have worked. deviantintegral also pointed out that the jPlayer library itself has a lot of logic around displaying the poster image; I didn't have time to dig into this, but it seems likely at this point that it's declining to append the post image element to the DOM for some reason.
Comment #3
BrockBoland commented