| 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.castUdpTransport</code> API represents a UDP | 5 // The <code>chrome.webrtc.castUdpTransport</code> API represents a UDP |
| 6 // transport for Cast RTP streams. This API is not useful when standalone | 6 // transport for Cast RTP streams. This API is not useful when standalone |
| 7 // since it does not have send and receive methods. | 7 // since it does not have send and receive methods. |
| 8 // It is used to configure the UDP transport used in Cast session. | 8 // It is used to configure the UDP transport used in Cast session. |
| 9 // | 9 // |
| 10 // Valid transport IDs are positive and non-zero. | 10 // Valid transport IDs are positive and non-zero. |
| 11 namespace cast.streaming.udpTransport { | 11 [use_movable_types=true]namespace cast.streaming.udpTransport { |
| 12 // The UDP socket address and port. | 12 // The UDP socket address and port. |
| 13 dictionary IPEndPoint { | 13 dictionary IPEndPoint { |
| 14 DOMString address; | 14 DOMString address; |
| 15 long port; | 15 long port; |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 interface Functions { | 18 interface Functions { |
| 19 // Destroys a UDP transport. | 19 // Destroys a UDP transport. |
| 20 // |transportId| : The transport ID. | 20 // |transportId| : The transport ID. |
| 21 [nocompile] static void destroy(long transportId); | 21 [nocompile] static void destroy(long transportId); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 33 // experimentation. Must be called before setDestination. | 33 // experimentation. Must be called before setDestination. |
| 34 // |transportId| : The transport ID that is created by | 34 // |transportId| : The transport ID that is created by |
| 35 // chrome.cast.streaming.session.create(). | 35 // chrome.cast.streaming.session.create(). |
| 36 // |options| : A dictionary of key-value pairs of options. | 36 // |options| : A dictionary of key-value pairs of options. |
| 37 // See media/cast/net/cast_transport_sender_impl.h for supported | 37 // See media/cast/net/cast_transport_sender_impl.h for supported |
| 38 // options. | 38 // options. |
| 39 [nocompile] static void setOptions(long transportId, | 39 [nocompile] static void setOptions(long transportId, |
| 40 object options); | 40 object options); |
| 41 }; | 41 }; |
| 42 }; | 42 }; |
| OLD | NEW |