WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
216076
MediaRecorder timeslice parameter causing internal error on longer videos
https://bugs.webkit.org/show_bug.cgi?id=216076
Summary
MediaRecorder timeslice parameter causing internal error on longer videos
Paul
Reported
2020-09-02 07:36:45 PDT
Created
attachment 407762
[details]
Console errors on playback Using the latest STP, I'm trying to use the newly available timeslice parameter in the MediaRecorder.start() method. When creating short videos (~10 seconds) things seem to work as expected. However, when creating longer videos (1 minute or greater), the video will only play through a portion of the video and the console will log saying there was an internal webkit error. Steps to reproduce - 1. Visit
https://codesandbox.io/s/media-recorder-6tlzb
(sandbox is set to use a 1000ms timeslice) 2. Press "Start Camera" and allow permissions. 3. Press "Start Recording" and let the recording run for 1 minute or longer. 4. Press "Stop Recording" 5. Press "Play" Actual Results Playback is shorter than the recorded duration, and the console logs an internal webkit error. "Failed to load resource: WebKit encountered an internal error" "Failed to load resource: The operation couldn’t be completed. (WebKitBlobResource error 1.)" Expected Results Video plays through the same length as the recorded duration with no errors. Additional Information: Release 112 (Safari 14.0, WebKit 15610.1.25.5.1) macOS 10.15.6 (19G2021)
Attachments
Console errors on playback
(160.74 KB, image/png)
2020-09-02 07:36 PDT
,
Paul
no flags
Details
Patch
(4.36 KB, patch)
2020-09-04 07:25 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch
(6.20 KB, patch)
2020-09-04 08:16 PDT
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2020-09-02 07:42:54 PDT
<
rdar://problem/68209422
>
youenn fablet
Comment 2
2020-09-02 07:52:00 PDT
I can repro this issue with the real camera but not the mock one.
youenn fablet
Comment 3
2020-09-02 08:13:12 PDT
Actually no, I just need to wait longer for this error to happen with mock. I am wondering whether this has to do with the size of the data.
youenn fablet
Comment 4
2020-09-04 07:25:55 PDT
Created
attachment 407967
[details]
Patch
youenn fablet
Comment 5
2020-09-04 07:29:21 PDT
Issue is related to blob resource loading. MediaRecorder can still be used to upload streamed data but it is difficult to directly play it.
youenn fablet
Comment 6
2020-09-04 08:16:13 PDT
Created
attachment 407973
[details]
Patch
Eric Carlson
Comment 7
2020-09-04 08:29:17 PDT
Comment on
attachment 407973
[details]
Patch Nice fix!
EWS
Comment 8
2020-09-04 09:11:14 PDT
Committed
r266611
: <
https://trac.webkit.org/changeset/266611
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 407973
[details]
.
Paul
Comment 9
2020-09-08 05:58:07 PDT
Thanks Youenn!!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug