Bug 158799 - gUM crashes when creating a MediaStream with only an audio or only a video MediaStreamTrack
Summary: gUM crashes when creating a MediaStream with only an audio or only a video Me...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Other
Hardware: All Other
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-06-15 10:54 PDT by George Ruan
Modified: 2016-11-10 17:15 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Ruan 2016-06-15 10:54:44 PDT
http://www.w3.org/TR/mediacapture-streams/#methods-5

Currently, the implementation of gUM expects
- The parameter to gUM to have both audio and video constraints to have non-falsy values.
- Both a video and audio source to be available.

The implementation crashes since UserMediaRequest::constraintsValidated expects defined parameters audioSource and videoSource.
Comment 1 Radar WebKit Bug Importer 2016-06-15 10:57:46 PDT
<rdar://problem/26817452>
Comment 2 Eric Carlson 2016-11-10 17:15:59 PST
This turned out to be a bug in unrelated code.