zbzt-live-sdk 0.9.3 → 0.9.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ <a name="0.9.4"></a>
6
+ ## [0.9.4] (2024-08-02)
7
+
8
+
9
+
5
10
  <a name="0.9.3"></a>
6
11
  ## [0.9.3] (2024-08-01)
7
12
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * zbzt-live-sdk.js v0.9.3
3
- * 2024-8-1 lanlonggang
2
+ * zbzt-live-sdk.js v0.9.4
3
+ * 2024-8-2 lanlonggang
4
4
  * Released By TAL Live.
5
5
  */
6
6
  'use strict';
@@ -16664,7 +16664,7 @@ var urls = {
16664
16664
  api: 'api.weclassroom.com',
16665
16665
  report: 's.weclassroom.com'
16666
16666
  };
16667
- var version = '0.9.3';
16667
+ var version = '0.9.4';
16668
16668
  var liveExt = {
16669
16669
  name: 'live',
16670
16670
  version: '1.0.0.0'
@@ -21585,7 +21585,7 @@ var InvalidTokenError_1 = InvalidTokenError;
21585
21585
  lib.InvalidTokenError = InvalidTokenError_1;
21586
21586
 
21587
21587
  var StaticConfig = {
21588
- agentVersion: "OmniRTC_Web_V1.1.5-peiyou.0",
21588
+ agentVersion: "OmniRTC_Web_V1.1.5-peiyou.1",
21589
21589
  logVersion: 1,
21590
21590
  serviceType: 320,
21591
21591
  logBackendUrl: "https://rtc-logs.magic-school.com/stream.gif"
@@ -27704,10 +27704,10 @@ var StatisticDynamicHelper = /** @class */ (function (_super) {
27704
27704
  this.remoteVideoStatsMap.set(uid, []);
27705
27705
  }
27706
27706
  var stats = {
27707
- videoWidth: _stats.recvResolutionWidth,
27708
- videoHeight: _stats.recvResolutionHeight,
27707
+ videoWidth: _stats.receiveResolutionWidth,
27708
+ videoHeight: _stats.receiveResolutionHeight,
27709
27709
  videoFps: _stats.renderFrameRate,
27710
- videoBps: _stats.recvBitrate / 1000 >> 0,
27710
+ videoBps: _stats.receiveBitrate / 1000 >> 0,
27711
27711
  videoDelay: _stats.end2EndDelay,
27712
27712
  videoLost: _stats.packetLossRate,
27713
27713
  videoDecFps: _stats.decodeFrameRate,
@@ -28988,7 +28988,7 @@ var StatisticLog = /** @class */ (function (_super) {
28988
28988
  joinType: type
28989
28989
  };
28990
28990
  if (hasErr) {
28991
- pridata.code = 311;
28991
+ pridata.code = 1;
28992
28992
  pridata.msg = ErrCodeMap[pridata.code];
28993
28993
  }
28994
28994
  frame.addPrivate(PriCodeMap.JOIN_ROOM, pridata);
@@ -29002,7 +29002,7 @@ var StatisticLog = /** @class */ (function (_super) {
29002
29002
  msg: ErrCodeMap[0]
29003
29003
  };
29004
29004
  if (hasErr) {
29005
- pridata.code = 311;
29005
+ pridata.code = 1;
29006
29006
  pridata.msg = ErrCodeMap[pridata.code];
29007
29007
  }
29008
29008
  frame.addPrivate(PriCodeMap.LEAVE_ROOM, pridata);
@@ -33625,6 +33625,9 @@ var Client = /** @class */ (function (_super) {
33625
33625
  flag = streamFlagMap[userId >>> 30];
33626
33626
  userId = parseAgoraUserId(userId, flag);
33627
33627
  }
33628
+ if (_this._type === RTCEngineType.Core) {
33629
+ flag = 'main';
33630
+ }
33628
33631
  var streamId = _this._prefix + "_" + _this._roomId + "_" + userId + "_" + flag;
33629
33632
  _this._userMap.set(streamId, user);
33630
33633
  // @ts-ignore
@@ -33636,6 +33639,9 @@ var Client = /** @class */ (function (_super) {
33636
33639
  flag = streamFlagMap[userId >>> 30];
33637
33640
  userId = parseAgoraUserId(userId, flag);
33638
33641
  }
33642
+ if (_this._type === RTCEngineType.Core) {
33643
+ flag = 'main';
33644
+ }
33639
33645
  var streamId = _this._prefix + "_" + _this._roomId + "_" + userId + "_" + flag;
33640
33646
  _this._userMap.delete(streamId);
33641
33647
  // @ts-ignore
@@ -33695,6 +33701,7 @@ var CoreRTC$1 = /** @class */ (function () {
33695
33701
  token: this._token,
33696
33702
  plan: this._plan,
33697
33703
  type: RTCEngineType.Core,
33704
+ prefix: config.streamPrefix,
33698
33705
  });
33699
33706
  };
33700
33707
  CoreRTC.prototype.createBufferSourceAudioTrack = function (config) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * zbzt-live-sdk.js v0.9.3
3
- * 2024-8-1 lanlonggang
2
+ * zbzt-live-sdk.js v0.9.4
3
+ * 2024-8-2 lanlonggang
4
4
  * Released By TAL Live.
5
5
  */
6
6
  import axios$2 from 'axios';
@@ -16658,7 +16658,7 @@ var urls = {
16658
16658
  api: 'api.weclassroom.com',
16659
16659
  report: 's.weclassroom.com'
16660
16660
  };
16661
- var version = '0.9.3';
16661
+ var version = '0.9.4';
16662
16662
  var liveExt = {
16663
16663
  name: 'live',
16664
16664
  version: '1.0.0.0'
@@ -21579,7 +21579,7 @@ var InvalidTokenError_1 = InvalidTokenError;
21579
21579
  lib.InvalidTokenError = InvalidTokenError_1;
21580
21580
 
21581
21581
  var StaticConfig = {
21582
- agentVersion: "OmniRTC_Web_V1.1.5-peiyou.0",
21582
+ agentVersion: "OmniRTC_Web_V1.1.5-peiyou.1",
21583
21583
  logVersion: 1,
21584
21584
  serviceType: 320,
21585
21585
  logBackendUrl: "https://rtc-logs.magic-school.com/stream.gif"
@@ -27698,10 +27698,10 @@ var StatisticDynamicHelper = /** @class */ (function (_super) {
27698
27698
  this.remoteVideoStatsMap.set(uid, []);
27699
27699
  }
27700
27700
  var stats = {
27701
- videoWidth: _stats.recvResolutionWidth,
27702
- videoHeight: _stats.recvResolutionHeight,
27701
+ videoWidth: _stats.receiveResolutionWidth,
27702
+ videoHeight: _stats.receiveResolutionHeight,
27703
27703
  videoFps: _stats.renderFrameRate,
27704
- videoBps: _stats.recvBitrate / 1000 >> 0,
27704
+ videoBps: _stats.receiveBitrate / 1000 >> 0,
27705
27705
  videoDelay: _stats.end2EndDelay,
27706
27706
  videoLost: _stats.packetLossRate,
27707
27707
  videoDecFps: _stats.decodeFrameRate,
@@ -28982,7 +28982,7 @@ var StatisticLog = /** @class */ (function (_super) {
28982
28982
  joinType: type
28983
28983
  };
28984
28984
  if (hasErr) {
28985
- pridata.code = 311;
28985
+ pridata.code = 1;
28986
28986
  pridata.msg = ErrCodeMap[pridata.code];
28987
28987
  }
28988
28988
  frame.addPrivate(PriCodeMap.JOIN_ROOM, pridata);
@@ -28996,7 +28996,7 @@ var StatisticLog = /** @class */ (function (_super) {
28996
28996
  msg: ErrCodeMap[0]
28997
28997
  };
28998
28998
  if (hasErr) {
28999
- pridata.code = 311;
28999
+ pridata.code = 1;
29000
29000
  pridata.msg = ErrCodeMap[pridata.code];
29001
29001
  }
29002
29002
  frame.addPrivate(PriCodeMap.LEAVE_ROOM, pridata);
@@ -33619,6 +33619,9 @@ var Client = /** @class */ (function (_super) {
33619
33619
  flag = streamFlagMap[userId >>> 30];
33620
33620
  userId = parseAgoraUserId(userId, flag);
33621
33621
  }
33622
+ if (_this._type === RTCEngineType.Core) {
33623
+ flag = 'main';
33624
+ }
33622
33625
  var streamId = _this._prefix + "_" + _this._roomId + "_" + userId + "_" + flag;
33623
33626
  _this._userMap.set(streamId, user);
33624
33627
  // @ts-ignore
@@ -33630,6 +33633,9 @@ var Client = /** @class */ (function (_super) {
33630
33633
  flag = streamFlagMap[userId >>> 30];
33631
33634
  userId = parseAgoraUserId(userId, flag);
33632
33635
  }
33636
+ if (_this._type === RTCEngineType.Core) {
33637
+ flag = 'main';
33638
+ }
33633
33639
  var streamId = _this._prefix + "_" + _this._roomId + "_" + userId + "_" + flag;
33634
33640
  _this._userMap.delete(streamId);
33635
33641
  // @ts-ignore
@@ -33689,6 +33695,7 @@ var CoreRTC$1 = /** @class */ (function () {
33689
33695
  token: this._token,
33690
33696
  plan: this._plan,
33691
33697
  type: RTCEngineType.Core,
33698
+ prefix: config.streamPrefix,
33692
33699
  });
33693
33700
  };
33694
33701
  CoreRTC.prototype.createBufferSourceAudioTrack = function (config) {
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * zbzt-live-sdk.js v0.9.3
3
- * 2024-8-1 lanlonggang
2
+ * zbzt-live-sdk.js v0.9.4
3
+ * 2024-8-2 lanlonggang
4
4
  * Released By TAL Live.
5
5
  */
6
6
  (function (global, factory) {
@@ -18347,7 +18347,7 @@
18347
18347
  api: 'api.weclassroom.com',
18348
18348
  report: 's.weclassroom.com'
18349
18349
  };
18350
- var version = '0.9.3';
18350
+ var version = '0.9.4';
18351
18351
  var liveExt = {
18352
18352
  name: 'live',
18353
18353
  version: '1.0.0.0'
@@ -23268,7 +23268,7 @@
23268
23268
  lib.InvalidTokenError = InvalidTokenError_1;
23269
23269
 
23270
23270
  var StaticConfig = {
23271
- agentVersion: "OmniRTC_Web_V1.1.5-peiyou.0",
23271
+ agentVersion: "OmniRTC_Web_V1.1.5-peiyou.1",
23272
23272
  logVersion: 1,
23273
23273
  serviceType: 320,
23274
23274
  logBackendUrl: "https://rtc-logs.magic-school.com/stream.gif"
@@ -29387,10 +29387,10 @@
29387
29387
  this.remoteVideoStatsMap.set(uid, []);
29388
29388
  }
29389
29389
  var stats = {
29390
- videoWidth: _stats.recvResolutionWidth,
29391
- videoHeight: _stats.recvResolutionHeight,
29390
+ videoWidth: _stats.receiveResolutionWidth,
29391
+ videoHeight: _stats.receiveResolutionHeight,
29392
29392
  videoFps: _stats.renderFrameRate,
29393
- videoBps: _stats.recvBitrate / 1000 >> 0,
29393
+ videoBps: _stats.receiveBitrate / 1000 >> 0,
29394
29394
  videoDelay: _stats.end2EndDelay,
29395
29395
  videoLost: _stats.packetLossRate,
29396
29396
  videoDecFps: _stats.decodeFrameRate,
@@ -30671,7 +30671,7 @@
30671
30671
  joinType: type
30672
30672
  };
30673
30673
  if (hasErr) {
30674
- pridata.code = 311;
30674
+ pridata.code = 1;
30675
30675
  pridata.msg = ErrCodeMap[pridata.code];
30676
30676
  }
30677
30677
  frame.addPrivate(PriCodeMap.JOIN_ROOM, pridata);
@@ -30685,7 +30685,7 @@
30685
30685
  msg: ErrCodeMap[0]
30686
30686
  };
30687
30687
  if (hasErr) {
30688
- pridata.code = 311;
30688
+ pridata.code = 1;
30689
30689
  pridata.msg = ErrCodeMap[pridata.code];
30690
30690
  }
30691
30691
  frame.addPrivate(PriCodeMap.LEAVE_ROOM, pridata);
@@ -35308,6 +35308,9 @@
35308
35308
  flag = streamFlagMap[userId >>> 30];
35309
35309
  userId = parseAgoraUserId(userId, flag);
35310
35310
  }
35311
+ if (_this._type === RTCEngineType.Core) {
35312
+ flag = 'main';
35313
+ }
35311
35314
  var streamId = _this._prefix + "_" + _this._roomId + "_" + userId + "_" + flag;
35312
35315
  _this._userMap.set(streamId, user);
35313
35316
  // @ts-ignore
@@ -35319,6 +35322,9 @@
35319
35322
  flag = streamFlagMap[userId >>> 30];
35320
35323
  userId = parseAgoraUserId(userId, flag);
35321
35324
  }
35325
+ if (_this._type === RTCEngineType.Core) {
35326
+ flag = 'main';
35327
+ }
35322
35328
  var streamId = _this._prefix + "_" + _this._roomId + "_" + userId + "_" + flag;
35323
35329
  _this._userMap.delete(streamId);
35324
35330
  // @ts-ignore
@@ -35378,6 +35384,7 @@
35378
35384
  token: this._token,
35379
35385
  plan: this._plan,
35380
35386
  type: RTCEngineType.Core,
35387
+ prefix: config.streamPrefix,
35381
35388
  });
35382
35389
  };
35383
35390
  CoreRTC.prototype.createBufferSourceAudioTrack = function (config) {