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

Side by Side Diff: chrome/common/extensions/api/cast_streaming_session.idl

Issue 90083002: Cast Extensions API: Major namespace and object renaming (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit_tests 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The <code>chrome.cast.streaming.session</code> API creates a Cast 5 // The <code>chrome.cast.streaming.session</code> API creates a Cast
6 // session using WebMediaStreamTrack as sources. The session is composed 6 // session using WebMediaStreamTrack as sources. The session is composed
7 // by RTP streams and a network transport. 7 // by RTP streams and a network transport.
8 // 8 //
9 // Calling this API will generate corresponding resources for use with 9 // Calling this API will generate corresponding resources for use with
10 // chrome.webrtc.castSendTransport and chrome.webrtc.castUdpTransport 10 // chrome.cast.streaming.rtpStream and chrome.cast.streaming.udpTransport
11 // APIs. 11 // APIs.
12 namespace cast.streaming.session { 12 namespace cast.streaming.session {
13 // Callback from the <code>create</code> method. 13 // Callback from the <code>create</code> method.
14 // |audioTransportId| : The audio transport ID. 14 // |audioStreamId| : The audio RTP stream ID.
15 // |videoTransportId| : The video transport ID. 15 // |videoStreamId| : The video RTP stream ID.
16 // |udpTransportId| : The UDP transport ID. 16 // |udpTransportId| : The UDP transport ID.
17 callback CreateCallback = void (long audioTransportId, 17 callback CreateCallback = void (long audioStreamId,
18 long videoTransportId, 18 long videoStreamId,
19 long udpTransportId); 19 long udpTransportId);
20 20
21 interface Functions { 21 interface Functions {
22 // Creates a Cast session using the provided audio and video track as 22 // Creates a Cast session using the provided audio and video track as
23 // source. This will create two RTP streams and a UDP transport that 23 // source. This will create two RTP streams and a UDP transport that
24 // builds the session. 24 // builds the session.
25 // 25 //
26 // |audioTrack| : the source audio track. 26 // |audioTrack| : the source audio track.
27 // |videoTrack| : the source video track. 27 // |videoTrack| : the source video track.
28 // |callback| : Called when the sesion has been created. 28 // |callback| : Called when the sesion has been created.
29 [nocompile] static void create( 29 [nocompile] static void create(
30 [instanceOf=MediaStreamTrack] object audioTrack, 30 [instanceOf=MediaStreamTrack] object audioTrack,
31 [instanceOf=MediaStreamTrack] object videoTrack, 31 [instanceOf=MediaStreamTrack] object videoTrack,
32 CreateCallback callback); 32 CreateCallback callback);
33 }; 33 };
34 }; 34 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698