Bug 215213
Summary: | [iOS 14] MediaStream becomes inactive after video it was assigned to is removed from the DOM | ||
---|---|---|---|
Product: | WebKit | Reporter: | Artjom <artjomvinnikov> |
Component: | Media | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | Other | ||
Hardware: | iPhone / iPad | ||
OS: | Other |
Artjom
OS: iOS 14 Beta 3
Steps:
1. Request a stream with getUserMedia and feed it into <video> via srcObject
2. Remove video from the DOM
3. After ~5 seconds camera stream becomes inactive. Camera recording icon gets hidden from url bar, and stream.active returns false.
Small demo to reproduce: https://codesandbox.io/s/smoosh-thunder-1frcl?file=/index.html
Not sure if this is desired behaviour, but it doesn't happen with Safari 13.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/66634379>
youenn fablet
Thanks Artjom, this might be the memory leak that happens when video element is not rendered but playing.
This should be fixed by https://bugs.webkit.org/show_bug.cgi?id=214262 patch in https://trac.webkit.org/changeset/264312.
I would think this change is included in latest iOS beta 4.
Can you validate this?
Artjom
(In reply to youenn fablet from comment #2)
> Thanks Artjom, this might be the memory leak that happens when video element
> is not rendered but playing.
> This should be fixed by https://bugs.webkit.org/show_bug.cgi?id=214262 patch
> in https://trac.webkit.org/changeset/264312.
> I would think this change is included in latest iOS beta 4.
> Can you validate this?
Yes, updating to Beta 4 resolved the issue. Thanks.
Alexey Proskuryakov
*** This bug has been marked as a duplicate of bug 214262 ***