Bug 236203

Summary: MediaRecorder produces unplayable video
Product: WebKit Reporter: Paul <paconlin>
Component: WebRTCAssignee: 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
Reported 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!
Attachments
Radar WebKit Bug Importer
Comment 1 2022-02-13 10:45:15 PST
youenn fablet
Comment 2 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?
yuki uchida
Comment 3 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.
pauldconlin
Comment 4 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!
Note You need to log in before you can comment on or make changes to this bug.