Use the server major version pulled from serverinfo when starting a stream

This commit is contained in:
Cameron Gutman
2016-03-10 22:37:26 -08:00
parent 02341e85e2
commit b796b496dd
3 changed files with 6 additions and 2 deletions

View File

@@ -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()]);
});
}
});

View File

@@ -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);
}
});
},