mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-04-24 00:46:48 +00:00
Use the server major version pulled from serverinfo when starting a stream
This commit is contained in:
@@ -112,7 +112,7 @@ function startPushed() {
|
||||
api.init().then(function (ret) {
|
||||
if (api.currentGame != 0) {
|
||||
api.resumeApp('00000000000000000000000000000000', 0).then(function (ret) {
|
||||
sendMessage('startRequest', [target, streamWidth, streamHeight, frameRate, bitrate.toString()]);
|
||||
sendMessage('startRequest', [target, streamWidth, streamHeight, frameRate, bitrate.toString(), api.serverMajorVersion.toString()]);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -41,6 +41,7 @@ NvHTTP.prototype = {
|
||||
if($root.attr("status_code") == 200) {
|
||||
_self.paired = $root.find("PairStatus").text().trim() == 1;
|
||||
_self.currentGame = parseInt($root.find("currentgame").text().trim(), 10);
|
||||
_self.serverMajorVersion = parseInt($root.find("appversion").text().trim().substring(0, 1), 10);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user