OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
Finnur
2015/03/05 10:32:04
Not related to this file, but your CL description
| |
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. |
(...skipping 29 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 // Video width in pixels. | |
52 long? width; | |
53 | |
54 // Video height in pixels. | |
55 long? height; | |
56 | |
57 // 32 bytes hex-encoded AES key. | 51 // 32 bytes hex-encoded AES key. |
58 DOMString? aesKey; | 52 DOMString? aesKey; |
59 | 53 |
60 // 32 bytes hex-encoded AES IV (Initialization vector) mask. | 54 // 32 bytes hex-encoded AES IV (Initialization vector) mask. |
61 DOMString? aesIvMask; | 55 DOMString? aesIvMask; |
62 | 56 |
63 // A list of codec specific params. | 57 // A list of codec specific params. |
64 CodecSpecificParams[] codecSpecificParams; | 58 CodecSpecificParams[] codecSpecificParams; |
65 }; | 59 }; |
66 | 60 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
138 // Event fired when a Cast RTP stream has stopped. | 132 // Event fired when a Cast RTP stream has stopped. |
139 // |streamId| : The ID of the RTP stream. | 133 // |streamId| : The ID of the RTP stream. |
140 static void onStopped(long streamId); | 134 static void onStopped(long streamId); |
141 | 135 |
142 // Event fired when a Cast RTP stream has error. | 136 // Event fired when a Cast RTP stream has error. |
143 // |streamId| : The ID of the RTP stream. | 137 // |streamId| : The ID of the RTP stream. |
144 // |errorString| : The error info. | 138 // |errorString| : The error info. |
145 static void onError(long streamId, DOMString errorString); | 139 static void onError(long streamId, DOMString errorString); |
146 }; | 140 }; |
147 }; | 141 }; |
OLD | NEW |