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

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: merged 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 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 // |id| : The transport id.
haibinlu 2013/11/23 02:10:00 document parameters.
11 callback CreateCallback = void (long audioId,
haibinlu 2013/11/23 02:10:00 audioId and vidoeId are unclear.
12 long videoId,
13 long transportId);
haibinlu 2013/11/23 02:10:00 udpTransportId?
14
15 interface Functions {
16 // Creates a Cast session using the provided audio and video track as
17 // source. This will create two RTP streams and a UDP transport that
18 // builds the session.
19 //
20 // |audioTrack| : the source audio track.
21 // |videoTrack| : the source video track.
22 // |callback| : Called when the sesion has been created.
23 [nocompile] static void createSession(
24 [instanceOf=MediaStreamTrack] object audioTrack,
25 [instanceOf=MediaStreamTrack] object videoTrack,
26 CreateCallback callback);
27 };
28 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698