Issue with Safari on iOS 15.4 with audio .play() from Amazon Polly blob

With the new beta for iPhones with iOS 15.4, I'm getting an error playing audios obtained from Amazon Polly.

I use the Amazon Polly api to generate on the fly audios with custom text. This api returns the url of a generated blob where the created audio is stored.

The blob generation seems to be correct, but when that url is assigned to the audio src, and .play() is tried, it returns the error: 'Failed to load resource: the server responded with a status of 416 (Requested Range Not Satisfiable)', and after that the audio does not play back.

This happens only with the latest iOS beta (15.4), with the other versions there is no problem.

Below is a screenshot of the error that appears in the Safari Technology Preview Network.

Thanks in advance!!

@cr3spo, Did you find a solution for this problem ?

Same problem here. When using blob URLs, the outcoming network requests from the media element have this byte range bytes=0-* which is causing the 416 (Requested Range Not Satisfiable) error. In previous Safari versions, the byte range would be bytes=0-, without the * basically. Really hope Apple, or the WebKit team, fixes this soon!

We launch a project for a client and right after 15.4 the blob URL is never ending the load. Basically continuously loading the original file(size is 148k) and never ending; which is causing the file size to go up(see screenshot). If I let it run long enough the download file just keeps eating away at the browser memory.

Summary
URL: blob:https://10.0.0.29:8443/75eec6f6-3b08-4f8b-b0d8-8fc3518d9836
Status: 206 Partial Content
Source: Network

Request
Range: bytes=178-313
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1
Accept: */*
X-Playback-Session-Id: 9A436DB1-1720-45A9-A6DA-1995B65A0D14

Response
Content-Type: audio/mpeg
Content-Length: 136
Content-Range: bytes 178-313/147556

// Then next one is

URL: blob:https://10.0.0.29:8443/75eec6f6-3b08-4f8b-b0d8-8fc3518d9836
Status: 206 Partial Content
Source: Network

Request
Range: bytes=65536-131071
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1
Accept: */*
X-Playback-Session-Id: 9A436DB1-1720-45A9-A6DA-1995B65A0D14

Response
Content-Type: audio/mpeg
Content-Length: 65536
Content-Range: bytes 65536-131071/147556

////////// After that it continues loading and never ends

URL: blob:https://10.0.0.29:8443/75eec6f6-3b08-4f8b-b0d8-8fc3518d9836
Status: 206 Partial Content
Source: Network

Request
Range: bytes=131072-
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/604.1
Accept: */*
X-Playback-Session-Id: 9A436DB1-1720-45A9-A6DA-1995B65A0D14

Response
Content-Type: audio/mpeg
Content-Length: 16484
Content-Range

I have added a screen grab as reference. I hope Apple really looks into this. This was working in previous version of IOS only broke with this update 15.4 and 15.4.1.

Issue with Safari on iOS 15.4 with audio .play() from Amazon Polly blob
 
 
Q