mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 19:42:45 +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;
|
||||
}
|
||||
|
||||
// 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
|
||||
try {
|
||||
readFirstFrame(host);
|
||||
@ -174,9 +179,6 @@ public class NvVideoStream {
|
||||
// Start decoding the data we're receiving
|
||||
startDecoderThread();
|
||||
|
||||
// Start the keepalive ping to keep the stream going
|
||||
startUdpPingThread();
|
||||
|
||||
// Render the frames that are coming out of the decoder
|
||||
outputDisplayLoop(this);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user