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 +1 -1
- package/template/bridge/rtc/webNg/RtcEngine.ts +10 -4
- package/template/defaultConfig.js +2 -2
- package/template/src/ai-agent/components/ControlButtons.tsx +2 -2
- package/template/src/ai-agent/components/mobile/Topbar.tsx +12 -0
- package/template/src/ai-agent/layout/ConversationalAI.tsx +2 -4
- package/template/src/ai-agent/layout/NewAnimation.tsx +0 -2
- package/template/src/utils/useSpeechToText.ts +1 -1
package/package.json
CHANGED
|
@@ -797,8 +797,11 @@ export default class RtcEngine {
|
|
|
797
797
|
mediaType,
|
|
798
798
|
);
|
|
799
799
|
if (mediaType === 'audio') {
|
|
800
|
-
const
|
|
801
|
-
|
|
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
|
|
811
|
-
|
|
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.
|
|
81
|
-
CORE_VERSION: '4.1.6-beta.
|
|
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
|
|
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={
|
|
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
|
|
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
|
) : (
|