Apple *.caf files in HTML5 <audio> tag

1.1k views Asked by At

Can I include *.caf files in HTML5 tags or do I need to convert them first?

2

There are 2 answers

0
Ian Devlin On

You'll need to convert them to OGG and MP3 at least.

0
hdante On

Here is an example:

    <audio controls>
            <source src="radio.opus" type="audio/ogg; codecs=opus">
            <source src="radio.caf" type="audio/x-caf; codecs=opus">
            Your browser does not support HTML5 audio.
    </audio>