agora-appbuilder-core 4.1.8-beta.3 → 4.1.8-beta.5
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/agora-rn-uikit/src/Contexts/PropsContext.tsx +1 -1
- package/template/agora-rn-uikit/src/Rtc/Join.tsx +18 -9
- package/template/bridge/rtc/webNg/RtcEngine.ts +2 -2
- package/template/defaultConfig.js +2 -2
- package/template/src/components/controls/useControlPermissionMatrix.tsx +4 -2
- package/template/src/components/stt-transcript/STTTranscriptTable.tsx +1 -1
- package/template/src/components/stt-transcript/useFetchSTTTranscript.tsx +3 -2
package/package.json
CHANGED
|
@@ -142,7 +142,7 @@ export interface RtcPropsInterface {
|
|
|
142
142
|
callActive?: boolean;
|
|
143
143
|
encryption?: {
|
|
144
144
|
key: string;
|
|
145
|
-
mode: EncryptionMode.
|
|
145
|
+
mode: EncryptionMode.Aes128Xts | EncryptionMode.Aes256Gcm2;
|
|
146
146
|
salt: number[];
|
|
147
147
|
};
|
|
148
148
|
// commented for v1 release
|
|
@@ -51,18 +51,27 @@ const Join: React.FC<{
|
|
|
51
51
|
const videoState = defaultContent[maxUid]?.video;
|
|
52
52
|
async function join() {
|
|
53
53
|
if (
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
rtcProps
|
|
57
|
-
|
|
54
|
+
// rtcProps?.encryption &&
|
|
55
|
+
// rtcProps?.encryption.key &&
|
|
56
|
+
rtcProps?.encryption?.mode
|
|
57
|
+
// rtcProps.encryption.salt
|
|
58
58
|
) {
|
|
59
59
|
try {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
console.log(
|
|
61
|
+
'ui kit setting encryption mode to ',
|
|
62
|
+
rtcProps?.encryption?.mode,
|
|
63
|
+
);
|
|
64
|
+
const encryptionConfig = {
|
|
65
|
+
encryptionKey: rtcProps?.encryption?.key,
|
|
66
|
+
encryptionMode: rtcProps?.encryption?.mode,
|
|
64
67
|
datastreamEncryptionEnabled: true,
|
|
65
|
-
|
|
68
|
+
...(rtcProps?.encryption?.mode == 1
|
|
69
|
+
? {}
|
|
70
|
+
: {
|
|
71
|
+
encryptionKdfSalt: rtcProps?.encryption?.salt,
|
|
72
|
+
}),
|
|
73
|
+
};
|
|
74
|
+
await engine.enableEncryption(true, encryptionConfig);
|
|
66
75
|
} catch (error) {
|
|
67
76
|
console.warn('encryption error', error);
|
|
68
77
|
}
|
|
@@ -1467,13 +1467,13 @@ export default class RtcEngine {
|
|
|
1467
1467
|
mode,
|
|
1468
1468
|
config.encryptionKey,
|
|
1469
1469
|
config.encryptionMode === 1? null:config.encryptionKdfSalt,
|
|
1470
|
-
|
|
1470
|
+
true, // encryptDataStream
|
|
1471
1471
|
),
|
|
1472
1472
|
this.screenClient.setEncryptionConfig(
|
|
1473
1473
|
mode,
|
|
1474
1474
|
config.encryptionKey,
|
|
1475
1475
|
config.encryptionMode === 1? null:config.encryptionKdfSalt,
|
|
1476
|
-
|
|
1476
|
+
true, // encryptDataStream
|
|
1477
1477
|
),
|
|
1478
1478
|
]);
|
|
1479
1479
|
logger.log(
|
|
@@ -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.8-beta.
|
|
81
|
-
CORE_VERSION: '4.1.8-beta.
|
|
80
|
+
CLI_VERSION: '3.1.8-beta.5',
|
|
81
|
+
CORE_VERSION: '4.1.8-beta.5',
|
|
82
82
|
DISABLE_LANDSCAPE_MODE: false,
|
|
83
83
|
STT_AUTO_START: false,
|
|
84
84
|
CLOUD_RECORDING_AUTO_START: false,
|
|
@@ -37,8 +37,10 @@ export const controlPermissionMatrix: Record<
|
|
|
37
37
|
screenshareControl: ({preference}) =>
|
|
38
38
|
$config.SCREEN_SHARING && !preference.disableScreenShare,
|
|
39
39
|
viewAllTranscripts: ({isHost}) =>
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
isHost &&
|
|
41
|
+
$config.ENABLE_STT &&
|
|
42
|
+
$config.ENABLE_MEETING_TRANSCRIPT &&
|
|
43
|
+
isWeb(),
|
|
42
44
|
};
|
|
43
45
|
|
|
44
46
|
export const useControlPermissionMatrix = (
|
|
@@ -193,7 +193,7 @@ function EmptyTranscriptState() {
|
|
|
193
193
|
);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
function ErrorTranscriptState(message:
|
|
196
|
+
function ErrorTranscriptState({message}: {message: string}) {
|
|
197
197
|
return <Text style={[style.ttime, style.pv10, style.ph20]}>{message}</Text>;
|
|
198
198
|
}
|
|
199
199
|
|
|
@@ -36,7 +36,7 @@ export function useFetchSTTTranscript(defaultLimit = 10) {
|
|
|
36
36
|
stts: FetchSTTTranscriptResponse['stts'];
|
|
37
37
|
pagination: FetchSTTTranscriptResponse['pagination'];
|
|
38
38
|
};
|
|
39
|
-
error:
|
|
39
|
+
error: Error;
|
|
40
40
|
}>({
|
|
41
41
|
status: 'idle',
|
|
42
42
|
data: {stts: [], pagination: {total: 0, limit: defaultLimit, page: 1}},
|
|
@@ -50,7 +50,8 @@ export function useFetchSTTTranscript(defaultLimit = 10) {
|
|
|
50
50
|
|
|
51
51
|
try {
|
|
52
52
|
if (!roomId?.host) {
|
|
53
|
-
|
|
53
|
+
const error = new Error('room id is empty');
|
|
54
|
+
return Promise.reject(error);
|
|
54
55
|
}
|
|
55
56
|
const res = await fetch(
|
|
56
57
|
`${$config.BACKEND_ENDPOINT}/v1/stt-transcript`,
|