zbzt-live-sdk 0.9.1 → 0.9.3

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,26 @@
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.3"></a>
6
+ ## [0.9.3] (2024-08-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * 用户离开房间时释放资源 ([d0f5194])
12
+
13
+
14
+
15
+ <a name="0.9.2"></a>
16
+ ## [0.9.2] (2024-07-31)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * 增加禁用zego弹窗的配置 ([263a344])
22
+
23
+
24
+
5
25
  <a name="0.9.1"></a>
6
26
  ## [0.9.1] (2024-07-30)
7
27
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * zbzt-live-sdk.js v0.9.1
3
- * 2024-7-30 lanlonggang
2
+ * zbzt-live-sdk.js v0.9.3
3
+ * 2024-8-1 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.1';
16667
+ var version = '0.9.3';
16668
16668
  var liveExt = {
16669
16669
  name: 'live',
16670
16670
  version: '1.0.0.0'
@@ -16717,7 +16717,8 @@ var config = {
16717
16717
  weblog: true,
16718
16718
  businessLinesType: 'xes',
16719
16719
  // saas | xes
16720
- userLocation: USER_LOCATION.MAINLAND
16720
+ userLocation: USER_LOCATION.MAINLAND,
16721
+ enableZegoAutoplayDialog: true
16721
16722
  };
16722
16723
  var getBaseUrl = function getBaseUrl() {
16723
16724
  var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'api';
@@ -19753,7 +19754,8 @@ function _startLocalOrRemotePreview() {
19753
19754
  NOTICE.autoplayFailed();
19754
19755
  });
19755
19756
  remoteView.play(domId, {
19756
- muted: muted
19757
+ muted: muted,
19758
+ enableAutoplayDialog: config.enableZegoAutoplayDialog
19757
19759
  });
19758
19760
  try {
19759
19761
  // NOTE 防止二次拉流,业务侧创重名播放容器
@@ -20700,7 +20702,8 @@ function setPlayViewMirror(mirror) {
20700
20702
  try {
20701
20703
  var streamView = streamIdToStreamView[streamId];
20702
20704
  streamView.play(streamView.v.container, {
20703
- mirror: mirror
20705
+ mirror: mirror,
20706
+ enableAutoplayDialog: config.enableZegoAutoplayDialog
20704
20707
  });
20705
20708
  } catch (error) {}
20706
20709
  });
@@ -34830,6 +34833,13 @@ var onUserLeft = function onUserLeft(client, rtcUser) {
34830
34833
  sdkEvent('user-left', {
34831
34834
  uid: rtcUser.uid
34832
34835
  });
34836
+ var key = "".concat(client.channelName, "_").concat(rtcUser.uid);
34837
+ var user = users.get(key);
34838
+ if (user) {
34839
+ user.rtcUser = null;
34840
+ user.mainStreamId = '';
34841
+ user.screenStreamId = '';
34842
+ }
34833
34843
  // const key = `${client.channelName}_${rtcUser.uid}`;
34834
34844
  // users.delete(key);
34835
34845
  };
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * zbzt-live-sdk.js v0.9.1
3
- * 2024-7-30 lanlonggang
2
+ * zbzt-live-sdk.js v0.9.3
3
+ * 2024-8-1 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.1';
16661
+ var version = '0.9.3';
16662
16662
  var liveExt = {
16663
16663
  name: 'live',
16664
16664
  version: '1.0.0.0'
@@ -16711,7 +16711,8 @@ var config = {
16711
16711
  weblog: true,
16712
16712
  businessLinesType: 'xes',
16713
16713
  // saas | xes
16714
- userLocation: USER_LOCATION.MAINLAND
16714
+ userLocation: USER_LOCATION.MAINLAND,
16715
+ enableZegoAutoplayDialog: true
16715
16716
  };
16716
16717
  var getBaseUrl = function getBaseUrl() {
16717
16718
  var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'api';
@@ -19747,7 +19748,8 @@ function _startLocalOrRemotePreview() {
19747
19748
  NOTICE.autoplayFailed();
19748
19749
  });
19749
19750
  remoteView.play(domId, {
19750
- muted: muted
19751
+ muted: muted,
19752
+ enableAutoplayDialog: config.enableZegoAutoplayDialog
19751
19753
  });
19752
19754
  try {
19753
19755
  // NOTE 防止二次拉流,业务侧创重名播放容器
@@ -20694,7 +20696,8 @@ function setPlayViewMirror(mirror) {
20694
20696
  try {
20695
20697
  var streamView = streamIdToStreamView[streamId];
20696
20698
  streamView.play(streamView.v.container, {
20697
- mirror: mirror
20699
+ mirror: mirror,
20700
+ enableAutoplayDialog: config.enableZegoAutoplayDialog
20698
20701
  });
20699
20702
  } catch (error) {}
20700
20703
  });
@@ -34824,6 +34827,13 @@ var onUserLeft = function onUserLeft(client, rtcUser) {
34824
34827
  sdkEvent('user-left', {
34825
34828
  uid: rtcUser.uid
34826
34829
  });
34830
+ var key = "".concat(client.channelName, "_").concat(rtcUser.uid);
34831
+ var user = users.get(key);
34832
+ if (user) {
34833
+ user.rtcUser = null;
34834
+ user.mainStreamId = '';
34835
+ user.screenStreamId = '';
34836
+ }
34827
34837
  // const key = `${client.channelName}_${rtcUser.uid}`;
34828
34838
  // users.delete(key);
34829
34839
  };
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * zbzt-live-sdk.js v0.9.1
3
- * 2024-7-30 lanlonggang
2
+ * zbzt-live-sdk.js v0.9.3
3
+ * 2024-8-1 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.1';
18350
+ var version = '0.9.3';
18351
18351
  var liveExt = {
18352
18352
  name: 'live',
18353
18353
  version: '1.0.0.0'
@@ -18400,7 +18400,8 @@
18400
18400
  weblog: true,
18401
18401
  businessLinesType: 'xes',
18402
18402
  // saas | xes
18403
- userLocation: USER_LOCATION.MAINLAND
18403
+ userLocation: USER_LOCATION.MAINLAND,
18404
+ enableZegoAutoplayDialog: true
18404
18405
  };
18405
18406
  var getBaseUrl = function getBaseUrl() {
18406
18407
  var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'api';
@@ -21436,7 +21437,8 @@
21436
21437
  NOTICE.autoplayFailed();
21437
21438
  });
21438
21439
  remoteView.play(domId, {
21439
- muted: muted
21440
+ muted: muted,
21441
+ enableAutoplayDialog: config.enableZegoAutoplayDialog
21440
21442
  });
21441
21443
  try {
21442
21444
  // NOTE 防止二次拉流,业务侧创重名播放容器
@@ -22383,7 +22385,8 @@
22383
22385
  try {
22384
22386
  var streamView = streamIdToStreamView[streamId];
22385
22387
  streamView.play(streamView.v.container, {
22386
- mirror: mirror
22388
+ mirror: mirror,
22389
+ enableAutoplayDialog: config.enableZegoAutoplayDialog
22387
22390
  });
22388
22391
  } catch (error) {}
22389
22392
  });
@@ -36513,6 +36516,13 @@
36513
36516
  sdkEvent('user-left', {
36514
36517
  uid: rtcUser.uid
36515
36518
  });
36519
+ var key = "".concat(client.channelName, "_").concat(rtcUser.uid);
36520
+ var user = users.get(key);
36521
+ if (user) {
36522
+ user.rtcUser = null;
36523
+ user.mainStreamId = '';
36524
+ user.screenStreamId = '';
36525
+ }
36516
36526
  // const key = `${client.channelName}_${rtcUser.uid}`;
36517
36527
  // users.delete(key);
36518
36528
  };