hj-gis-sdk 1.0.1 → 1.0.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hj-gis-sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "dist/sdk.js",
5
5
  "module": "dist/sdk.esm.js",
6
6
  "types": "dist/types/hj-gis-sdk/index.d.ts",
@@ -17,7 +17,8 @@
17
17
  "package-lock.json",
18
18
  "yarn.lock",
19
19
  "README.md",
20
- "README_UERPC.md"
20
+ "README_UERPC.md",
21
+ "index.html"
21
22
  ],
22
23
  "scripts": {
23
24
  "build": "npm run clean && rollup -c",
package/src/common.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  Config,
3
3
  Flags,
4
+ NumericParameters,
4
5
  PixelStreaming
5
6
  } from '@epicgames-ps/lib-pixelstreamingfrontend-ue5.5'
6
7
  import { Addons } from 'hj-gis-sdk'
@@ -15,6 +16,13 @@ export async function initializeApp(url: string, parentElement: HTMLElement) {
15
16
  [Flags.HoveringMouseMode]: true,
16
17
  [Flags.TouchInput]: true,
17
18
  [Flags.FakeMouseWithTouches]: true
19
+
20
+ /// 这是一些处理网络质量的参数 降低视频质量以减少网络带宽消耗带来的卡顿问题
21
+ // [NumericParameters.WebRTCFPS]: 30, // 限制帧率为30fps
22
+ // [NumericParameters.WebRTCMinBitrate]: 500, // 设置最小比特率为500kbps
23
+ // [NumericParameters.WebRTCMaxBitrate]: 1000, // 设置最大比特率为2000kbps
24
+ // [NumericParameters.MinQuality]: 0.3, // 设置最小质量为0.3
25
+ // [NumericParameters.MaxQuality]: 0.6 // 设置最大质量为0.8
18
26
  }
19
27
  })
20
28
  const stream = new PixelStreaming(config, {
package/src/weather.ts CHANGED
@@ -8,7 +8,7 @@ import { initializeApp } from './common'
8
8
  import GUI from 'lil-gui'
9
9
  import { Logger, LogLevel } from '@epicgames-ps/lib-pixelstreamingcommon-ue5.5'
10
10
  Logger.InitLogging(LogLevel.Info, false)
11
- const { UERPCNode , WeatherType } = Addons
11
+ const { UERPCNode, WeatherType } = Addons
12
12
 
13
13
  let world: InstanceType<typeof Addons.World>
14
14
  let camera: InstanceType<typeof PerspectiveCamera>