mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 22:09:59 +00:00
Send client feature flags indicating FEC status support
This commit is contained in:
1 parent
e0d83f61c2
commit
8b0dbf7158
2 files changed
+10
No files matched your search
@@ -233,6 +233,13 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
||||
optionHead = NULL;
|
||||
err = 0;
|
||||
|
||||
// Send client feature flags to Sunshine hosts
|
||||
if (IS_SUNSHINE()) {
|
||||
uint32_t moonlightFeatureFlags = ML_FF_FEC_STATUS;
|
||||
sprintf(payloadStr, "%u", moonlightFeatureFlags);
|
||||
err |= addAttributeString(&optionHead, "x-ml-general.featureFlags", payloadStr);
|
||||
}
|
||||
|
||||
sprintf(payloadStr, "%d", StreamConfig.width);
|
||||
err |= addAttributeString(&optionHead, "x-nv-video[0].clientViewportWd", payloadStr);
|
||||
sprintf(payloadStr, "%d", StreamConfig.height);
|
||||
|
||||
Reference in new issue
Block a user