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

Unified Diff: chrome/common/extensions/api/cast_streaming.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: merged Created 7 years, 1 month 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
Index: chrome/common/extensions/api/cast_streaming.idl
diff --git a/chrome/common/extensions/api/cast_streaming.idl b/chrome/common/extensions/api/cast_streaming.idl
new file mode 100644
index 0000000000000000000000000000000000000000..db4c9910c908402a5120bfb72c11f655426bb1cf
--- /dev/null
+++ b/chrome/common/extensions/api/cast_streaming.idl
@@ -0,0 +1,28 @@
+// 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</code> API creates a Cast
+// session using WebMediaStreamTrack as sources. The session is composed
+// by RTP streams and a network transport.
+namespace cast.streaming {
+ // Callback from the <code>castCreateSession</code> method.
+ // |id| : The transport id.
haibinlu 2013/11/23 02:10:00 document parameters.
+ callback CreateCallback = void (long audioId,
haibinlu 2013/11/23 02:10:00 audioId and vidoeId are unclear.
+ long videoId,
+ long transportId);
haibinlu 2013/11/23 02:10:00 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 createSession(
+ [instanceOf=MediaStreamTrack] object audioTrack,
+ [instanceOf=MediaStreamTrack] object videoTrack,
+ CreateCallback callback);
+ };
+};

Powered by Google App Engine
This is Rietveld 408576698