|
MediaRecorder: make MediaRecorderHandler a MediaStreamObserver
MediaRecorderHandler should observe the MediaStream being recorded and
stop recording it if the amount of Tracks varies. For that purpose this CL
makes MRH a MediaStreamObserver and registers itself during initialize().
MS expects currently that the observer de-register themselves before
~MS(), but that seem to prohibitively peg Observer and Observee lifetime,
so that condition is removed.
LayoutTests need the WebMediaStream to have at least an empty
content/MediaStream, so test_runner/web_test_delegate needs to
be updated to rely on a method AddMediaStream implemented in
content_shell's BlinkTestRunner to use the content/public/renderer
MediaStreamApi :)
BUG= 545156
Total comments: 15
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+140 lines, -23 lines) |
Patch |
|
M |
components/html_viewer/web_test_delegate_impl.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
components/html_viewer/web_test_delegate_impl.cc
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
components/test_runner/mock_web_user_media_client.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
components/test_runner/web_test_delegate.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/media/webrtc_media_recorder_browsertest.cc
|
View
|
1
2
|
4 chunks |
+19 lines, -8 lines |
0 comments
|
Download
|
|
M |
content/public/renderer/media_stream_api.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/renderer/media_stream_api.cc
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/media_recorder_handler.h
|
View
|
1
2
|
5 chunks |
+10 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/media_recorder_handler.cc
|
View
|
1
2
|
5 chunks |
+16 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/media_stream.h
|
View
|
1
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/media_stream.cc
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/shell/renderer/layout_test/blink_test_runner.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/shell/renderer/layout_test/blink_test_runner.cc
|
View
|
1
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/test/data/media/mediarecorder_test.html
|
View
|
1
2
|
1 chunk |
+67 lines, -0 lines |
0 comments
|
Download
|
Total messages: 16 (7 generated)
|