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 namespace cast.streaming.rtpStream { | 8 namespace cast.streaming.rtpStream { |
9 // Params for audio and video codec. | 9 // Params for audio and video codec. |
10 dictionary CodecSpecificParams { | 10 dictionary CodecSpecificParams { |
11 DOMString key; | 11 DOMString key; |
12 DOMString value; | 12 DOMString value; |
13 }; | 13 }; |
14 | 14 |
15 // RTP payload param. | 15 // RTP payload param. |
16 dictionary RtpPayloadParams { | 16 dictionary RtpPayloadParams { |
17 long payloadType; | 17 long payloadType; |
18 | 18 |
19 DOMString codecName; | 19 DOMString codecName; |
20 | 20 |
21 // Synchronization source identifier. | 21 // Synchronization source identifier. |
22 long? ssrc; | 22 long? ssrc; |
23 | 23 |
24 long? feedbackSsrc; | 24 long? feedbackSsrc; |
25 | 25 |
26 long? clockRate; | 26 long? clockRate; |
27 | 27 |
| 28 // Minimum bitrate in kilobits per second. |
28 long? minBitrate; | 29 long? minBitrate; |
29 | 30 |
| 31 // Maximum bitrate in kilobits per second. |
30 long? maxBitrate; | 32 long? maxBitrate; |
31 | 33 |
32 // The number of channels. | 34 // The number of channels. |
33 long? channels; | 35 long? channels; |
34 | 36 |
35 // Video width in pixels. | 37 // Video width in pixels. |
36 long? width; | 38 long? width; |
37 | 39 |
38 // Video height in pixels. | 40 // Video height in pixels. |
39 long? height; | 41 long? height; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // Event fired when a Cast RTP stream has stopped. | 121 // Event fired when a Cast RTP stream has stopped. |
120 // |streamId| : The ID of the RTP stream. | 122 // |streamId| : The ID of the RTP stream. |
121 static void onStopped(long streamId); | 123 static void onStopped(long streamId); |
122 | 124 |
123 // Event fired when a Cast RTP stream has error. | 125 // Event fired when a Cast RTP stream has error. |
124 // |streamId| : The ID of the RTP stream. | 126 // |streamId| : The ID of the RTP stream. |
125 // |errorString| : The error info. | 127 // |errorString| : The error info. |
126 static void onError(long streamId, DOMString errorString); | 128 static void onError(long streamId, DOMString errorString); |
127 }; | 129 }; |
128 }; | 130 }; |
OLD | NEW |