Great module, it really works as designed. Even though it fits some of my needs and solves those, another one is to add the jPlayer functionality throughout the body, the content, multiple times. I've tried adding the Insert module and it works great, inserting the uploaded audio files where ever the cursor is in the text, but I would like the player to be visible for each audio file.
For example, in the body I have a transcript of a text, below that comes the audio file, then another chunk of text and then another audio file. Adding a link to the audio file is possible via the Insert module, but it's only a link to the file. All the uploaded files will be visible when the field is presented after the content together with the jPlayer, but that's not what my need is.
Would it be possible to add the jplayer to the content? I've seen a couple of issues asking for the same thing, but they're quite old. One even had a patch, but it's not relevant for the 7.x-2.0 release I think (https://www.drupal.org/node/1396360).
See the two images - what I can get today.png and what i really would like.png - for illustrated wish.
Again, great module! Thanks a lot for your work.
// Adam
| Comment | File | Size | Author |
|---|---|---|---|
| what i really would like.png | 98.61 KB | adamevertsson | |
| what i can get today.png | 87.12 KB | adamevertsson |
Comments
Comment #2
weldUAE commentedHello Adam,
Any luck embedding jplayer in the body?
Comment #3
adamevertsson commentedNope, not the way I wanted it (as asked above). A solution I'm about to try is to use the audio tag and skip jPlayer and other players alltogether. The audio tag is supported in most new browsers so it is an ok solution... though I really would like to use jPlayer for this...
Comment #4
weldUAE commentedHey Adam,
I think I Have found a way. This what worked for me
- Use Media module to upload or select the audio file
- Go to admin/structure/file-types
- Click on Manage File Display of the audio field or simply visit admin/structure/file-types/manage/audio/file-display
- Select jPlayer - Player
- Make sure you set Display precedence order accordingly
Good luck :)
Comment #5
candelas commentedThanks @weldUAE. I will test your instructions next week :)
Comment #6
markie commentedSo to be clear, you are looking for a way to embed jPlayer in the editor? So it picks up the audio link and then converts it to a jPlayer. I believe the instructions @weldUAE gave are very solid. Can you verify?