zbzt-live-sdk 0.8.1 → 0.8.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/CHANGELOG.md +11 -0
- package/dist/zbzt-live-sdk.cjs.js +25 -17
- package/dist/zbzt-live-sdk.esm.js +25 -17
- package/dist/zbzt-live-sdk.umd.js +25 -17
- package/dist/zbzt-live-sdk.umd.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
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.8.2"></a>
|
|
6
|
+
## [0.8.2] (2024-07-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* 修复zego重新选择屏幕共享报错的问题 ([491b56e])
|
|
12
|
+
* 修复火山无名氏学生的问题 ([9b8c0cc])
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
5
16
|
<a name="0.8.1"></a>
|
|
6
17
|
## [0.8.1] (2024-07-01)
|
|
7
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* zbzt-live-sdk.js v0.8.
|
|
3
|
-
* 2024-7-
|
|
2
|
+
* zbzt-live-sdk.js v0.8.2
|
|
3
|
+
* 2024-7-5 lanlonggang
|
|
4
4
|
* Released By TAL Live.
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
@@ -16648,7 +16648,7 @@ var urls = {
|
|
|
16648
16648
|
api: 'api.weclassroom.com',
|
|
16649
16649
|
report: 's.weclassroom.com'
|
|
16650
16650
|
};
|
|
16651
|
-
var version = '0.8.
|
|
16651
|
+
var version = '0.8.2';
|
|
16652
16652
|
var liveExt = {
|
|
16653
16653
|
name: 'live',
|
|
16654
16654
|
version: '1.0.0.0'
|
|
@@ -20109,10 +20109,21 @@ function _restartCaptureScreen() {
|
|
|
20109
20109
|
case 4:
|
|
20110
20110
|
oldStream = screenStream;
|
|
20111
20111
|
screenStream = null;
|
|
20112
|
-
|
|
20113
|
-
_context32.next =
|
|
20112
|
+
_context32.prev = 6;
|
|
20113
|
+
_context32.next = 9;
|
|
20114
20114
|
return startScreenPreview();
|
|
20115
|
-
case
|
|
20115
|
+
case 9:
|
|
20116
|
+
_context32.next = 16;
|
|
20117
|
+
break;
|
|
20118
|
+
case 11:
|
|
20119
|
+
_context32.prev = 11;
|
|
20120
|
+
_context32.t0 = _context32["catch"](6);
|
|
20121
|
+
defaultApi$1.writeLog('ZEGO:: restartCaptureScreen error' + _context32.t0, null, 'error');
|
|
20122
|
+
if (!screenStream) {
|
|
20123
|
+
screenStream = oldStream;
|
|
20124
|
+
}
|
|
20125
|
+
throw _context32.t0;
|
|
20126
|
+
case 16:
|
|
20116
20127
|
// 销毁并停止发布旧的屏幕共享流
|
|
20117
20128
|
zg.destroyStream(oldStream);
|
|
20118
20129
|
zg.stopPublishingStream(screenStreamId);
|
|
@@ -20126,11 +20137,11 @@ function _restartCaptureScreen() {
|
|
|
20126
20137
|
if (screenConstraints.captureView) {
|
|
20127
20138
|
screenStream.playVideo(screenConstraints.captureView);
|
|
20128
20139
|
}
|
|
20129
|
-
case
|
|
20140
|
+
case 21:
|
|
20130
20141
|
case "end":
|
|
20131
20142
|
return _context32.stop();
|
|
20132
20143
|
}
|
|
20133
|
-
}, _callee32);
|
|
20144
|
+
}, _callee32, null, [[6, 11]]);
|
|
20134
20145
|
}));
|
|
20135
20146
|
return _restartCaptureScreen.apply(this, arguments);
|
|
20136
20147
|
}
|
|
@@ -21541,7 +21552,7 @@ var InvalidTokenError_1 = InvalidTokenError;
|
|
|
21541
21552
|
lib.InvalidTokenError = InvalidTokenError_1;
|
|
21542
21553
|
|
|
21543
21554
|
var StaticConfig = {
|
|
21544
|
-
agentVersion: "OmniRTC_Web_V1.1.
|
|
21555
|
+
agentVersion: "OmniRTC_Web_V1.1.5-peiyou.0",
|
|
21545
21556
|
logVersion: 1,
|
|
21546
21557
|
serviceType: 320,
|
|
21547
21558
|
logBackendUrl: "https://rtc-logs.magic-school.com/stream.gif"
|
|
@@ -32613,13 +32624,8 @@ var VolcCoreRTC = /** @class */ (function () {
|
|
|
32613
32624
|
if (config.mode && config.mode === 'rtc') {
|
|
32614
32625
|
this._engine.setUserVisibility(true);
|
|
32615
32626
|
}
|
|
32616
|
-
if (config.role) {
|
|
32617
|
-
|
|
32618
|
-
this._engine.setUserVisibility(true);
|
|
32619
|
-
}
|
|
32620
|
-
else {
|
|
32621
|
-
this._engine.setUserVisibility(false);
|
|
32622
|
-
}
|
|
32627
|
+
if (config.role && config.role === 'host') {
|
|
32628
|
+
this._engine.setUserVisibility(true);
|
|
32623
32629
|
}
|
|
32624
32630
|
if (config.clientRoleOptions) {
|
|
32625
32631
|
console.log('Currently we do not support setting clientRoleOptions !');
|
|
@@ -33807,6 +33813,7 @@ var VolcCoreRTCWrapper = /** @class */ (function () {
|
|
|
33807
33813
|
this._plan = plan;
|
|
33808
33814
|
index$1.setParameter('STATS_SCALLBACK_SUPPORT', false);
|
|
33809
33815
|
this._engine = index$1.createEngine(this._appId);
|
|
33816
|
+
this._engine.setUserVisibility(false);
|
|
33810
33817
|
VolcCoreRTC$1.setEngine(this._engine);
|
|
33811
33818
|
VolcCoreRTC$1.setUserInfo({
|
|
33812
33819
|
appId: appId,
|
|
@@ -35054,7 +35061,8 @@ var init$1 = /*#__PURE__*/function () {
|
|
|
35054
35061
|
accountId: args.userId,
|
|
35055
35062
|
header: args.institutionId,
|
|
35056
35063
|
liveId: args.live_id,
|
|
35057
|
-
mainStream: localStreamId$1
|
|
35064
|
+
mainStream: localStreamId$1,
|
|
35065
|
+
role: args.role
|
|
35058
35066
|
}));
|
|
35059
35067
|
talrtc.enableLogUpload();
|
|
35060
35068
|
talrtc.onAutoplayFailed = function (autoResume, kind) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* zbzt-live-sdk.js v0.8.
|
|
3
|
-
* 2024-7-
|
|
2
|
+
* zbzt-live-sdk.js v0.8.2
|
|
3
|
+
* 2024-7-5 lanlonggang
|
|
4
4
|
* Released By TAL Live.
|
|
5
5
|
*/
|
|
6
6
|
import axios$2 from 'axios';
|
|
@@ -16642,7 +16642,7 @@ var urls = {
|
|
|
16642
16642
|
api: 'api.weclassroom.com',
|
|
16643
16643
|
report: 's.weclassroom.com'
|
|
16644
16644
|
};
|
|
16645
|
-
var version = '0.8.
|
|
16645
|
+
var version = '0.8.2';
|
|
16646
16646
|
var liveExt = {
|
|
16647
16647
|
name: 'live',
|
|
16648
16648
|
version: '1.0.0.0'
|
|
@@ -20103,10 +20103,21 @@ function _restartCaptureScreen() {
|
|
|
20103
20103
|
case 4:
|
|
20104
20104
|
oldStream = screenStream;
|
|
20105
20105
|
screenStream = null;
|
|
20106
|
-
|
|
20107
|
-
_context32.next =
|
|
20106
|
+
_context32.prev = 6;
|
|
20107
|
+
_context32.next = 9;
|
|
20108
20108
|
return startScreenPreview();
|
|
20109
|
-
case
|
|
20109
|
+
case 9:
|
|
20110
|
+
_context32.next = 16;
|
|
20111
|
+
break;
|
|
20112
|
+
case 11:
|
|
20113
|
+
_context32.prev = 11;
|
|
20114
|
+
_context32.t0 = _context32["catch"](6);
|
|
20115
|
+
defaultApi$1.writeLog('ZEGO:: restartCaptureScreen error' + _context32.t0, null, 'error');
|
|
20116
|
+
if (!screenStream) {
|
|
20117
|
+
screenStream = oldStream;
|
|
20118
|
+
}
|
|
20119
|
+
throw _context32.t0;
|
|
20120
|
+
case 16:
|
|
20110
20121
|
// 销毁并停止发布旧的屏幕共享流
|
|
20111
20122
|
zg.destroyStream(oldStream);
|
|
20112
20123
|
zg.stopPublishingStream(screenStreamId);
|
|
@@ -20120,11 +20131,11 @@ function _restartCaptureScreen() {
|
|
|
20120
20131
|
if (screenConstraints.captureView) {
|
|
20121
20132
|
screenStream.playVideo(screenConstraints.captureView);
|
|
20122
20133
|
}
|
|
20123
|
-
case
|
|
20134
|
+
case 21:
|
|
20124
20135
|
case "end":
|
|
20125
20136
|
return _context32.stop();
|
|
20126
20137
|
}
|
|
20127
|
-
}, _callee32);
|
|
20138
|
+
}, _callee32, null, [[6, 11]]);
|
|
20128
20139
|
}));
|
|
20129
20140
|
return _restartCaptureScreen.apply(this, arguments);
|
|
20130
20141
|
}
|
|
@@ -21535,7 +21546,7 @@ var InvalidTokenError_1 = InvalidTokenError;
|
|
|
21535
21546
|
lib.InvalidTokenError = InvalidTokenError_1;
|
|
21536
21547
|
|
|
21537
21548
|
var StaticConfig = {
|
|
21538
|
-
agentVersion: "OmniRTC_Web_V1.1.
|
|
21549
|
+
agentVersion: "OmniRTC_Web_V1.1.5-peiyou.0",
|
|
21539
21550
|
logVersion: 1,
|
|
21540
21551
|
serviceType: 320,
|
|
21541
21552
|
logBackendUrl: "https://rtc-logs.magic-school.com/stream.gif"
|
|
@@ -32607,13 +32618,8 @@ var VolcCoreRTC = /** @class */ (function () {
|
|
|
32607
32618
|
if (config.mode && config.mode === 'rtc') {
|
|
32608
32619
|
this._engine.setUserVisibility(true);
|
|
32609
32620
|
}
|
|
32610
|
-
if (config.role) {
|
|
32611
|
-
|
|
32612
|
-
this._engine.setUserVisibility(true);
|
|
32613
|
-
}
|
|
32614
|
-
else {
|
|
32615
|
-
this._engine.setUserVisibility(false);
|
|
32616
|
-
}
|
|
32621
|
+
if (config.role && config.role === 'host') {
|
|
32622
|
+
this._engine.setUserVisibility(true);
|
|
32617
32623
|
}
|
|
32618
32624
|
if (config.clientRoleOptions) {
|
|
32619
32625
|
console.log('Currently we do not support setting clientRoleOptions !');
|
|
@@ -33801,6 +33807,7 @@ var VolcCoreRTCWrapper = /** @class */ (function () {
|
|
|
33801
33807
|
this._plan = plan;
|
|
33802
33808
|
index$1.setParameter('STATS_SCALLBACK_SUPPORT', false);
|
|
33803
33809
|
this._engine = index$1.createEngine(this._appId);
|
|
33810
|
+
this._engine.setUserVisibility(false);
|
|
33804
33811
|
VolcCoreRTC$1.setEngine(this._engine);
|
|
33805
33812
|
VolcCoreRTC$1.setUserInfo({
|
|
33806
33813
|
appId: appId,
|
|
@@ -35048,7 +35055,8 @@ var init$1 = /*#__PURE__*/function () {
|
|
|
35048
35055
|
accountId: args.userId,
|
|
35049
35056
|
header: args.institutionId,
|
|
35050
35057
|
liveId: args.live_id,
|
|
35051
|
-
mainStream: localStreamId$1
|
|
35058
|
+
mainStream: localStreamId$1,
|
|
35059
|
+
role: args.role
|
|
35052
35060
|
}));
|
|
35053
35061
|
talrtc.enableLogUpload();
|
|
35054
35062
|
talrtc.onAutoplayFailed = function (autoResume, kind) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* zbzt-live-sdk.js v0.8.
|
|
3
|
-
* 2024-7-
|
|
2
|
+
* zbzt-live-sdk.js v0.8.2
|
|
3
|
+
* 2024-7-5 lanlonggang
|
|
4
4
|
* Released By TAL Live.
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
@@ -18331,7 +18331,7 @@
|
|
|
18331
18331
|
api: 'api.weclassroom.com',
|
|
18332
18332
|
report: 's.weclassroom.com'
|
|
18333
18333
|
};
|
|
18334
|
-
var version = '0.8.
|
|
18334
|
+
var version = '0.8.2';
|
|
18335
18335
|
var liveExt = {
|
|
18336
18336
|
name: 'live',
|
|
18337
18337
|
version: '1.0.0.0'
|
|
@@ -21792,10 +21792,21 @@
|
|
|
21792
21792
|
case 4:
|
|
21793
21793
|
oldStream = screenStream;
|
|
21794
21794
|
screenStream = null;
|
|
21795
|
-
|
|
21796
|
-
_context32.next =
|
|
21795
|
+
_context32.prev = 6;
|
|
21796
|
+
_context32.next = 9;
|
|
21797
21797
|
return startScreenPreview();
|
|
21798
|
-
case
|
|
21798
|
+
case 9:
|
|
21799
|
+
_context32.next = 16;
|
|
21800
|
+
break;
|
|
21801
|
+
case 11:
|
|
21802
|
+
_context32.prev = 11;
|
|
21803
|
+
_context32.t0 = _context32["catch"](6);
|
|
21804
|
+
defaultApi$1.writeLog('ZEGO:: restartCaptureScreen error' + _context32.t0, null, 'error');
|
|
21805
|
+
if (!screenStream) {
|
|
21806
|
+
screenStream = oldStream;
|
|
21807
|
+
}
|
|
21808
|
+
throw _context32.t0;
|
|
21809
|
+
case 16:
|
|
21799
21810
|
// 销毁并停止发布旧的屏幕共享流
|
|
21800
21811
|
zg.destroyStream(oldStream);
|
|
21801
21812
|
zg.stopPublishingStream(screenStreamId);
|
|
@@ -21809,11 +21820,11 @@
|
|
|
21809
21820
|
if (screenConstraints.captureView) {
|
|
21810
21821
|
screenStream.playVideo(screenConstraints.captureView);
|
|
21811
21822
|
}
|
|
21812
|
-
case
|
|
21823
|
+
case 21:
|
|
21813
21824
|
case "end":
|
|
21814
21825
|
return _context32.stop();
|
|
21815
21826
|
}
|
|
21816
|
-
}, _callee32);
|
|
21827
|
+
}, _callee32, null, [[6, 11]]);
|
|
21817
21828
|
}));
|
|
21818
21829
|
return _restartCaptureScreen.apply(this, arguments);
|
|
21819
21830
|
}
|
|
@@ -23224,7 +23235,7 @@
|
|
|
23224
23235
|
lib.InvalidTokenError = InvalidTokenError_1;
|
|
23225
23236
|
|
|
23226
23237
|
var StaticConfig = {
|
|
23227
|
-
agentVersion: "OmniRTC_Web_V1.1.
|
|
23238
|
+
agentVersion: "OmniRTC_Web_V1.1.5-peiyou.0",
|
|
23228
23239
|
logVersion: 1,
|
|
23229
23240
|
serviceType: 320,
|
|
23230
23241
|
logBackendUrl: "https://rtc-logs.magic-school.com/stream.gif"
|
|
@@ -34296,13 +34307,8 @@
|
|
|
34296
34307
|
if (config.mode && config.mode === 'rtc') {
|
|
34297
34308
|
this._engine.setUserVisibility(true);
|
|
34298
34309
|
}
|
|
34299
|
-
if (config.role) {
|
|
34300
|
-
|
|
34301
|
-
this._engine.setUserVisibility(true);
|
|
34302
|
-
}
|
|
34303
|
-
else {
|
|
34304
|
-
this._engine.setUserVisibility(false);
|
|
34305
|
-
}
|
|
34310
|
+
if (config.role && config.role === 'host') {
|
|
34311
|
+
this._engine.setUserVisibility(true);
|
|
34306
34312
|
}
|
|
34307
34313
|
if (config.clientRoleOptions) {
|
|
34308
34314
|
console.log('Currently we do not support setting clientRoleOptions !');
|
|
@@ -35490,6 +35496,7 @@
|
|
|
35490
35496
|
this._plan = plan;
|
|
35491
35497
|
index$1.setParameter('STATS_SCALLBACK_SUPPORT', false);
|
|
35492
35498
|
this._engine = index$1.createEngine(this._appId);
|
|
35499
|
+
this._engine.setUserVisibility(false);
|
|
35493
35500
|
VolcCoreRTC$1.setEngine(this._engine);
|
|
35494
35501
|
VolcCoreRTC$1.setUserInfo({
|
|
35495
35502
|
appId: appId,
|
|
@@ -36737,7 +36744,8 @@
|
|
|
36737
36744
|
accountId: args.userId,
|
|
36738
36745
|
header: args.institutionId,
|
|
36739
36746
|
liveId: args.live_id,
|
|
36740
|
-
mainStream: localStreamId$1
|
|
36747
|
+
mainStream: localStreamId$1,
|
|
36748
|
+
role: args.role
|
|
36741
36749
|
}));
|
|
36742
36750
|
talrtc.enableLogUpload();
|
|
36743
36751
|
talrtc.onAutoplayFailed = function (autoResume, kind) {
|