The preload attribute of the audio tag takes three values but jPlayer only allow you to set two of them, "auto" and "metadata". This patch adds the third option, "none".
More info at: https://developer.mozilla.org/en-US/docs/HTML/Element/audio
We are using jPlayer for our new podcast, http://drupalsnack.se/, and noticed that some browsers downloaded the whole or part of the audio file even when we had set Autoplay to No and Preload media to "No".
After applying this patch and Preload media to "No", that with this patch translates to "none", we seem to have solved the problem.
Credit for finding this problem as well as the solution goes to kristofferwiklund.
Comment | File | Size | Author |
---|---|---|---|
jplayer_preload.patch | 558 bytes | frjo |
Comments
Comment #1
kristofferwiklund CreditAttribution: kristofferwiklund commentedConfirmed and fixed at a second site.
Comment #2
danielphenry CreditAttribution: danielphenry commentedExcellent. Just tested this on my own site and the patch does the job perfectly.
Please submit it is a very, very much needed patch. and it's super simple. This module was almost unusable wihtout it. Especially if you know your clients often have a slow connection.
Comment #3
PQ CreditAttribution: PQ commentedThis fix sorted out a bunch of issues on the site I'm working on now... Would be great to see it committed.
Comment #4
dieuweBump.
Comment #5
markie CreditAttribution: markie commentedPushed to dev branch.