agora-appbuilder-core 4.0.0-beta.95 → 4.0.0-beta.97
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
|
@@ -47,6 +47,8 @@ import LocalEventEmitter, {
|
|
|
47
47
|
} from '../rtm-events-api/LocalEvents';
|
|
48
48
|
import {PSTNUserLabel} from '../language/default-labels/videoCallScreenLabels';
|
|
49
49
|
import {controlMessageEnum} from '../components/ChatContext';
|
|
50
|
+
import {RECORDING_BOT_UID} from '../utils/constants';
|
|
51
|
+
|
|
50
52
|
export enum UserType {
|
|
51
53
|
ScreenShare = 'screenshare',
|
|
52
54
|
}
|
|
@@ -244,7 +246,7 @@ const RtmConfigure = (props: any) => {
|
|
|
244
246
|
const userData = {
|
|
245
247
|
screenUid: screenUid,
|
|
246
248
|
//below thing for livestreaming
|
|
247
|
-
type: 'rtc',
|
|
249
|
+
type: uid === parseInt(RECORDING_BOT_UID) ? 'bot' : 'rtc',
|
|
248
250
|
uid,
|
|
249
251
|
offline: false,
|
|
250
252
|
lastMessageTimeStamp: 0,
|
|
@@ -338,7 +340,7 @@ const RtmConfigure = (props: any) => {
|
|
|
338
340
|
const userData = {
|
|
339
341
|
screenUid: screenUid,
|
|
340
342
|
//below thing for livestreaming
|
|
341
|
-
type: 'rtc',
|
|
343
|
+
type: uid === parseInt(RECORDING_BOT_UID) ? 'bot' : 'rtc',
|
|
342
344
|
uid,
|
|
343
345
|
offline: false,
|
|
344
346
|
lastMessageTimeStamp: 0,
|
|
@@ -37,16 +37,15 @@ function RTableBody({status, recordings}) {
|
|
|
37
37
|
}
|
|
38
38
|
return (
|
|
39
39
|
<>
|
|
40
|
-
{recordings
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<View style={style.td}>
|
|
40
|
+
{recordings.map(item => (
|
|
41
|
+
<View style={style.tbrow} key={item.id}>
|
|
42
|
+
<View style={[style.td, style.plzero]}>
|
|
43
|
+
<Text style={style.ttime}>
|
|
44
|
+
{getRecordedDate(item.created_at)}
|
|
45
|
+
</Text>
|
|
46
|
+
</View>
|
|
47
|
+
<View style={style.td}>
|
|
48
|
+
{item?.download_url ? (
|
|
50
49
|
<View style={style.tactions}>
|
|
51
50
|
<Text
|
|
52
51
|
style={style.tlink}
|
|
@@ -88,9 +87,16 @@ function RTableBody({status, recordings}) {
|
|
|
88
87
|
/>
|
|
89
88
|
</View>
|
|
90
89
|
</View>
|
|
91
|
-
|
|
90
|
+
) : (
|
|
91
|
+
<View style={style.tactions}>
|
|
92
|
+
<Text style={style.placeHolder}>
|
|
93
|
+
Recording is in progress
|
|
94
|
+
</Text>
|
|
95
|
+
</View>
|
|
96
|
+
)}
|
|
92
97
|
</View>
|
|
93
|
-
|
|
98
|
+
</View>
|
|
99
|
+
))}
|
|
94
100
|
</>
|
|
95
101
|
);
|
|
96
102
|
};
|
|
@@ -148,8 +148,11 @@ export const style = StyleSheet.create({
|
|
|
148
148
|
borderColor: $config.CARD_LAYER_4_COLOR,
|
|
149
149
|
backgroundColor: $config.CARD_LAYER_3_COLOR,
|
|
150
150
|
},
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
placeHolder: {
|
|
152
|
+
fontSize: ThemeConfig.FontSize.tiny,
|
|
153
|
+
fontFamily: ThemeConfig.FontFamily.sansPro,
|
|
154
|
+
color: $config.FONT_COLOR + ThemeConfig.EmphasisPlus.low,
|
|
155
|
+
},
|
|
153
156
|
// footer ends
|
|
154
157
|
zeroHPadding: {
|
|
155
158
|
paddingHorizontal: 0,
|