/**@class android.net.rtp.RtpStream @extends java.lang.Object RtpStream represents the base class of streams which send and receive network packets with media payloads over Real-time Transport Protocol (RTP). <p class="note">Using this class requires {@link android.Manifest.permission#INTERNET} permission.</p> */ var RtpStream = { /** This mode indicates that the stream sends and receives packets at the same time. This is the initial mode for new streams. */ MODE_NORMAL : "0", /** This mode indicates that the stream only sends packets. */ MODE_SEND_ONLY : "1", /** This mode indicates that the stream only receives packets. */ MODE_RECEIVE_ONLY : "2", /**Returns the network address of the local host. */ getLocalAddress : function( ) {}, /**Returns the network port of the local host. */ getLocalPort : function( ) {}, /**Returns the network address of the remote host or {@code null} if the stream is not associated. */ getRemoteAddress : function( ) {}, /**Returns the network port of the remote host or {@code -1} if the stream is not associated. */ getRemotePort : function( ) {}, /**Returns {@code true} if the stream is busy. In this case most of the setter methods are disabled. This method is intended to be overridden by subclasses. */ isBusy : function( ) {}, /**Returns the current mode. */ getMode : function( ) {}, /**Changes the current mode. It must be one of {@link #MODE_NORMAL}, {@link #MODE_SEND_ONLY}, and {@link #MODE_RECEIVE_ONLY}. @param {Number} mode The mode to change to. @throws IllegalArgumentException if the mode is invalid. @throws IllegalStateException if the stream is busy. @see #isBusy() */ setMode : function( ) {}, /**Associates with a remote host. This defines the destination of the outgoing packets. @param {Object {InetAddress}} address The network address of the remote host. @param {Number} port The network port of the remote host. @throws IllegalArgumentException if the address is not supported or the port is invalid. @throws IllegalStateException if the stream is busy. @see #isBusy() */ associate : function( ) {}, /**Releases allocated resources. The stream becomes inoperable after calling this method. @throws IllegalStateException if the stream is busy. @see #isBusy() */ release : function( ) {}, };