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

Side by Side 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: remove castSendTransport.create 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // The <code>chrome.cast.streaming</code> API creates a Cast
6 // session using WebMediaStreamTrack as sources. The session is composed
7 // by RTP streams and a network transport.
8 namespace cast.streaming {
9 // Callback from the <code>castCreateSession</code> method.
10 // |audioTransportId| : The audio tranport ID.
11 // |videoTransportId| : The video transport ID.
12 // |udpTransportId| : The UDP transport ID.
13 callback CreateCallback = void (long audioTransportId,
14 long videoTransportId,
15 long udpTransportId);
16
17 interface Functions {
18 // Creates a Cast session using the provided audio and video track as
19 // source. This will create two RTP streams and a UDP transport that
20 // builds the session.
21 //
22 // |audioTrack| : the source audio track.
23 // |videoTrack| : the source video track.
24 // |callback| : Called when the sesion has been created.
25 [nocompile] static void createSession(
26 [instanceOf=MediaStreamTrack] object audioTrack,
27 [instanceOf=MediaStreamTrack] object videoTrack,
28 CreateCallback callback);
29 };
30 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698