Playing a WAV file on iOS Safari



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.


Advertisements