OLD | NEW |
---|---|
(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 }; | |
OLD | NEW |