agora-appbuilder-core 4.1.6-beta.2 → 4.1.6-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-appbuilder-core",
3
- "version": "4.1.6-beta.2",
3
+ "version": "4.1.6-beta.3",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -797,8 +797,11 @@ export default class RtcEngine {
797
797
  mediaType,
798
798
  );
799
799
  if (mediaType === 'audio') {
800
- const {audio, ...rest} = this.remoteStreams.get(user.uid);
801
- this.remoteStreams.set(user.uid, rest);
800
+ const data = this.remoteStreams.get(user.uid);
801
+ try {
802
+ delete data['audio'];
803
+ } catch (error) {}
804
+ this.remoteStreams.set(user.uid, {...data});
802
805
  (this.eventsMap.get('onRemoteAudioStateChanged') as callbackType)(
803
806
  {},
804
807
  user.uid,
@@ -807,8 +810,11 @@ export default class RtcEngine {
807
810
  0,
808
811
  );
809
812
  } else {
810
- const {video, ...rest} = this.remoteStreams.get(user.uid);
811
- this.remoteStreams.set(user.uid, rest);
813
+ const data = this.remoteStreams.get(user.uid);
814
+ try {
815
+ delete data['video'];
816
+ } catch (error) {}
817
+ this.remoteStreams.set(user.uid, {...data});
812
818
  (this.eventsMap.get('onRemoteVideoStateChanged') as callbackType)(
813
819
  {},
814
820
  user.uid,
@@ -77,8 +77,8 @@ const DefaultConfig = {
77
77
  CHAT_ORG_NAME: '',
78
78
  CHAT_APP_NAME: '',
79
79
  CHAT_URL: '',
80
- CLI_VERSION: '3.1.6-beta.2',
81
- CORE_VERSION: '4.1.6-beta.2',
80
+ CLI_VERSION: '3.1.6-beta.3',
81
+ CORE_VERSION: '4.1.6-beta.3',
82
82
  DISABLE_LANDSCAPE_MODE: false,
83
83
  STT_AUTO_START: false,
84
84
  CLOUD_RECORDING_AUTO_START: false,
@@ -17,7 +17,7 @@ import TranscriptIcon from '../assets/transcript.png';
17
17
  //@ts-ignore
18
18
  import SettingsIcon from '../assets/settings.png';
19
19
  //@ts-ignore
20
- import DisconnectIcon from '../assets/close.png';
20
+ import LeaveCallIcon from '../assets/leave-call.png';
21
21
 
22
22
  export const MicButton = () => {
23
23
  const {audio} = useLocalUserInfo();
@@ -117,7 +117,7 @@ export const DisconnectButton = () => {
117
117
  }}>
118
118
  <Image
119
119
  style={[styles.iconStyle, {tintColor: $config.FONT_COLOR}]}
120
- source={DisconnectIcon}
120
+ source={LeaveCallIcon}
121
121
  />
122
122
  </TouchableOpacity>
123
123
  );
@@ -2,16 +2,28 @@ import React from 'react';
2
2
  import {View, StyleSheet, Text} from 'react-native';
3
3
  import {useRoomInfo} from 'customization-api';
4
4
  import ThemeConfig from '../../../theme';
5
+ import {SettingButton} from '../ControlButtons';
5
6
 
6
7
  const MobileTopbar = () => {
8
+ const getAILayoutType = () => {
9
+ return $config.AI_LAYOUT ? $config.AI_LAYOUT : 'LAYOUT_TYPE_1';
10
+ };
7
11
  const {
8
12
  data: {meetingTitle},
9
13
  } = useRoomInfo();
14
+
10
15
  return (
11
16
  <View style={style.rootStyle}>
12
17
  <View style={style.containerStyle}>
13
18
  <Text style={style.textStyle}>{meetingTitle}</Text>
14
19
  </View>
20
+ {getAILayoutType() !== 'LAYOUT_TYPE_2' ? (
21
+ <View>
22
+ <SettingButton />
23
+ </View>
24
+ ) : (
25
+ <></>
26
+ )}
15
27
  </View>
16
28
  );
17
29
  };
@@ -7,18 +7,17 @@ import {
7
7
  Image,
8
8
  ActivityIndicator,
9
9
  } from 'react-native';
10
- import {useSidePanel, isAndroid, isIOS} from 'customization-api';
10
+ import {useSidePanel} from 'customization-api';
11
11
  import ThemeConfig from '../../theme';
12
12
  import {AgentContext} from '../components/AgentControls/AgentContext';
13
13
  import {AgentState} from '../components/AgentControls/const';
14
14
  import {useIsAgentAvailable} from '../components/utils';
15
- import {isMobileUA} from '../../utils/common';
15
+ import {isMobileUA, isAndroid, isIOS} from '../../utils/common';
16
16
  //@ts-ignore
17
17
  import JoinCallIcon from '../assets/join-call.png';
18
18
  import {
19
19
  DisconnectButton,
20
20
  MicButton,
21
- SettingButton,
22
21
  TranscriptButton,
23
22
  } from '../components/ControlButtons';
24
23
 
@@ -83,7 +82,6 @@ export default function ConversationalAI() {
83
82
  <View style={styles.controlsContainer}>
84
83
  <MicButton />
85
84
  <TranscriptButton />
86
- <SettingButton />
87
85
  <DisconnectButton />
88
86
  </View>
89
87
  ) : (
@@ -15,7 +15,6 @@ import AiAgentCustomView from '../ai-interface/AIAgentInterface';
15
15
  import {
16
16
  DisconnectButton,
17
17
  MicButton,
18
- SettingButton,
19
18
  TranscriptButton,
20
19
  } from '../components/ControlButtons';
21
20
  import {isMobileUA} from '../../utils/common';
@@ -56,7 +55,6 @@ export default function NewAnimation() {
56
55
  <View style={styles.controlsContainer}>
57
56
  <MicButton />
58
57
  <TranscriptButton />
59
- <SettingButton />
60
58
  <DisconnectButton />
61
59
  </View>
62
60
  ) : (
@@ -52,7 +52,7 @@ const useSpeechToText = () => {
52
52
  useEffect(() => {
53
53
  if (!$config.ENABLE_STT) {
54
54
  //throw new Error('Speech To Text is not enabled');
55
- console.error('Speech To Text is not enabled');
55
+ console.log('Speech To Text is not enabled');
56
56
  }
57
57
  }, []);
58
58