Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Unified Diff: chrome/common/extensions/api/cast_streaming_session.idl

Issue 83043005: Cast Extensions API: Factory method for creating a cast session (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed scope Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/api/webrtc_cast_send_transport.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/cast_streaming_session.idl
diff --git a/chrome/common/extensions/api/cast_streaming_session.idl b/chrome/common/extensions/api/cast_streaming_session.idl
new file mode 100644
index 0000000000000000000000000000000000000000..5250c61e509b8c8b1996132fee97c625befdc14d
--- /dev/null
+++ b/chrome/common/extensions/api/cast_streaming_session.idl
@@ -0,0 +1,34 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// The <code>chrome.cast.streaming.session</code> API creates a Cast
+// session using WebMediaStreamTrack as sources. The session is composed
+// by RTP streams and a network transport.
+//
+// Calling this API will generate corresponding resources for use with
+// chrome.webrtc.castSendTransport and chrome.webrtc.castUdpTransport
+// APIs.
+namespace cast.streaming.session {
+ // Callback from the <code>create</code> method.
+ // |audioTransportId| : The audio transport ID.
+ // |videoTransportId| : The video transport ID.
+ // |udpTransportId| : The UDP transport ID.
+ callback CreateCallback = void (long audioTransportId,
+ long videoTransportId,
+ long udpTransportId);
+
+ interface Functions {
+ // Creates a Cast session using the provided audio and video track as
+ // source. This will create two RTP streams and a UDP transport that
+ // builds the session.
+ //
+ // |audioTrack| : the source audio track.
+ // |videoTrack| : the source video track.
+ // |callback| : Called when the sesion has been created.
+ [nocompile] static void create(
+ [instanceOf=MediaStreamTrack] object audioTrack,
+ [instanceOf=MediaStreamTrack] object videoTrack,
+ CreateCallback callback);
+ };
+};
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/common/extensions/api/webrtc_cast_send_transport.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698