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|. | 27 // Minimum latency in milliseconds. Defaults to |maxLatency|. |
28 long? minLatency; | 28 long? minLatency; |
29 | 29 |
| 30 // Starting latency for animated content in milliseconds. |
| 31 // Defaults to |maxLatency|. |
| 32 long? animatedLatency; |
| 33 |
30 DOMString codecName; | 34 DOMString codecName; |
31 | 35 |
32 // Synchronization source identifier. | 36 // Synchronization source identifier. |
33 long ssrc; | 37 long ssrc; |
34 | 38 |
35 long feedbackSsrc; | 39 long feedbackSsrc; |
36 | 40 |
37 long? clockRate; | 41 long? clockRate; |
38 | 42 |
39 // Minimum bitrate in kilobits per second. | 43 // Minimum bitrate in kilobits per second. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // Event fired when a Cast RTP stream has stopped. | 136 // Event fired when a Cast RTP stream has stopped. |
133 // |streamId| : The ID of the RTP stream. | 137 // |streamId| : The ID of the RTP stream. |
134 static void onStopped(long streamId); | 138 static void onStopped(long streamId); |
135 | 139 |
136 // Event fired when a Cast RTP stream has error. | 140 // Event fired when a Cast RTP stream has error. |
137 // |streamId| : The ID of the RTP stream. | 141 // |streamId| : The ID of the RTP stream. |
138 // |errorString| : The error info. | 142 // |errorString| : The error info. |
139 static void onError(long streamId, DOMString errorString); | 143 static void onError(long streamId, DOMString errorString); |
140 }; | 144 }; |
141 }; | 145 }; |
OLD | NEW |