ngAudio icon indicating copy to clipboard operation
ngAudio copied to clipboard

Many audio extensions

Open pexak opened this issue 11 years ago • 2 comments

Is it possible to load mp3 if ogg is not supported by browser and ogg if mp3 is not supported by browser? I do not see that functionallity

pexak avatar Jun 15 '15 10:06 pexak

Hey @Pexak .

The functionality you propose is being considered.

One possible implementation would be to allow the user to pass an array instead of a string for the first argument, e.g,

ngAudio.load(['sound1.mp3','sound1.ogg']);

Would this work for what you're implementing?

danielstern avatar Jun 21 '15 16:06 danielstern

Hey @danielstern ! Thanks for answer, it would work : )

pexak avatar Jun 22 '15 07:06 pexak