Summary: | MediaStream API: Need to support MediaStream constructor | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | William Lin <wei.a.lin> | ||||||||
Component: | DOM | Assignee: | Jeremy Mao <yujie.mao> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | abarth, ojan, tommyw, webkit.review.bot, wei.a.lin, yujie.mao | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
William Lin
2012-02-15 23:11:16 PST
Created attachment 127317 [details]
UseCase
1. click 'add webcam' button to get local MediaStream
2. click 'duplicate mediaStream' button to construct a new MediaStream
Created attachment 127319 [details]
P
Thanks for fixing! Comment on attachment 127319 [details] P If you'd like this patch incorporated into trunk, please see these instructions: http://www.webkit.org/coding/contributing.html In particular, you need to mark the patch review? and include a test that exercises your change. Comment on attachment 127319 [details] P View in context: https://bugs.webkit.org/attachment.cgi?id=127319&action=review > Source/WebCore/ChangeLog:3 > + Fix bug from r107672. This line should also match the title of the bug. Created attachment 132557 [details]
Patch
This isn't specific to JSC. Comment on attachment 132557 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=132557&action=review Ok. Ideally we'd have a test that exercises the constructor. > Source/WebCore/ChangeLog:8 > + No new tests. Does this make some of the existing tests pass? Just FYI: Creating a MediaStram out of tracks from other MediaStreams isn't tested in Chromium yet. (In reply to comment #7) > This isn't specific to JSC. Yes, it's not specific to JSC, thanks for changing the title. (In reply to comment #8) > (From update of attachment 132557 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=132557&action=review > Ok. Ideally we'd have a test that exercises the constructor. > > Source/WebCore/ChangeLog:8 > > + No new tests. > Does this make some of the existing tests pass? Currently in Webkit there's no tests exercise this media stream constructor, because creating a new media stream need a exsiting media steam which we cannot get from getUserMedia. getUserMedia now has a impelementation only for the chromium port, I have tested this use case on chromium, it works. Comment on attachment 132557 [details] Patch Clearing flags on attachment: 132557 Committed r111558: <http://trac.webkit.org/changeset/111558> All reviewed patches have been landed. Closing bug. |