Bug 249250

Summary: REGRESSION: iOS 16/Safari 16 Media Recorder API throwing errors
Product: WebKit Reporter: Joyce Ma <joma>
Component: Web AudioAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Critical CC: cdumez, eric.carlson, jer.noble, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: iOS 16   
Attachments:
Description Flags
Error from example application none

Description Joyce Ma 2022-12-13 13:32:37 PST
Created attachment 464028 [details]
Error from example application

Currently, the Media Recorder API is no longer working on iOS 16 devices. However, testing on iOS 15 devices prove this feature to be functional. 

Reproducibility: 100%

Devices used: 
1. iPhone 11 Pro + iOS 16.1 reproducible
2. iPhone 11 Pro + iOS 15.5

Steps to reproduce:
Using the MediaStream Recording API Documentation: https://developer.mozilla.org/en-US/docs/Web/API/MediaStream_Recording_API/Using_the_MediaStream_Recording_API

1. Using the application provided by MDN: https://mdn.github.io/dom-examples/media/web-dictaphone/
2. Open application on iOS 16 device
3. Click Record, record for some time
4. Click Stop, save sound clip
5. Click play on the sound clip

Expected result:
The application should play back the recorded audio.

Actual Result:
The application throws an error.
Comment 1 Radar WebKit Bug Importer 2022-12-14 11:53:30 PST
<rdar://problem/103366321>
Comment 2 youenn fablet 2022-12-15 03:01:33 PST
https://mdn.github.io/dom-examples/media/web-dictaphone/ is expecting ogg/opus while media recorder is generating audio/mp4.
It might be good to put the right mime type on the blob given to the audio element.
Let me know if that fixes your issue.
Comment 3 youenn fablet 2022-12-16 06:14:22 PST
Marking as behave as expected, please reopen if changing the media type does not fix the issue.