| 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 [use_movable_types=true]namespace cast.streaming.rtpStream { |
| 11 // Params for audio and video codec. | 11 // Params for audio and video codec. |
| 12 dictionary CodecSpecificParams { | 12 dictionary CodecSpecificParams { |
| 13 DOMString key; | 13 DOMString key; |
| 14 DOMString value; | 14 DOMString value; |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 // RTP payload param. | 17 // RTP payload param. |
| 18 dictionary RtpPayloadParams { | 18 dictionary RtpPayloadParams { |
| 19 long payloadType; | 19 long payloadType; |
| 20 | 20 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // Event fired when a Cast RTP stream has stopped. | 136 // Event fired when a Cast RTP stream has stopped. |
| 137 // |streamId| : The ID of the RTP stream. | 137 // |streamId| : The ID of the RTP stream. |
| 138 static void onStopped(long streamId); | 138 static void onStopped(long streamId); |
| 139 | 139 |
| 140 // Event fired when a Cast RTP stream has error. | 140 // Event fired when a Cast RTP stream has error. |
| 141 // |streamId| : The ID of the RTP stream. | 141 // |streamId| : The ID of the RTP stream. |
| 142 // |errorString| : The error info. | 142 // |errorString| : The error info. |
| 143 static void onError(long streamId, DOMString errorString); | 143 static void onError(long streamId, DOMString errorString); |
| 144 }; | 144 }; |
| 145 }; | 145 }; |
| OLD | NEW |