Skip to content

Commit 716049f

Browse files
author
lijiahao
committed
feat: 1080p HQ
1 parent 22025a8 commit 716049f

File tree

5 files changed

+41
-18
lines changed

5 files changed

+41
-18
lines changed

app/background.js

Lines changed: 19 additions & 9 deletions
Large diffs are not rendered by default.

app/preload.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main/helpers/xcloudapi.ts

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,25 +206,33 @@ export default class xCloudApi {
206206
"settings",
207207
defaultSettings
208208
);
209+
let osName = 'android';
210+
211+
if (settings.resolution == 1080) {
212+
osName = 'windows';
213+
} else if (settings.resolution === 1081) {
214+
osName = this._type === "home" ? "windows" : "tizen";
215+
}
216+
209217
const deviceInfo = JSON.stringify({
210218
appInfo: {
211219
env: {
212220
clientAppId: "www.xbox.com",
213221
clientAppType: "browser",
214-
clientAppVersion: "21.1.98",
215-
clientSdkVersion: "8.5.3",
222+
clientAppVersion: "24.17.36",
223+
clientSdkVersion: "10.1.14",
216224
httpEnvironment: "prod",
217225
sdkInstallId: "",
218226
},
219227
},
220228
dev: {
221229
hw: {
222230
make: "Microsoft",
223-
model: "Surface Pro",
231+
model: "unknown",
224232
sdktype: "web",
225233
},
226234
os: {
227-
name: settings.resolution == 1080 ? "windows" : "android",
235+
name: osName,
228236
ver: "22631.2715",
229237
platform: "desktop",
230238
},
@@ -234,10 +242,14 @@ export default class xCloudApi {
234242
heightInPixels: 1080,
235243
},
236244
pixelDensity: {
237-
dpiX: 2,
238-
dpiY: 2,
245+
dpiX: 1,
246+
dpiY: 1,
239247
},
240248
},
249+
browser: {
250+
browserName: "chrome",
251+
browserVersion: "125.0",
252+
},
241253
},
242254
});
243255

@@ -254,7 +266,7 @@ export default class xCloudApi {
254266
timezoneOffsetMinutes: 120,
255267
sdkType: "web",
256268
// For xCloud streaming
257-
osName: settings.resolution == 1080 ? "windows" : "android",
269+
osName,
258270
},
259271
serverId: this._type === "home" ? target : "",
260272
fallbackRegionNames: [],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"name": "xstreaming",
44
"description": "xstreaming",
5-
"version": "1.2.0",
5+
"version": "1.3.0",
66
"author": "Geocld <lijiahao5372@gmail.com>",
77
"main": "app/background.js",
88
"scripts": {

renderer/common/settings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const getSettingsMetas = (t) => {
8282
data: [
8383
{value: 720, label: '720P'},
8484
{value: 1080, label: '1080P'},
85+
{value: 1081, label: '1080P(HQ)'},
8586
],
8687
},
8788
{

0 commit comments

Comments
 (0)