mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-02-16 18:40:46 +00:00
Don't bind to the RTP ports explicitly. GFE doesn't force us to use these port numbers anymore.
This commit is contained in:
@@ -90,10 +90,8 @@ public class AudioStream {
|
||||
|
||||
private void setupRtpSession() throws SocketException
|
||||
{
|
||||
rtp = new DatagramSocket(null);
|
||||
rtp.setReuseAddress(true);
|
||||
rtp = new DatagramSocket();
|
||||
rtp.setReceiveBufferSize(RTP_RECV_BUFFER);
|
||||
rtp.bind(new InetSocketAddress(RTP_PORT));
|
||||
}
|
||||
|
||||
private boolean setupAudio()
|
||||
|
||||
@@ -127,10 +127,8 @@ public class VideoStream {
|
||||
|
||||
public void setupRtpSession() throws SocketException
|
||||
{
|
||||
rtp = new DatagramSocket(null);
|
||||
rtp.setReuseAddress(true);
|
||||
rtp = new DatagramSocket();
|
||||
rtp.setReceiveBufferSize(RTP_RECV_BUFFER);
|
||||
rtp.bind(new InetSocketAddress(RTP_PORT));
|
||||
}
|
||||
|
||||
public boolean setupDecoderRenderer(VideoDecoderRenderer decRend, Object renderTarget, int drFlags) {
|
||||
|
||||
Reference in New Issue
Block a user