RESOLVED FIXED 168281
Disabled Media Sources should render black/silence
https://bugs.webkit.org/show_bug.cgi?id=168281
Summary Disabled Media Sources should render black/silence
Jer Noble
Reported 2017-02-13 22:47:04 PST
Disabled Media Sources should render black/silence
Attachments
Patch (16.00 KB, patch)
2017-02-13 22:53 PST, Jer Noble
eric.carlson: review+
Patch for landing (19.59 KB, patch)
2017-02-14 12:42 PST, Jer Noble
no flags
Jer Noble
Comment 1 2017-02-13 22:53:50 PST
Radar WebKit Bug Importer
Comment 2 2017-02-13 22:54:44 PST
Alex Christensen
Comment 3 2017-02-14 00:05:46 PST
Comment on attachment 301456 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301456&action=review > Source/WebCore/platform/mediastream/mac/RealtimeOutgoingVideoSource.cpp:88 > + if (!m_muted && m_enabled) { > + ASSERT(sample.platformSample().type == PlatformSample::CMSampleBufferType); > + auto pixelBuffer = static_cast<CVPixelBufferRef>(CMSampleBufferGetImageBuffer(sample.platformSample().sample.cmSampleBuffer)); Do we want muting to affect the pixels? Is it possible to mute but still send video?
Jer Noble
Comment 4 2017-02-14 07:18:03 PST
Comment on attachment 301456 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301456&action=review >> Source/WebCore/platform/mediastream/mac/RealtimeOutgoingVideoSource.cpp:88 >> + auto pixelBuffer = static_cast<CVPixelBufferRef>(CMSampleBufferGetImageBuffer(sample.platformSample().sample.cmSampleBuffer)); > > Do we want muting to affect the pixels? Is it possible to mute but still send video? The spec is explicit: disabling and muting each will cause the source to emit silence or black frames. Muting, here, doesn't necessarily refer to audio.
Eric Carlson
Comment 5 2017-02-14 07:25:40 PST
Comment on attachment 301456 [details] Patch This should have a test.
Jer Noble
Comment 6 2017-02-14 09:08:28 PST
(In reply to comment #5) > Comment on attachment 301456 [details] > Patch > > This should have a test. Hm, we should be able to render a stream to Web Audio and canvas, where we can verify that only silence/black is rendered.
Jer Noble
Comment 7 2017-02-14 12:42:14 PST
Created attachment 301533 [details] Patch for landing
WebKit Commit Bot
Comment 8 2017-02-15 14:46:05 PST
Comment on attachment 301533 [details] Patch for landing Clearing flags on attachment: 301533 Committed r212399: <http://trac.webkit.org/changeset/212399>
Note You need to log in before you can comment on or make changes to this bug.