Bug 236203
| Summary: | MediaRecorder produces unplayable video | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Paul <paconlin> |
| Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | bfulgham, pauldconlin, rantarn0326, webkit-bug-importer, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Mac (Intel) | ||
| OS: | macOS 12 | ||
| URL: | https://codesandbox.io/s/media-recorder-6tlzb | ||
Paul
# Overview
Standard MediaRecorder capture of video element results in unplayable video on STP Release 139 (Safari 15.4, WebKit 17613.1.14.41.3)
## Steps to reproduce
1. Visit https://codesandbox.io/s/media-recorder-6tlzb
2. Click "Start camera"
3. Accept permissions for camera and microphone
4. Click "Start Recording"
5. Wait a few seconds
6. Click "Stop recording"
7. Click "Play"
## Actual Results
Resulting video is stuck on single frame
## Expected Results
Video should play back as expected
## Build Date & Hardware
STP Release 139 (Safari 15.4, WebKit 17613.1.14.41.3)
MacOS Version 12.2 (21D49)
## Additional information
* Sometimes the duration shows as 00:00:00 out of 1988:24:43 or something similar
* Works as expected on Version 15.3 (17612.4.9.1.5)
* If you download the video, it works in Quicktime. But if you try to drop the downloaded video back in the browser, it doesn't play.
Happy to provide any other details. Thanks!
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/88874481>
youenn fablet
Works for me in Stock Safari 15.4 as well as STP 40 in MacOS 15.3.
@Paul, is it on Apple Silicon or Intel machine.
Is the recording issue always happening or only from time to time?
yuki uchida
Hello.
I am suffering from the same problem.
This problem occurs on iPhone 11 iOS15.4.
It does not occur all the time, but once it occurs, it occurs more frequently after that.
After some investigation, I found that the data size returned by MediaRecorder's ondataavailable event is 0.
I used the sample code given in #1.
pauldconlin
Thanks for taking a look, Youenn!
I downloaded the latest STP and it seems to be resolved for me now. Will keep an eye on it and let you know if it pops up for me again.
Thanks!