agora-appbuilder-core 4.0.9 → 4.0.10
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
package/template/Gulpfile.js
CHANGED
|
@@ -258,7 +258,7 @@ const reactSdk = {
|
|
|
258
258
|
bundleSdkTypedefs: () => {
|
|
259
259
|
return src(['../Builds/customization-api.d.ts', '../Builds/reactSdk.d.ts'])
|
|
260
260
|
.pipe(concat('index.d.ts'))
|
|
261
|
-
.pipe(replace(`${
|
|
261
|
+
.pipe(replace(`${config.PRODUCT_ID}/`, ''))
|
|
262
262
|
.pipe(
|
|
263
263
|
replace(
|
|
264
264
|
'declare module "index.rsdk"',
|
|
@@ -30,7 +30,7 @@ export interface StyleProps {
|
|
|
30
30
|
interface SurfaceViewInterface extends RtcSurfaceViewProps, StyleProps {}
|
|
31
31
|
|
|
32
32
|
const RtcSurfaceView = (props: SurfaceViewInterface) => {
|
|
33
|
-
|
|
33
|
+
console.debug('Rtc Surface View props', props);
|
|
34
34
|
const {uid, renderMode} = props.canvas;
|
|
35
35
|
const stream: ILocalVideoTrack | IRemoteVideoTrack =
|
|
36
36
|
uid === 0
|
|
@@ -347,10 +347,10 @@ const AuthProvider = (props: AuthProviderProps) => {
|
|
|
347
347
|
}
|
|
348
348
|
})
|
|
349
349
|
.catch(error => {
|
|
350
|
-
logger.
|
|
350
|
+
logger.log(
|
|
351
351
|
LogSource.NetworkRest,
|
|
352
352
|
'user_details',
|
|
353
|
-
'API user details query failed. User is un-authenticated',
|
|
353
|
+
'API user details query failed. User is un-authenticated. Will Login in the user',
|
|
354
354
|
error,
|
|
355
355
|
);
|
|
356
356
|
setIsAuthenticated(false);
|
|
@@ -607,7 +607,7 @@ const RtmConfigure = (props: any) => {
|
|
|
607
607
|
sender: string,
|
|
608
608
|
ts: number,
|
|
609
609
|
) => {
|
|
610
|
-
|
|
610
|
+
console.debug(
|
|
611
611
|
LogSource.Events,
|
|
612
612
|
'CUSTOM_EVENTS',
|
|
613
613
|
'inside eventDispatcher ',
|
|
@@ -679,7 +679,7 @@ const RtmConfigure = (props: any) => {
|
|
|
679
679
|
await engine.current.addOrUpdateLocalUserAttributes([rtmAttribute]);
|
|
680
680
|
}
|
|
681
681
|
// Step 2: Emit the event
|
|
682
|
-
|
|
682
|
+
console.debug(LogSource.Events, 'CUSTOM_EVENTS', 'emiting event..: ');
|
|
683
683
|
EventUtils.emitEvent(evt, source, {payload, persistLevel, sender, ts});
|
|
684
684
|
// Because async gets evaluated in a different order when in an sdk
|
|
685
685
|
if (evt === 'name') {
|
|
@@ -693,7 +693,7 @@ const RtmConfigure = (props: any) => {
|
|
|
693
693
|
}, 200);
|
|
694
694
|
}
|
|
695
695
|
} catch (error) {
|
|
696
|
-
|
|
696
|
+
console.error(
|
|
697
697
|
LogSource.Events,
|
|
698
698
|
'CUSTOM_EVENTS',
|
|
699
699
|
'error while emiting event:',
|
|
@@ -58,18 +58,6 @@ const useFindActiveSpeaker = () => {
|
|
|
58
58
|
? log(' %cLocal user started speaking', 'color:green')
|
|
59
59
|
: log(' %cLocal user stopped speaking', 'color:red');
|
|
60
60
|
|
|
61
|
-
isLocalUserSpeaking
|
|
62
|
-
? logger.log(
|
|
63
|
-
LogSource.Internals,
|
|
64
|
-
'ACTIVE_SPEAKER',
|
|
65
|
-
`${'%cLocal user started speaking'}, ${'color:green'}`,
|
|
66
|
-
)
|
|
67
|
-
: logger.log(
|
|
68
|
-
LogSource.Internals,
|
|
69
|
-
'ACTIVE_SPEAKER',
|
|
70
|
-
`${'%cLocal user stopped speaking'}, ${'color:red'}`,
|
|
71
|
-
);
|
|
72
|
-
|
|
73
61
|
//sending local user speaking and non speaking volume to remote users
|
|
74
62
|
let volume = 0;
|
|
75
63
|
//@ts-ignore
|