@yang__yj/pixelstreaming-core 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ /*! Element Plus Icons Vue v2.3.2 */
2
+
3
+ /**
4
+ * @vue/runtime-dom v3.5.38
5
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
6
+ * @license MIT
7
+ **/
8
+
9
+ /**
10
+ * @vue/shared v3.5.38
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yang__yj/pixelstreaming-core",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Frontend library for Unreal Engine 5.3 Pixel Streaming",
5
5
  "main": "dist/lib-pixelstreamingfrontend.js",
6
6
  "module": "dist/lib-pixelstreamingfrontend.esm.js",
@@ -1375,28 +1375,30 @@ export class WebRtcPlayerController {
1375
1375
  `Got streamer list ${messageStreamerList.ids}`,
1376
1376
  6
1377
1377
  );
1378
-
1379
1378
  const streamerBusyList =
1380
1379
  (
1381
1380
  messageStreamerList as unknown as {
1382
1381
  streamerBusyList?: Array<{ streamerId: string }>;
1383
1382
  }
1384
1383
  ).streamerBusyList ?? [];
1385
-
1386
1384
 
1387
1385
  if (streamerBusyList.length > 0) {
1388
1386
  console.log(window.location.href, '======');
1389
- if (window.location.href.indexOf('home') !== -1) {
1390
- return;
1391
- }
1392
- const confirmed = window.confirm(
1393
- '监测到当前窗口有人在使用,是否强制进入?'
1394
- );
1395
- if (confirmed) {
1396
- this.webSocketController.sendSubscribe(
1397
- streamerBusyList[0].streamerId
1398
- );
1399
- }
1387
+ ElMessageBox.confirm(
1388
+ '监测到当前窗口有人在使用,是否强制进入?',
1389
+ '警告',
1390
+ {
1391
+ confirmButtonText: '确定',
1392
+ cancelButtonText: '取消',
1393
+ type: 'warning'
1394
+ }
1395
+ )
1396
+ .then(() => {
1397
+ this.webSocketController.sendSubscribe(
1398
+ streamerBusyList[0].streamerId
1399
+ );
1400
+ })
1401
+ .catch(() => {});
1400
1402
  }
1401
1403
 
1402
1404
  // 将streamer添加到UI中