mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-22 16:17:27 +00:00
Send the newer loss stats packet
This commit is contained in:
1 parent
463d4ad3fd
commit
b76495fa8f
1 file changed
+4
-1
@@ -31,7 +31,7 @@ public class ControlStream implements ConnectionStatusListener {
|
||||
public static final short PPAYLEN_RESYNC = 24;
|
||||
|
||||
public static final short PTYPE_LOSS_STATS = 0x140c;
|
||||
public static final short PPAYLEN_LOSS_STATS = 20;
|
||||
public static final short PPAYLEN_LOSS_STATS = 32;
|
||||
|
||||
// Currently unused
|
||||
public static final short PTYPE_FRAME_STATS = 0x1417;
|
||||
@@ -98,6 +98,9 @@ public class ControlStream implements ConnectionStatusListener {
|
||||
bb.putInt(LOSS_REPORT_INTERVAL_MS); // Time since last report in milliseconds
|
||||
bb.putInt(1000);
|
||||
bb.putLong(currentFrame); // Last successfully received frame
|
||||
bb.putInt(0);
|
||||
bb.putInt(0);
|
||||
bb.putInt(0x14);
|
||||
|
||||
sendPacket(new NvCtlPacket(PTYPE_LOSS_STATS, PPAYLEN_LOSS_STATS, bb.array()));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user