| 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 namespace webrtc.castUdpTransport { | 9 namespace cast.streaming.udpTransport { |
| 10 // The UDP socket address and port. | 10 // The UDP socket address and port. |
| 11 dictionary UdpParams { | 11 dictionary UdpParams { |
| 12 DOMString address; | 12 DOMString address; |
| 13 long port; | 13 long port; |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 interface Functions { | 16 interface Functions { |
| 17 // Destroys a UDP transport. | 17 // Destroys a UDP transport. |
| 18 // |transportId| : The transport ID. | 18 // |transportId| : The transport ID. |
| 19 [nocompile] static void destroy(long transportId); | 19 [nocompile] static void destroy(long transportId); |
| 20 | 20 |
| 21 // Starts to use the transport by providing remote UDP info. | 21 // Starts to use the transport by providing remote UDP info. |
| 22 // |transportId| : The transport ID. | 22 // |transportId| : The transport ID. |
| 23 // |remoteParams| : The address and port to send packets to. | 23 // |remoteParams| : The address and port to send packets to. |
| 24 [nocompile] static void start(long transportId, UdpParams remoteParams); | 24 [nocompile] static void start(long transportId, UdpParams remoteParams); |
| 25 }; | 25 }; |
| 26 }; | 26 }; |
| OLD | NEW |