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.webrtc.castSendTransport</code> API takes a track as | 5 // The <code>chrome.webrtc.castSendTransport</code> API takes a track as |
6 // a source of media, and sends that media on the inner transport according to | 6 // a source of media, and sends that media on the inner transport according to |
7 // the given RtpParams. | 7 // the given RtpParams. |
8 namespace webrtc.castSendTransport { | 8 namespace webrtc.castSendTransport { |
9 // Params for audio and video codec. | 9 // Params for audio and video codec. |
10 dictionary CodecSpecificParams { | 10 dictionary CodecSpecificParams { |
(...skipping 19 matching lines...) Expand all Loading... |
30 // The number of channels. | 30 // The number of channels. |
31 long? channels; | 31 long? channels; |
32 | 32 |
33 // Video width in pixels. | 33 // Video width in pixels. |
34 long? width; | 34 long? width; |
35 | 35 |
36 // Video height in pixels. | 36 // Video height in pixels. |
37 long? height; | 37 long? height; |
38 | 38 |
39 // A list of codec specific params. | 39 // A list of codec specific params. |
40 CodecSpecificParams[] codecSpecficParams; | 40 CodecSpecificParams[] codecSpecificParams; |
41 }; | 41 }; |
42 | 42 |
43 // Cast transport capabilities | 43 // Cast transport capabilities |
44 dictionary RtpCaps { | 44 dictionary RtpCaps { |
45 // RTP payload params. | 45 // RTP payload params. |
46 RtpPayloadParams[] payloads; | 46 RtpPayloadParams[] payloads; |
47 | 47 |
48 DOMString[] rtcpFeatures; | 48 DOMString[] rtcpFeatures; |
49 | 49 |
50 DOMString[] fecMechanisms; | 50 DOMString[] fecMechanisms; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // left. | 132 // left. |
133 // |transportId| : The ID of the transport. | 133 // |transportId| : The ID of the transport. |
134 static void onTimeout(long transportId); | 134 static void onTimeout(long transportId); |
135 | 135 |
136 // Event fired when a cast send transport has error. | 136 // Event fired when a cast send transport has error. |
137 // |transportId| : The ID of the transport. | 137 // |transportId| : The ID of the transport. |
138 // |errorString| : The error info. | 138 // |errorString| : The error info. |
139 static void onError(long transportId, DOMString errorString); | 139 static void onError(long transportId, DOMString errorString); |
140 }; | 140 }; |
141 }; | 141 }; |
OLD | NEW |