mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Send the newer loss stats packet
This commit is contained in:
parent
463d4ad3fd
commit
b76495fa8f
@ -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()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user