Skip to content

Commit af925ed

Browse files
author
lijiahao
committed
v1.8.4
1 parent b1ba38a commit af925ed

File tree

13 files changed

+78
-27
lines changed

13 files changed

+78
-27
lines changed

app/background.js

Lines changed: 20 additions & 11 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.

flatpak/io.github.Geocld.XStreamingDesktop.metainfo.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@
3434
</screenshot>
3535
</screenshots>
3636
<releases>
37+
<release version="1.8.4" date="2025-08-06">
38+
<description>
39+
<ul>
40+
<li>Changes:</li>
41+
<li>Fix audio issue.</li>
42+
<li>Optimize consoles fetching.</li>
43+
</ul>
44+
</description>
45+
</release>
3746
<release version="1.8.3" date="2025-07-16">
3847
<description>
3948
<ul>

main/helpers/streammanager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ export default class StreamManager {
257257
}
258258

259259
getConsoles() {
260-
console.log('getConsoles11111')
261260
return new Promise((resolve) => {
262261
this.getApi('home').getConsoles().then((result) => {
263262
resolve(result)

main/helpers/xcloudapi.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export default class xCloudApi {
7878
let returnData = responseData;
7979
try {
8080
returnData = JSON.parse(responseData);
81+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
8182
} catch (error) {
8283
// Data is not JSON..
8384
}
@@ -155,6 +156,7 @@ export default class xCloudApi {
155156
let returnData = responseData;
156157
try {
157158
returnData = JSON.parse(responseData);
159+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
158160
} catch (error) {
159161
// Data is not JSON..
160162
}

main/ipc/consoles.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default class IpcConsoles extends IpcBase {
6161
resolve([]);
6262
}
6363
})
64-
.catch(e => {
64+
.catch(() => {
6565
resolve([]);
6666
// reject(e);
6767
});
@@ -74,6 +74,10 @@ export default class IpcConsoles extends IpcBase {
7474
// this._application._events._webApi.getProvider('smartglass').getConsolesList().then((consoles) => {
7575
this._application._webApi.getProvider('smartglass').getConsolesList().then(consoles => {
7676
this._consoles = consoles.result
77+
this._consoles.forEach((item: any) => {
78+
item.serverId = item.id;
79+
item.deviceName = item.name;
80+
});
7781
this._consolesLastUpdate = Date.now()
7882

7983
resolve(this._consoles)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"private": true,
33
"name": "xstreaming",
44
"description": "xstreaming",
5-
"version": "1.8.3",
5+
"version": "1.8.4",
66
"author": "Geocld <lijiahao5372@gmail.com>",
77
"main": "app/background.js",
88
"scripts": {
@@ -39,7 +39,7 @@
3939
"uplot": "^1.6.30",
4040
"uuid-1345": "^1.0.2",
4141
"xbox-webapi": "^1.4.1",
42-
"xstreaming-player": "0.2.18",
42+
"xstreaming-player": "0.2.20",
4343
"xvfb-maybe": "^0.2.1"
4444
},
4545
"devDependencies": {

renderer/components/ActionBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function ActionBar(props) {
6060
<div id="actionBar">
6161
<Dropdown>
6262
<DropdownTrigger>
63-
<Button variant="bordered" size="sm">
63+
<Button variant="bordered" size="sm" style={{color: '#fff'}}>
6464
{t("Menu")}
6565
</Button>
6666
</DropdownTrigger>

renderer/components/Perform.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
z-index: 100;
55
background-color: rgba(0, 0, 0, 0.5);
66
padding: 2px;
7+
color: #fff;
78
}
89
#performances-x {
910
position: fixed;
@@ -12,4 +13,11 @@
1213
}
1314
.performance-x-wrap {
1415
background-color: rgba(0, 0, 0, 0.5);
16+
}
17+
.performance-x-wrap-light {
18+
background-color: rgba(255, 255, 255, 0.2);
19+
}
20+
21+
.performance-x-wrap-light span {
22+
color: #fff;
1523
}

renderer/components/Perform.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ function Perform({ xPlayer, connectState }) {
66
const { t } = useTranslation('cloud');
77
const { settings } = useSettings();
88
const [performance, setPerformance] = useState<any>({});
9+
const [isLight, setIslight] = useState(false);
910

1011
useEffect(() => {
12+
const localTheme = localStorage.getItem('theme');
13+
if (localTheme === 'xbox-light') {
14+
setIslight(true)
15+
}
16+
1117
let perfInterval;
1218
if (!perfInterval) {
1319
perfInterval = setInterval(() => {
@@ -39,7 +45,7 @@ function Perform({ xPlayer, connectState }) {
3945
{
4046
settings.performance_style ? (
4147
<div id="performances-x" className="flex flex-row justify-center w-full">
42-
<span className="performance-x-wrap">
48+
<span className={isLight ? "performance-x-wrap-light" : "performance-x-wrap"}>
4349
<span className="text-xs">
4450
{resolutionText || "--"} | &nbsp;
4551
</span>

0 commit comments

Comments
 (0)