|
Cast: Add JS API to get raw events logs from cast extension.
- 3 new APIs will be added to cast.streaming.rtpStream: startLogging, getRawEvents and getStats.
-- startLogging will install a event subscriber and start listening to events for a stream.
-- getRawEvents will return a string of serialized raw events logs for that stream.
-- getStats will return a Blob of stats for that stream in serialized format.
- Currently, only getRawEvents is implemented. This will finish the plumbing of raw event logs from cast library to extension to Js.
- CastSessionDelegate keeps a map from stream id to EncodingEventSubscribers instead of just having one subscriber for audio and one for video. Subscribers for a stream are only created when startLogging() for that stream is called.
- CastRtpStream keeps track of stream id so it can be passed to CastSessionDelegate. The ID will be set when it is assigned by CastStreamingNativeHandler.
BUG= 301920, 338574
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253686
Total comments: 4
Total comments: 10
Total comments: 5
Total comments: 9
Total comments: 2
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+338 lines, -108 lines) |
Patch |
 |
M |
chrome/browser/extensions/cast_streaming_apitest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/cast_streaming_rtp_stream.idl
|
View
|
1
2
3
|
2 chunks |
+29 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/cast_streaming_native_handler.h
|
View
|
1
|
3 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/cast_streaming_native_handler.cc
|
View
|
1
2
|
2 chunks |
+74 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_rtp_stream.h
|
View
|
1
2
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_rtp_stream.cc
|
View
|
1
2
3
4
|
2 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_session.h
|
View
|
1
2
3
4
|
2 chunks |
+10 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_session.cc
|
View
|
1
2
3
4
|
2 chunks |
+14 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_session_delegate.h
|
View
|
1
2
3
4
|
3 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_session_delegate.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+73 lines, -21 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/extensions/cast_streaming_rtp_stream_custom_bindings.js
|
View
|
1
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/api_test/cast_streaming/bad_logging.html
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -7 lines |
0 comments
|
Download
|
 |
A + |
chrome/test/data/extensions/api_test/cast_streaming/bad_logging.js
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+12 lines, -31 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/cast_streaming/basics.html
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/cast_streaming/basics.js
|
View
|
1
2
3
4
5
|
3 chunks |
+13 lines, -29 lines |
0 comments
|
Download
|
 |
A |
chrome/test/data/extensions/api_test/cast_streaming/common.js
|
View
|
1
2
3
4
5
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/cast/logging/log_serializer.h
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
media/cast/logging/log_serializer.cc
|
View
|
1
2
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/cast/test/sender.cc
|
View
|
1
2
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
Total messages: 36 (0 generated)
|