Open imShara opened 9 years ago
Oops, I just saw this PR at the moment. I wrote a similar one (https://github.com/happyworm/jPlayer/pull/365), not sure which one is the best.
@Phyks, JPlayer is dead, use simple custom wrapper over audio tag and Aurora polyfill
@imShara do you have any feedbacks on such solutions? Have you tried Howler.js for instance?
This issue affects Ampache a lot and we are hesitating between trying to fork and kind of patch jPlayer or just move to another solution.
@Phyks, I made myown simple solution with plain js api. Actually, we don't need any frameworks to play sound.
E.g fail use Aurora for FLAC if
What i need:
setMedia MP3 or OGA or FLAC jPlayer params {supplied:"mp3,oga,flac"}
If browser doesn't support format in html5 use aurora as solution {solution: "aurora", auroraFormats:"flac"}
And here is problem:
if {solution: "html,aurora", supplied:"mp3,oga,flac"} mp3: plays oga: plays flac: fail
if {solution: "html,aurora", supplied:"flac"} mp3: fail oga: fail flac: plays
if {solution: "aurora", supplied:"mp3,oga,flac"} mp3: fail oga: fail flac: plays
P.S
Please, check code around this place, i can't understand it. E.g