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 { |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 // Maximum bitrate in kilobits per second. | 42 // Maximum bitrate in kilobits per second. |
43 long? maxBitrate; | 43 long? maxBitrate; |
44 | 44 |
45 // The number of channels. | 45 // The number of channels. |
46 long? channels; | 46 long? channels; |
47 | 47 |
48 // The maximum frame rate. | 48 // The maximum frame rate. |
49 double? maxFrameRate; | 49 double? maxFrameRate; |
50 | 50 |
51 // TODO(miu): DEPRECATED. These fields are ignored, and will be removed | |
52 // starting with Chrome 44. http://crbug.com/466357 | |
53 long? width; | |
54 long? height; | |
55 | |
56 // 32 bytes hex-encoded AES key. | 51 // 32 bytes hex-encoded AES key. |
57 DOMString? aesKey; | 52 DOMString? aesKey; |
58 | 53 |
59 // 32 bytes hex-encoded AES IV (Initialization vector) mask. | 54 // 32 bytes hex-encoded AES IV (Initialization vector) mask. |
60 DOMString? aesIvMask; | 55 DOMString? aesIvMask; |
61 | 56 |
62 // A list of codec specific params. | 57 // A list of codec specific params. |
63 CodecSpecificParams[] codecSpecificParams; | 58 CodecSpecificParams[] codecSpecificParams; |
64 }; | 59 }; |
65 | 60 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // Event fired when a Cast RTP stream has stopped. | 132 // Event fired when a Cast RTP stream has stopped. |
138 // |streamId| : The ID of the RTP stream. | 133 // |streamId| : The ID of the RTP stream. |
139 static void onStopped(long streamId); | 134 static void onStopped(long streamId); |
140 | 135 |
141 // Event fired when a Cast RTP stream has error. | 136 // Event fired when a Cast RTP stream has error. |
142 // |streamId| : The ID of the RTP stream. | 137 // |streamId| : The ID of the RTP stream. |
143 // |errorString| : The error info. | 138 // |errorString| : The error info. |
144 static void onError(long streamId, DOMString errorString); | 139 static void onError(long streamId, DOMString errorString); |
145 }; | 140 }; |
146 }; | 141 }; |
OLD | NEW |