zby-live-sdk 1.0.49-beta-talrtc0920 → 1.0.49-beta-talrtc0926
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/package.json
CHANGED
package/src/config/config.js
CHANGED
|
@@ -456,7 +456,6 @@ const init = async (args) => {
|
|
|
456
456
|
|
|
457
457
|
//rtc同屏以及高光时刻,都开启音频外部采集,默认传1
|
|
458
458
|
await setAudioAuxSource(1);
|
|
459
|
-
teacherId = null;
|
|
460
459
|
}
|
|
461
460
|
|
|
462
461
|
if(args.noiseSuppressMode == -2) {
|
|
@@ -1936,9 +1935,6 @@ export const setAudioMixMode = async (mixMode, streamIdArr) => {
|
|
|
1936
1935
|
// }
|
|
1937
1936
|
if (!Array.isArray(streamIdArr)) return;
|
|
1938
1937
|
|
|
1939
|
-
if (teacherId && !streamIdArr.includes(teacherId)) {
|
|
1940
|
-
streamIdArr.push(teacherId);
|
|
1941
|
-
}
|
|
1942
1938
|
return callMethod('SetAudioMixMode', {mixMode: mixMode, streamIdArr, num: streamIdArr.length});
|
|
1943
1939
|
};
|
|
1944
1940
|
|
package/src/zby-live-sdk.js
CHANGED
|
@@ -283,6 +283,10 @@ const zbysdk = {
|
|
|
283
283
|
|
|
284
284
|
// 结束设备检测
|
|
285
285
|
stopCheckDevice() {
|
|
286
|
+
if (deviceCheckerInitStatus === -1) {
|
|
287
|
+
defaultApi.writeLog('please start check device first');
|
|
288
|
+
return 'please start check device first';
|
|
289
|
+
}
|
|
286
290
|
deviceCheckerInitStatus = -1;
|
|
287
291
|
defaultApi.writeLog('sdk stop check device');
|
|
288
292
|
return zbyAVSDK.stopCheckDevice();
|