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

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

Issue 938903003: Cast: Javascript bindings for cast receiver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cast_receiver_session
Patch Set: removed local port Created 5 years, 9 months 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
OLDNEW
(Empty)
1 // Copyright 2015 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.receiverSession</code> API creates a Cast
6 // receiver session and adds the resulting audio and video tracks to a
7 // MediaStream.
8 namespace cast.streaming.receiverSession {
9 // The UDP socket address and port.
10 dictionary IPEndPoint {
11 DOMString address;
12 long port;
13 };
14
15 // Params for audio and video codec.
16 dictionary CodecSpecificParams {
Yoyo Zhou 2015/03/04 03:12:15 Is this actually used?
hubbe 2015/03/04 23:12:33 Not anymore -- deleted.
17 DOMString key;
18 DOMString value;
19 };
20
21 // RTP receiver parameters.
22 dictionary RtpReceiverParams {
23 // Maximum latency in milliseconds. This parameter controls the logic
24 // of flow control. Implementation can adjust latency adaptively and
25 // tries to keep it under this threshold. A larger value allows smoother
26 // playback at the cost of higher latency.
27 long maxLatency;
28
29 DOMString codecName;
30
31 // Synchronization source identifier.
32 long ssrc;
33
34 long feedbackSsrc;
Yoyo Zhou 2015/03/04 03:12:15 Document this
hubbe 2015/03/04 23:12:33 Done.
35
36 // Defaults to 48000 for audio and 90000 for video.
Yoyo Zhou 2015/03/04 03:12:15 This should say something like the comment I found
hubbe 2015/03/04 23:12:33 Done.
37 long? rtpTimebase;
38
39 // 32 bytes hex-encoded AES key.
40 DOMString? aesKey;
41
42 // 32 bytes hex-encoded AES IV (Initialization vector) mask.
43 DOMString? aesIvMask;
44 };
45
46 callback ErrorCallback = void (DOMString error);
47
48 interface Functions {
49 // Creates a Cast receiver session which receives data from a UDP
50 // socket. The receiver will decode the incoming data into an audio
51 // and a video track which will be added to the provided media stream.
52 // The |audioParams| and |videoParams| is generally provided by the
Yoyo Zhou 2015/03/04 03:12:15 nit: 'is' -> 'are'
hubbe 2015/03/04 23:12:33 Done.
53 // sender through some other messaging channel.
54 //
55 // |audioParams| : the video stream parameters
Yoyo Zhou 2015/03/04 03:12:15 The audio stream parameters.
hubbe 2015/03/04 23:12:33 Done.
56 // |videoParams| : the video stream parameters
Yoyo Zhou 2015/03/04 03:12:15 nit: Be consistent capitalizing and punctuating.
hubbe 2015/03/04 23:12:33 Done.
57 // |localEndpoint| : Set this to bind() to a local UDP port.
58 // |height| : Video height
59 // |width| : Video width
60 // |maxFrameRate| : Max video frame rate.
61 // |mediaStreamURL| : URL of MediaStream to add the audio & video to.
Yoyo Zhou 2015/03/04 03:12:15 nit: 'and' rather than '&'
hubbe 2015/03/04 23:12:33 Done.
62 // |transport_options| : Optional transport settings.
63 [nocompile] static void createAndBind(
64 RtpReceiverParams audioParams,
65 RtpReceiverParams videoParams,
66 IPEndPoint localEndpoint,
67 long maxWidth,
68 long maxHeight,
69 double maxFrameRate,
70 DOMString mediaStreamURL,
71 ErrorCallback error_callback,
72 optional object transport_options);
73 };
74 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698