OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 // The <code>chrome.webrtc.castUdpTransport</code> API represents a UDP | |
6 // transport for Cast RTP streams. This API is not useful when standalone | |
7 // since it does not have send and receive methods. | |
8 // It is used to configure the UDP transport used in Cast session. | |
9 namespace webrtc.castUdpTransport { | |
10 // The UDP socket address and port. | |
11 dictionary UdpParams { | |
12 DOMString address; | |
13 long port; | |
14 }; | |
15 | |
16 interface Functions { | |
17 // Destroys a UDP transport. | |
18 // |transportId| : The transport ID. | |
19 [nocompile] static void destroy(long transportId); | |
20 | |
21 // Starts to use the transport by providing remote UDP info. | |
22 // |transportId| : The transport ID. | |
23 // |remoteParams| : The address and port to send packets to. | |
24 [nocompile] static void start(long transportId, UdpParams remoteParams); | |
25 }; | |
26 }; | |
OLD | NEW |