agora-appbuilder-core 4.0.0-beta.80 → 4.0.0-beta.81

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-appbuilder-core",
3
- "version": "4.0.0-beta.80",
3
+ "version": "4.0.0-beta.81",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -52,7 +52,7 @@
52
52
  "react-native-keyboard-manager": "6.5.4-1",
53
53
  "react-native-reanimated": "3.4.2",
54
54
  "react-native-responsive-fontsize": "0.5.1",
55
- "react-native-share": "7.9.0",
55
+ "react-native-share": "10.0.2",
56
56
  "react-native-svg": "13.6.0",
57
57
  "react-native-vector-icons": "9.2.0",
58
58
  "react-native-walkthrough-tooltip": "1.4.0",
@@ -26877,9 +26877,12 @@
26877
26877
  }
26878
26878
  },
26879
26879
  "node_modules/react-native-share": {
26880
- "version": "7.9.0",
26881
- "resolved": "https://registry.npmjs.org/react-native-share/-/react-native-share-7.9.0.tgz",
26882
- "integrity": "sha512-I9RPp7Ph7dusPwN+/TgFq2V9vLVCN12gwUzpgM1eCoqTMN54dVWI+9k0loCgANv3CdajiKSOrGh+DTnsmhG9VA=="
26880
+ "version": "10.0.2",
26881
+ "resolved": "https://registry.npmjs.org/react-native-share/-/react-native-share-10.0.2.tgz",
26882
+ "integrity": "sha512-EZs4MtsyauAI1zP8xXT1hIFB/pXOZJNDCKcgCpEfTZFXgCUzz8MDVbI1ocP2hA59XHRSkqAQdbJ0BFTpjxOBlg==",
26883
+ "engines": {
26884
+ "node": ">=16"
26885
+ }
26883
26886
  },
26884
26887
  "node_modules/react-native-svg": {
26885
26888
  "version": "13.6.0",
@@ -52900,9 +52903,9 @@
52900
52903
  }
52901
52904
  },
52902
52905
  "react-native-share": {
52903
- "version": "7.9.0",
52904
- "resolved": "https://registry.npmjs.org/react-native-share/-/react-native-share-7.9.0.tgz",
52905
- "integrity": "sha512-I9RPp7Ph7dusPwN+/TgFq2V9vLVCN12gwUzpgM1eCoqTMN54dVWI+9k0loCgANv3CdajiKSOrGh+DTnsmhG9VA=="
52906
+ "version": "10.0.2",
52907
+ "resolved": "https://registry.npmjs.org/react-native-share/-/react-native-share-10.0.2.tgz",
52908
+ "integrity": "sha512-EZs4MtsyauAI1zP8xXT1hIFB/pXOZJNDCKcgCpEfTZFXgCUzz8MDVbI1ocP2hA59XHRSkqAQdbJ0BFTpjxOBlg=="
52906
52909
  },
52907
52910
  "react-native-svg": {
52908
52911
  "version": "13.6.0",
@@ -1107,31 +1107,4 @@ export default class RtcEngine {
1107
1107
  this.inScreenshare = false;
1108
1108
  }
1109
1109
  }
1110
-
1111
- async release(): Promise<void> {
1112
- if (this.inScreenshare) {
1113
- (this.eventsMap.get('UserOffline') as callbackType)(
1114
- this.screenClient.uid,
1115
- );
1116
- this.screenClient.leave();
1117
- (this.eventsMap.get('ScreenshareStopped') as callbackType)();
1118
- }
1119
- this.eventsMap.forEach((callback, event, map) => {
1120
- this.client.off(event, callback);
1121
- });
1122
- this.eventsMap.clear();
1123
- if (this.remoteStreams.size !== 0) {
1124
- this.remoteStreams.forEach((stream, uid, map) => {
1125
- stream?.video?.isPlaying && stream?.video?.stop();
1126
- stream?.video?.isPlaying && stream?.audio?.stop();
1127
- });
1128
- this.remoteStreams.clear();
1129
- }
1130
- this.localStream.audio?.close();
1131
- this.localStream.video?.close();
1132
- this.localStream = {};
1133
- this.screenStream.audio?.close();
1134
- this.screenStream.video?.close();
1135
- this.screenStream = {};
1136
- }
1137
1110
  }
@@ -304,7 +304,7 @@ const EventsConfigure: React.FC<Props> = props => {
304
304
  });
305
305
  }
306
306
  });
307
- events.on(controlMessageEnum.muteAudio, ({sender}) => {
307
+ events.on(controlMessageEnum.muteAudio, async ({sender}) => {
308
308
  Toast.show({
309
309
  leadingIconName: 'mic-off',
310
310
  type: 'info',
@@ -317,7 +317,10 @@ const EventsConfigure: React.FC<Props> = props => {
317
317
  secondaryBtn: null,
318
318
  leadingIcon: null,
319
319
  });
320
- RtcEngineUnsafe.muteLocalAudioStream(true);
320
+ isWebInternal()
321
+ ? await RtcEngineUnsafe.muteLocalAudioStream(true)
322
+ : //@ts-ignore
323
+ await RtcEngineUnsafe.enableLocalAudio(false);
321
324
  dispatch({
322
325
  type: 'LocalMuteAudio',
323
326
  value: [0],
@@ -369,8 +372,11 @@ const EventsConfigure: React.FC<Props> = props => {
369
372
  containerStyle={style.primaryBtn}
370
373
  textStyle={style.textStyle}
371
374
  text={requestUserAudioPrimaryBtnRef.current}
372
- onPress={() => {
373
- RtcEngineUnsafe.muteLocalAudioStream(false);
375
+ onPress={async () => {
376
+ isWebInternal()
377
+ ? await RtcEngineUnsafe.muteLocalAudioStream(false)
378
+ : //@ts-ignore
379
+ await RtcEngineUnsafe.enableLocalAudio(true);
374
380
  dispatch({
375
381
  type: 'LocalMuteAudio',
376
382
  value: [1],
@@ -101,6 +101,7 @@ export const formatTranscriptContent = (
101
101
  .filter(
102
102
  arr =>
103
103
  arr[1].type === 'rtc' &&
104
+ arr[0] !== '100000' && // exclude recording bot
104
105
  (arr[1]?.isInWaitingRoom === true ? false : true),
105
106
  )
106
107
  .map(arr => arr[1].name)
@@ -77,9 +77,14 @@ function useMuteToggleLocal() {
77
77
  });
78
78
 
79
79
  try {
80
- await RtcEngineUnsafe.muteLocalAudioStream(
81
- localAudioState === ToggleState.enabled,
82
- );
80
+ isWebInternal()
81
+ ? await RtcEngineUnsafe.muteLocalAudioStream(
82
+ localAudioState === ToggleState.enabled,
83
+ ) //@ts-ignore
84
+ : await RtcEngineUnsafe.enableLocalAudio(
85
+ localAudioState === ToggleState.enabled ? false : true,
86
+ );
87
+
83
88
  // Enable UI
84
89
  dispatch({
85
90
  type: 'LocalMuteAudio',