|
Cast Extensions API: Factory method for creating a cast session
There are separate chrome.webrtc.castSendTransport.create and
chrome.webrtc.castUdpTransport.create methods. However these objects
are never used alone. They require a session to operate and having them
separate is confusing.
Instead unify the session creation in one factory method:
chrome.cast.streaming.session.create(
WebMediaStreamTrack audioTrack,
WebMediaStreamTrack videoTrack,
CreateCallback);
The above method will construct a session and create objects for
the RTP streams and the UDP transport. These streams can then be
configured by existing APIs.
Another change is the new cast.streaming namespace. Eventually
everything in chrome.webrtc will be moved there so we have a mix for
now. But we'll unify all the namespaces to cast.streaming in a couple
patches.
To summarize:
The following two APIs are removed:
1. chrome.webrtc.castSendTransport.create
2. chorme.webrtc.castUdpTransport.create
The following API is new:
1. chrome.cast.streaming.session.create
BUG= 301920
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238254
Total comments: 4
Total comments: 4
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+179 lines, -176 lines) |
Patch |
 |
M |
chrome/common/extensions/api/_api_features.json
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/_permission_features.json
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/api.gyp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/common/extensions/api/cast_streaming_session.idl
|
View
|
1
2
|
1 chunk |
+34 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/webrtc_cast_send_transport.idl
|
View
|
1
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/webrtc_cast_udp_transport.idl
|
View
|
|
2 chunks |
+4 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/permissions/chrome_api_permissions.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/permissions/permission_set_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/dispatcher.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/webrtc_native_handler.h
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/webrtc_native_handler.cc
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+57 lines, -37 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_send_transport.h
|
View
|
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_send_transport.cc
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_udp_transport.h
|
View
|
1
2
|
1 chunk |
+5 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/media/cast_udp_transport.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
A |
chrome/renderer/resources/extensions/cast_streaming_session_custom_bindings.js
|
View
|
1
2
3
4
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/extensions/webrtc_cast_udp_transport_custom_bindings.js
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/renderer_resources.grd
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/webrtc_cast/basics.js
|
View
|
1
2
|
1 chunk |
+17 lines, -78 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/webrtc_cast/manifest.json
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
extensions/common/permissions/api_permission.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 34 (0 generated)
|