Start pinging earlier so Shield Proxy knows where to send the reference frame

This commit is contained in:
Cameron Gutman 2013-11-10 16:23:55 -05:00
parent 745da05ad3
commit b56f25232e

View File

@ -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);
}