Bug 236203 - MediaRecorder produces unplayable video
Summary: MediaRecorder produces unplayable video
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Intel) macOS 12
: P2 Normal
Assignee: Nobody
URL: https://codesandbox.io/s/media-record...
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-06 10:44 PST by Paul
Modified: 2022-06-23 15:09 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul 2022-02-06 10:44:40 PST
# 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!
Comment 1 Radar WebKit Bug Importer 2022-02-13 10:45:15 PST
<rdar://problem/88874481>
Comment 2 youenn fablet 2022-04-07 05:45:20 PDT
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?
Comment 3 yuki uchida 2022-04-11 22:24:28 PDT
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.
Comment 4 pauldconlin 2022-05-05 08:02:33 PDT
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!