omnirtc-web 0.1.0-beta.0 → 0.1.0-beta.1

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- 直播中台WebRTC SDK。如需接入,联系兰龙刚(lanlonggang@tal.com)张文博(zhangwenbo1@tal.com)
1
+ 直播中台WebRTC SDK。如需接入,联系兰龙刚(lanlonggang@tal.com)
2
2
  # Omni_WebRTC
3
3
 
4
4
  ## 引入SDK
@@ -97,7 +97,7 @@ var InvalidTokenError_1 = InvalidTokenError;
97
97
  lib.InvalidTokenError = InvalidTokenError_1;
98
98
 
99
99
  var StaticConfig = {
100
- agentVersion: "OmniRTC_Web_V0.1.0-beta.0",
100
+ agentVersion: "OmniRTC_Web_V0.1.0-beta.1",
101
101
  logVersion: 1,
102
102
  serviceType: 320,
103
103
  logBackendUrl: "https://rtc-logs.magic-school.com/stream.gif"
@@ -9159,8 +9159,7 @@ function videoEncoderConfigurationMapping(config) {
9159
9159
  var rawEncoderConfig = config.encoderConfig;
9160
9160
  if (config.encoderConfig) {
9161
9161
  if (typeof config.encoderConfig === 'string'
9162
- && config.encoderConfig in presetVideoEncoderConfig) ;
9163
- {
9162
+ && config.encoderConfig in presetVideoEncoderConfig) {
9164
9163
  rawEncoderConfig = presetVideoEncoderConfig[config.encoderConfig];
9165
9164
  }
9166
9165
  }
@@ -12457,7 +12456,7 @@ function getRTCInstance(token) {
12457
12456
  return new VolcCoreRTCWrapper({
12458
12457
  appId: data.appid,
12459
12458
  roomId: data.roomStr,
12460
- userId: data.user,
12459
+ userId: data.user.toString(),
12461
12460
  sdkToken: data.attachToken || data.token,
12462
12461
  });
12463
12462
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnirtc-web",
3
- "version": "0.1.0-beta.0",
3
+ "version": "0.1.0-beta.1",
4
4
  "description": "",
5
5
  "main": "./dist/es-omnirtc-web.js",
6
6
  "types": "./dist/omni.d.ts",
@@ -8,6 +8,7 @@
8
8
  "start": "rollup -c rollup.config.js --watch",
9
9
  "build-es": "cross-env NODE_ENV=production rollup -c rollup.es.js",
10
10
  "build": "cross-env NODE_ENV=production rollup -c rollup.config.js",
11
+ "prepack": "npm run build-es",
11
12
  "test": "echo \"Error: no test specified\" && exit 1",
12
13
  "doc": "npx typedoc --out ./docs --excludePrivate --excludeExternals --mode modules ./src/rtcengine.ts"
13
14
  },