Playing a WAV file on iOS Safari

JavascriptWeb DevelopmentFront End Scripts

To play a WAV file on iOS Safari, add a content-range header.

The headers would allow a WAV file to play −

Content-Range: bytes XX-XX/XX
Content-Type: audio/wav
Content-Disposition: attachment; filename = "new.WAV"
Content-Length: XX

Above, new.WAV is our WAV file.

Published on 06-Apr-2018 08:15:31