mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 12:03:02 +00:00
Start pinging earlier so Shield Proxy knows where to send the reference frame
This commit is contained in:
parent
745da05ad3
commit
b56f25232e
@ -155,6 +155,11 @@ public class NvVideoStream {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Start pinging before reading the first frame
|
||||||
|
// so Shield Proxy knows we're here and sends us
|
||||||
|
// the reference frame
|
||||||
|
startUdpPingThread();
|
||||||
|
|
||||||
// Read the first frame to start the UDP video stream
|
// Read the first frame to start the UDP video stream
|
||||||
try {
|
try {
|
||||||
readFirstFrame(host);
|
readFirstFrame(host);
|
||||||
@ -174,9 +179,6 @@ public class NvVideoStream {
|
|||||||
// Start decoding the data we're receiving
|
// Start decoding the data we're receiving
|
||||||
startDecoderThread();
|
startDecoderThread();
|
||||||
|
|
||||||
// Start the keepalive ping to keep the stream going
|
|
||||||
startUdpPingThread();
|
|
||||||
|
|
||||||
// Render the frames that are coming out of the decoder
|
// Render the frames that are coming out of the decoder
|
||||||
outputDisplayLoop(this);
|
outputDisplayLoop(this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user