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..8bbfc379c4a4588af1998a2ada280749185fec74 |
--- /dev/null |
+++ b/chrome/common/extensions/api/cast_streaming.idl |
@@ -0,0 +1,30 @@ |
+// 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. |
+ // |audioTransportId| : The audio tranport 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 createSession( |
+ [instanceOf=MediaStreamTrack] object audioTrack, |
+ [instanceOf=MediaStreamTrack] object videoTrack, |
+ CreateCallback callback); |
+ }; |
+}; |