HTML Audio component controls not showing download in Safari

Viewed 37

I have an audio component declared in React with controls like this:

<audio controls>
  <source src={url} />
</audio>

This is working in all the browsers except Safari. When I try to use the audio controls it only appears the speed of the audio (0.5x, 1x, 1.25x, etc...) but there is no download option.

What am I missing?

1 Answers

try adding more Media container formats on order to support more platforms and browsers :

 <audio controls>  
      <source src={url} type="audio/mpeg" />    
      <source src={url} type="audio/ogg" />
 </audio>
Related