Skip to content

Commit

Permalink
Add LiGetExtraLaunchArgs()
Browse files Browse the repository at this point in the history
The string returned from this function should be appended to the end of the /resume and /launch query parameters.
  • Loading branch information
cgutman committed Jan 14, 2024
1 parent 723cac0 commit 15b55a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,3 +520,7 @@ int LiStartConnection(PSERVER_INFORMATION serverInfo, PSTREAM_CONFIGURATION stre
}
return err;
}

const char* LiGetLaunchUrlQueryParameters() {
return "&corever=0";
}
6 changes: 6 additions & 0 deletions src/Limelight.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 15b55a4

Please sign in to comment.