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