| 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Minimum bitrate in kilobits per second. | 36 // Minimum bitrate in kilobits per second. |
| 37 long? minBitrate; | 37 long? minBitrate; |
| 38 | 38 |
| 39 // Maximum bitrate in kilobits per second. | 39 // Maximum bitrate in kilobits per second. |
| 40 long? maxBitrate; | 40 long? maxBitrate; |
| 41 | 41 |
| 42 // The number of channels. | 42 // The number of channels. |
| 43 long? channels; | 43 long? channels; |
| 44 | 44 |
| 45 // The maximum frame rate. |
| 46 double? maxFrameRate; |
| 47 |
| 45 // Video width in pixels. | 48 // Video width in pixels. |
| 46 long? width; | 49 long? width; |
| 47 | 50 |
| 48 // Video height in pixels. | 51 // Video height in pixels. |
| 49 long? height; | 52 long? height; |
| 50 | 53 |
| 51 // 32 bytes hex-encoded AES key. | 54 // 32 bytes hex-encoded AES key. |
| 52 DOMString? aesKey; | 55 DOMString? aesKey; |
| 53 | 56 |
| 54 // 32 bytes hex-encoded AES IV (Initialization vector) mask. | 57 // 32 bytes hex-encoded AES IV (Initialization vector) mask. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // Event fired when a Cast RTP stream has stopped. | 135 // Event fired when a Cast RTP stream has stopped. |
| 133 // |streamId| : The ID of the RTP stream. | 136 // |streamId| : The ID of the RTP stream. |
| 134 static void onStopped(long streamId); | 137 static void onStopped(long streamId); |
| 135 | 138 |
| 136 // Event fired when a Cast RTP stream has error. | 139 // Event fired when a Cast RTP stream has error. |
| 137 // |streamId| : The ID of the RTP stream. | 140 // |streamId| : The ID of the RTP stream. |
| 138 // |errorString| : The error info. | 141 // |errorString| : The error info. |
| 139 static void onError(long streamId, DOMString errorString); | 142 static void onError(long streamId, DOMString errorString); |
| 140 }; | 143 }; |
| 141 }; | 144 }; |
| OLD | NEW |