diff --git a/src/Connection.c b/src/Connection.c index 3cfb352..2b4d70e 100644 --- a/src/Connection.c +++ b/src/Connection.c @@ -520,3 +520,7 @@ Cleanup: } return err; } + +const char* LiGetLaunchUrlQueryParameters() { + return "&corever=0"; +} diff --git a/src/Limelight.h b/src/Limelight.h index af50dd8..3f3c277 100644 --- a/src/Limelight.h +++ b/src/Limelight.h @@ -34,6 +34,12 @@ extern "C" { #define ENCFLG_AUDIO 0x00000001 #define ENCFLG_ALL 0xFFFFFFFF +// This function returns a string that you SHOULD append to the /launch and /resume +// query parameter string. This is used to enable certain extended functionality +// with Sunshine hosts. The returned string is owned by moonlight-common-c and +// should not be freed by the caller. +const char* LiGetLaunchUrlQueryParameters(void); + typedef struct _STREAM_CONFIGURATION { // Dimensions in pixels of the desired video stream int width;