zbzt-live-sdk 0.9.0 → 0.9.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 +20 -0
- package/dist/zbzt-live-sdk.cjs.js +20 -17
- package/dist/zbzt-live-sdk.esm.js +20 -17
- package/dist/zbzt-live-sdk.umd.js +20 -17
- package/dist/zbzt-live-sdk.umd.js.map +1 -1
- package/package.json +1 -1
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.2"></a>
|
|
6
|
+
## [0.9.2] (2024-07-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* 增加禁用zego弹窗的配置 ([263a344])
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<a name="0.9.1"></a>
|
|
16
|
+
## [0.9.1] (2024-07-30)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* 修复火山自动播放失败被拦截的问题 ([883895d])
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
5
25
|
<a name="0.9.0"></a>
|
|
6
26
|
# [0.9.0] (2024-07-08)
|
|
7
27
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* zbzt-live-sdk.js v0.9.
|
|
3
|
-
* 2024-7-
|
|
2
|
+
* zbzt-live-sdk.js v0.9.2
|
|
3
|
+
* 2024-7-31 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.
|
|
16667
|
+
var version = '0.9.2';
|
|
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
|
});
|
|
@@ -35095,12 +35098,6 @@ var init$1 = /*#__PURE__*/function () {
|
|
|
35095
35098
|
role: args.role
|
|
35096
35099
|
}));
|
|
35097
35100
|
talrtc.enableLogUpload();
|
|
35098
|
-
talrtc.onAutoplayFailed = function (autoResume, kind) {
|
|
35099
|
-
if (kind !== 'video') {
|
|
35100
|
-
return;
|
|
35101
|
-
}
|
|
35102
|
-
NOTICE.autoplayFailed();
|
|
35103
|
-
};
|
|
35104
35101
|
// talrtc.setLogLevel(1);
|
|
35105
35102
|
client = talrtc.createClient({
|
|
35106
35103
|
codec: 'h264',
|
|
@@ -35108,19 +35105,25 @@ var init$1 = /*#__PURE__*/function () {
|
|
|
35108
35105
|
streamPrefix: institutionId
|
|
35109
35106
|
});
|
|
35110
35107
|
clients.set(String(args.roomId), client);
|
|
35111
|
-
_context4.next =
|
|
35108
|
+
_context4.next = 27;
|
|
35112
35109
|
return client.join();
|
|
35113
|
-
case
|
|
35110
|
+
case 27:
|
|
35114
35111
|
if (!(args.role !== 'spy')) {
|
|
35115
|
-
_context4.next =
|
|
35112
|
+
_context4.next = 30;
|
|
35116
35113
|
break;
|
|
35117
35114
|
}
|
|
35118
|
-
_context4.next =
|
|
35115
|
+
_context4.next = 30;
|
|
35119
35116
|
return setDefaultDevice$1(_devices, 'default');
|
|
35120
|
-
case
|
|
35117
|
+
case 30:
|
|
35121
35118
|
setMicphoneVolumInterval(1000);
|
|
35122
35119
|
startRemoteVolumeInterval(1000);
|
|
35123
35120
|
addDeviceListener(talrtc);
|
|
35121
|
+
talrtc.onAutoplayFailed = function (autoResume, kind) {
|
|
35122
|
+
if (kind !== 'video' && client._type === 7) {
|
|
35123
|
+
return;
|
|
35124
|
+
}
|
|
35125
|
+
NOTICE.autoplayFailed();
|
|
35126
|
+
};
|
|
35124
35127
|
// await setMediaSideFlags();
|
|
35125
35128
|
window.current_sdk_type = sdkType;
|
|
35126
35129
|
defaultApi$1.writeLog('avsdk TALRTC::init finished current_sdk_type: ' + sdkType);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* zbzt-live-sdk.js v0.9.
|
|
3
|
-
* 2024-7-
|
|
2
|
+
* zbzt-live-sdk.js v0.9.2
|
|
3
|
+
* 2024-7-31 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.
|
|
16661
|
+
var version = '0.9.2';
|
|
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
|
});
|
|
@@ -35089,12 +35092,6 @@ var init$1 = /*#__PURE__*/function () {
|
|
|
35089
35092
|
role: args.role
|
|
35090
35093
|
}));
|
|
35091
35094
|
talrtc.enableLogUpload();
|
|
35092
|
-
talrtc.onAutoplayFailed = function (autoResume, kind) {
|
|
35093
|
-
if (kind !== 'video') {
|
|
35094
|
-
return;
|
|
35095
|
-
}
|
|
35096
|
-
NOTICE.autoplayFailed();
|
|
35097
|
-
};
|
|
35098
35095
|
// talrtc.setLogLevel(1);
|
|
35099
35096
|
client = talrtc.createClient({
|
|
35100
35097
|
codec: 'h264',
|
|
@@ -35102,19 +35099,25 @@ var init$1 = /*#__PURE__*/function () {
|
|
|
35102
35099
|
streamPrefix: institutionId
|
|
35103
35100
|
});
|
|
35104
35101
|
clients.set(String(args.roomId), client);
|
|
35105
|
-
_context4.next =
|
|
35102
|
+
_context4.next = 27;
|
|
35106
35103
|
return client.join();
|
|
35107
|
-
case
|
|
35104
|
+
case 27:
|
|
35108
35105
|
if (!(args.role !== 'spy')) {
|
|
35109
|
-
_context4.next =
|
|
35106
|
+
_context4.next = 30;
|
|
35110
35107
|
break;
|
|
35111
35108
|
}
|
|
35112
|
-
_context4.next =
|
|
35109
|
+
_context4.next = 30;
|
|
35113
35110
|
return setDefaultDevice$1(_devices, 'default');
|
|
35114
|
-
case
|
|
35111
|
+
case 30:
|
|
35115
35112
|
setMicphoneVolumInterval(1000);
|
|
35116
35113
|
startRemoteVolumeInterval(1000);
|
|
35117
35114
|
addDeviceListener(talrtc);
|
|
35115
|
+
talrtc.onAutoplayFailed = function (autoResume, kind) {
|
|
35116
|
+
if (kind !== 'video' && client._type === 7) {
|
|
35117
|
+
return;
|
|
35118
|
+
}
|
|
35119
|
+
NOTICE.autoplayFailed();
|
|
35120
|
+
};
|
|
35118
35121
|
// await setMediaSideFlags();
|
|
35119
35122
|
window.current_sdk_type = sdkType;
|
|
35120
35123
|
defaultApi$1.writeLog('avsdk TALRTC::init finished current_sdk_type: ' + sdkType);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* zbzt-live-sdk.js v0.9.
|
|
3
|
-
* 2024-7-
|
|
2
|
+
* zbzt-live-sdk.js v0.9.2
|
|
3
|
+
* 2024-7-31 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.
|
|
18350
|
+
var version = '0.9.2';
|
|
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
|
});
|
|
@@ -36778,12 +36781,6 @@
|
|
|
36778
36781
|
role: args.role
|
|
36779
36782
|
}));
|
|
36780
36783
|
talrtc.enableLogUpload();
|
|
36781
|
-
talrtc.onAutoplayFailed = function (autoResume, kind) {
|
|
36782
|
-
if (kind !== 'video') {
|
|
36783
|
-
return;
|
|
36784
|
-
}
|
|
36785
|
-
NOTICE.autoplayFailed();
|
|
36786
|
-
};
|
|
36787
36784
|
// talrtc.setLogLevel(1);
|
|
36788
36785
|
client = talrtc.createClient({
|
|
36789
36786
|
codec: 'h264',
|
|
@@ -36791,19 +36788,25 @@
|
|
|
36791
36788
|
streamPrefix: institutionId
|
|
36792
36789
|
});
|
|
36793
36790
|
clients.set(String(args.roomId), client);
|
|
36794
|
-
_context4.next =
|
|
36791
|
+
_context4.next = 27;
|
|
36795
36792
|
return client.join();
|
|
36796
|
-
case
|
|
36793
|
+
case 27:
|
|
36797
36794
|
if (!(args.role !== 'spy')) {
|
|
36798
|
-
_context4.next =
|
|
36795
|
+
_context4.next = 30;
|
|
36799
36796
|
break;
|
|
36800
36797
|
}
|
|
36801
|
-
_context4.next =
|
|
36798
|
+
_context4.next = 30;
|
|
36802
36799
|
return setDefaultDevice$1(_devices, 'default');
|
|
36803
|
-
case
|
|
36800
|
+
case 30:
|
|
36804
36801
|
setMicphoneVolumInterval(1000);
|
|
36805
36802
|
startRemoteVolumeInterval(1000);
|
|
36806
36803
|
addDeviceListener(talrtc);
|
|
36804
|
+
talrtc.onAutoplayFailed = function (autoResume, kind) {
|
|
36805
|
+
if (kind !== 'video' && client._type === 7) {
|
|
36806
|
+
return;
|
|
36807
|
+
}
|
|
36808
|
+
NOTICE.autoplayFailed();
|
|
36809
|
+
};
|
|
36807
36810
|
// await setMediaSideFlags();
|
|
36808
36811
|
window.current_sdk_type = sdkType;
|
|
36809
36812
|
defaultApi$1.writeLog('avsdk TALRTC::init finished current_sdk_type: ' + sdkType);
|