OLD | NEW |
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.rtpStream</code> API allows configuration | 5 // The <code>chrome.cast.streaming.rtpStream</code> API allows configuration |
6 // of encoding parameters and RTP parameters used in a Cast streaming | 6 // of encoding parameters and RTP parameters used in a Cast streaming |
7 // session. | 7 // session. |
8 // | 8 // |
9 // Valid stream IDs are positive and non-zero. | 9 // Valid stream IDs are positive and non-zero. |
10 namespace cast.streaming.rtpStream { | 10 namespace cast.streaming.rtpStream { |
11 // Params for audio and video codec. | 11 // Params for audio and video codec. |
12 dictionary CodecSpecificParams { | 12 dictionary CodecSpecificParams { |
13 DOMString key; | 13 DOMString key; |
14 DOMString value; | 14 DOMString value; |
15 }; | 15 }; |
16 | 16 |
17 // RTP payload param. | 17 // RTP payload param. |
18 dictionary RtpPayloadParams { | 18 dictionary RtpPayloadParams { |
19 long payloadType; | 19 long payloadType; |
20 | 20 |
21 // Maximum latency in milliseconds. This parameter controls the logic | 21 // Maximum latency in milliseconds. This parameter controls the logic |
22 // of flow control. Implementation can adjust latency adaptively and | 22 // of flow control. Implementation can adjust latency adaptively and |
23 // tries to keep it under this threshold. A larger value allows smoother | 23 // tries to keep it under this threshold. A larger value allows smoother |
24 // playback at the cost of higher latency. | 24 // playback at the cost of higher latency. |
25 long maxLatency; | 25 long maxLatency; |
26 | 26 |
| 27 // Minimum latency in milliseconds. Defaults to |maxLatency|. |
| 28 long? minLatency; |
| 29 |
27 DOMString codecName; | 30 DOMString codecName; |
28 | 31 |
29 // Synchronization source identifier. | 32 // Synchronization source identifier. |
30 long ssrc; | 33 long ssrc; |
31 | 34 |
32 long feedbackSsrc; | 35 long feedbackSsrc; |
33 | 36 |
34 long? clockRate; | 37 long? clockRate; |
35 | 38 |
36 // Minimum bitrate in kilobits per second. | 39 // Minimum bitrate in kilobits per second. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // Event fired when a Cast RTP stream has stopped. | 138 // Event fired when a Cast RTP stream has stopped. |
136 // |streamId| : The ID of the RTP stream. | 139 // |streamId| : The ID of the RTP stream. |
137 static void onStopped(long streamId); | 140 static void onStopped(long streamId); |
138 | 141 |
139 // Event fired when a Cast RTP stream has error. | 142 // Event fired when a Cast RTP stream has error. |
140 // |streamId| : The ID of the RTP stream. | 143 // |streamId| : The ID of the RTP stream. |
141 // |errorString| : The error info. | 144 // |errorString| : The error info. |
142 static void onError(long streamId, DOMString errorString); | 145 static void onError(long streamId, DOMString errorString); |
143 }; | 146 }; |
144 }; | 147 }; |
OLD | NEW |