Change a disabled MediaStreamVideoTrack to output black video frames for each incomin...
commitae2dfa8a611aa8d7301fcc3765c24b1f5fa8c9c5
authorperkj@chromium.org <perkj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 6 Aug 2014 16:44:57 +0000 (6 16:44 +0000)
committerperkj@chromium.org <perkj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 6 Aug 2014 16:44:57 +0000 (6 16:44 +0000)
tree185e5884ef1251849ccf192e0c5527484f4e5a98
parent56d5525340bd1144554e47cfb5026d31fa974f56
Change a disabled MediaStreamVideoTrack to output black video frames for each incoming frame.
The frame provided to the track is unchanged. Instead a black frame with the same timestamp is created and forwarded to the sinks.
Please see the bug and the discussion in https://groups.google.com/forum/#!topic/discuss-webrtc/nZWA0prohio for rational.

BUG=398844
TEST= open https://apprtc.appspot.com in two tabs to create a call. Hit Ctrl-shift-e in the first tab to disable the local video track. Notice that local video is black.  Open the second tab and notice that the remote video is black.

Review URL: https://codereview.chromium.org/432903002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287787 0039d316-1c4b-4281-b951-d872f2087c98
content/renderer/media/media_stream_video_track.cc
content/renderer/media/media_stream_video_track_unittest.cc
content/renderer/media/mock_media_stream_video_sink.cc
content/renderer/media/mock_media_stream_video_sink.h
content/renderer/media/rtc_video_renderer.cc
content/renderer/media/rtc_video_renderer.h