| 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 namespace cast.streaming.rtpStream { | 8 namespace cast.streaming.rtpStream { |
| 9 // Params for audio and video codec. | 9 // Params for audio and video codec. |
| 10 dictionary CodecSpecificParams { | 10 dictionary CodecSpecificParams { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Callback from the <code>create</code> method. | 59 // Callback from the <code>create</code> method. |
| 60 // |id| : The ID for the RTP stream. | 60 // |id| : The ID for the RTP stream. |
| 61 callback CreateCallback = void (long streamId); | 61 callback CreateCallback = void (long streamId); |
| 62 | 62 |
| 63 // Callback from the <code>getRawEvents</code> method. | 63 // Callback from the <code>getRawEvents</code> method. |
| 64 // |rawEvents|: compressed serialized raw bytes containing raw events | 64 // |rawEvents|: compressed serialized raw bytes containing raw events |
| 65 // recorded for a stream. | 65 // recorded for a stream. |
| 66 // The compression is in gzip format. | 66 // The compression is in gzip format. |
| 67 // The serialization format can be found at | 67 // The serialization format can be found at |
| 68 // media/cast/logging/log_serializer.cc. | 68 // media/cast/logging/log_serializer.cc. |
| 69 callback GetRawEventsCallback = void (DOMString rawEvents); | 69 callback GetRawEventsCallback = void (ArrayBuffer rawEvents); |
| 70 | 70 |
| 71 // Callback from the <code>getStats</code> method. | 71 // Callback from the <code>getStats</code> method. |
| 72 // |rawEvents|: dictionary object containing stats recorded for a stream. | 72 // |rawEvents|: dictionary object containing stats recorded for a stream. |
| 73 // The format can be found at | 73 // The format can be found at |
| 74 // media/cast/logging/stats_converter.cc. | 74 // media/cast/logging/stats_converter.cc. |
| 75 callback GetStatsCallback = void (object stats); | 75 callback GetStatsCallback = void (object stats); |
| 76 | 76 |
| 77 interface Functions { | 77 interface Functions { |
| 78 // Destroys a Cast RTP stream. | 78 // Destroys a Cast RTP stream. |
| 79 // |streamId| : The RTP stream ID. | 79 // |streamId| : The RTP stream ID. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // Event fired when a Cast RTP stream has stopped. | 119 // Event fired when a Cast RTP stream has stopped. |
| 120 // |streamId| : The ID of the RTP stream. | 120 // |streamId| : The ID of the RTP stream. |
| 121 static void onStopped(long streamId); | 121 static void onStopped(long streamId); |
| 122 | 122 |
| 123 // Event fired when a Cast RTP stream has error. | 123 // Event fired when a Cast RTP stream has error. |
| 124 // |streamId| : The ID of the RTP stream. | 124 // |streamId| : The ID of the RTP stream. |
| 125 // |errorString| : The error info. | 125 // |errorString| : The error info. |
| 126 static void onError(long streamId, DOMString errorString); | 126 static void onError(long streamId, DOMString errorString); |
| 127 }; | 127 }; |
| 128 }; | 128 }; |
| OLD | NEW |