mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-16 16:16:44 +00:00
Plumb RTSP session URL into LiStartConnection()
This commit is contained in:
parent
fb2258fa34
commit
b2bee37fe2
5
main.cpp
5
main.cpp
@ -130,6 +130,7 @@ void* MoonlightInstance::ConnectionThreadFunc(void* context) {
|
||||
serverInfo.address = me->m_Host.c_str();
|
||||
serverInfo.serverInfoAppVersion = me->m_AppVersion.c_str();
|
||||
serverInfo.serverInfoGfeVersion = me->m_GfeVersion.c_str();
|
||||
serverInfo.rtspSessionUrl = me->m_RtspUrl.c_str();
|
||||
|
||||
err = LiStartConnection(&serverInfo,
|
||||
&me->m_StreamConfig,
|
||||
@ -203,6 +204,7 @@ void MoonlightInstance::HandleStartStream(int32_t callbackId, pp::VarArray args)
|
||||
std::string mouse_lock = args.Get(7).AsString();
|
||||
std::string appversion = args.Get(8).AsString();
|
||||
std::string gfeversion = args.Get(9).AsString();
|
||||
std::string rtspurl = args.Get(10).AsString();
|
||||
|
||||
pp::Var response("Setting stream width to: " + width);
|
||||
PostMessage(response);
|
||||
@ -224,6 +226,8 @@ void MoonlightInstance::HandleStartStream(int32_t callbackId, pp::VarArray args)
|
||||
PostMessage(response);
|
||||
response = ("Setting mouse lock to: " + mouse_lock);
|
||||
PostMessage(response);
|
||||
response = ("Setting RTSP URL to: " + rtspurl);
|
||||
PostMessage(response);
|
||||
|
||||
// Populate the stream configuration
|
||||
LiInitializeStreamConfiguration(&m_StreamConfig);
|
||||
@ -248,6 +252,7 @@ void MoonlightInstance::HandleStartStream(int32_t callbackId, pp::VarArray args)
|
||||
m_Host = host;
|
||||
m_AppVersion = appversion;
|
||||
m_GfeVersion = gfeversion;
|
||||
m_RtspUrl = rtspurl;
|
||||
m_MouseLockingFeatureEnabled = stoi(mouse_lock);
|
||||
|
||||
// Initialize the rendering surface before starting the connection
|
||||
|
@ -173,6 +173,7 @@ class MoonlightInstance : public pp::Instance, public pp::MouseLock {
|
||||
std::string m_Host;
|
||||
std::string m_AppVersion;
|
||||
std::string m_GfeVersion;
|
||||
std::string m_RtspUrl;
|
||||
bool m_MouseLockingFeatureEnabled;
|
||||
STREAM_CONFIGURATION m_StreamConfig;
|
||||
bool m_Running;
|
||||
|
@ -711,7 +711,8 @@ function startGame(host, appID) {
|
||||
}
|
||||
|
||||
sendMessage('startRequest', [host.address, streamWidth, streamHeight, frameRate,
|
||||
bitrate.toString(), rikey, rikeyid.toString(), mouse_lock_enabled, host.appVersion, host.gfeVersion
|
||||
bitrate.toString(), rikey, rikeyid.toString(), mouse_lock_enabled, host.appVersion, host.gfeVersion,
|
||||
$root.find('sessionUrl0').text().trim()
|
||||
]);
|
||||
}, function(failedResumeApp) {
|
||||
console.eror('%c[index.js, startGame]', 'color:green;', 'Failed to resume the app! Returned error was' + failedResumeApp);
|
||||
@ -748,7 +749,8 @@ function startGame(host, appID) {
|
||||
}
|
||||
|
||||
sendMessage('startRequest', [host.address, streamWidth, streamHeight, frameRate,
|
||||
bitrate.toString(), rikey, rikeyid.toString(), mouse_lock_enabled, host.appVersion
|
||||
bitrate.toString(), rikey, rikeyid.toString(), mouse_lock_enabled, host.appVersion,
|
||||
$root.find('sessionUrl0').text().trim()
|
||||
]);
|
||||
}, function(failedLaunchApp) {
|
||||
console.error('%c[index.js, launchApp]', 'color: green;', 'Failed to launch app width id: ' + appID + '\nReturned error was: ' + failedLaunchApp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user