mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 13:59:58 +00:00
Add support for X-SS-Connect-Data in RTSP SETUP for control stream
This allows the host to provide a 32-bit integer that will be sent in the data of the ENet connect event, similar to X-SS-Ping-Payload for video and audio. The host can use this data to uniquely identify a client when IP addresses are not stable across the various separate connections, such as when the client is behind a Carrier-Grade NAT.
This commit is contained in:
1 parent
50d8dcb072
commit
6e9ed871bc
5 files changed
+15
-2
No files matched your search
@@ -40,6 +40,7 @@ extern uint16_t VideoPortNumber;
|
||||
|
||||
extern SS_PING AudioPingPayload;
|
||||
extern SS_PING VideoPingPayload;
|
||||
extern uint32_t ControlConnectData;
|
||||
|
||||
extern uint32_t SunshineFeatureFlags;
|
||||
|
||||
@@ -76,6 +77,7 @@ extern uint32_t SunshineFeatureFlags;
|
||||
|
||||
// Client feature flags for x-ml-general.featureFlags SDP attribute
|
||||
#define ML_FF_FEC_STATUS 0x01 // Client sends SS_FRAME_FEC_STATUS for frame losses
|
||||
#define ML_FF_SESSION_ID_V1 0x02 // Client supports X-SS-Ping-Payload and X-SS-Connect-Data
|
||||
|
||||
#define UDP_RECV_POLL_TIMEOUT_MS 100
|
||||
|
||||
|
||||
Reference in new issue
Block a user