Don't bind to the RTP ports explicitly. GFE doesn't force us to use these port numbers anymore.

This commit is contained in:
Cameron Gutman 2014-10-07 23:14:48 -07:00
parent 22865b8af4
commit d9c2d58519
2 changed files with 2 additions and 6 deletions

View File

@ -90,10 +90,8 @@ public class AudioStream {
private void setupRtpSession() throws SocketException private void setupRtpSession() throws SocketException
{ {
rtp = new DatagramSocket(null); rtp = new DatagramSocket();
rtp.setReuseAddress(true);
rtp.setReceiveBufferSize(RTP_RECV_BUFFER); rtp.setReceiveBufferSize(RTP_RECV_BUFFER);
rtp.bind(new InetSocketAddress(RTP_PORT));
} }
private boolean setupAudio() private boolean setupAudio()

View File

@ -127,10 +127,8 @@ public class VideoStream {
public void setupRtpSession() throws SocketException public void setupRtpSession() throws SocketException
{ {
rtp = new DatagramSocket(null); rtp = new DatagramSocket();
rtp.setReuseAddress(true);
rtp.setReceiveBufferSize(RTP_RECV_BUFFER); rtp.setReceiveBufferSize(RTP_RECV_BUFFER);
rtp.bind(new InetSocketAddress(RTP_PORT));
} }
public boolean setupDecoderRenderer(VideoDecoderRenderer decRend, Object renderTarget, int drFlags) { public boolean setupDecoderRenderer(VideoDecoderRenderer decRend, Object renderTarget, int drFlags) {