agora-appbuilder-core 3.0.7 → 3.0.9
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
|
@@ -7295,6 +7295,7 @@
|
|
|
7295
7295
|
"version": "3.2.0",
|
|
7296
7296
|
"resolved": "https://registry.npmjs.org/asar/-/asar-3.2.0.tgz",
|
|
7297
7297
|
"integrity": "sha512-COdw2ZQvKdFGFxXwX3oYh2/sOsJWJegrdJCGxnN4MZ7IULgRBp9P6665aqj9z1v9VwP4oP1hRBojRDQ//IGgAg==",
|
|
7298
|
+
"deprecated": "Please use @electron/asar moving forward. There is no API change, just a package name change",
|
|
7298
7299
|
"dev": true,
|
|
7299
7300
|
"dependencies": {
|
|
7300
7301
|
"chromium-pickle-js": "^0.2.0",
|
|
@@ -10613,6 +10614,7 @@
|
|
|
10613
10614
|
"version": "1.0.0",
|
|
10614
10615
|
"resolved": "https://registry.npmjs.org/electron-notarize/-/electron-notarize-1.0.0.tgz",
|
|
10615
10616
|
"integrity": "sha512-dsib1IAquMn0onCrNMJ6gtEIZn/azG8hZMCYOuZIMVMUeRMgBYHK1s5TK9P8xAcrAjh/2aN5WYHzgVSWX314og==",
|
|
10617
|
+
"deprecated": "Please use @electron/notarize moving forward. There is no API change, just a package name change",
|
|
10616
10618
|
"dev": true,
|
|
10617
10619
|
"dependencies": {
|
|
10618
10620
|
"debug": "^4.1.1",
|
|
@@ -21263,6 +21265,7 @@
|
|
|
21263
21265
|
"version": "0.4.1",
|
|
21264
21266
|
"resolved": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.4.1.tgz",
|
|
21265
21267
|
"integrity": "sha512-YWCYEmd5CQeHGSAKrYvXgmzzkrvssZcuuQDDeqkT+PziKGMgE+0MCCtcKbROzocGBG1meBLl2FotlRwf4gAzbQ==",
|
|
21268
|
+
"deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.",
|
|
21266
21269
|
"dependencies": {
|
|
21267
21270
|
"@babel/runtime": "^7.12.1",
|
|
21268
21271
|
"tiny-warning": "^1.0.3"
|
|
@@ -27810,6 +27813,7 @@
|
|
|
27810
27813
|
"version": "1.0.2",
|
|
27811
27814
|
"resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz",
|
|
27812
27815
|
"integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==",
|
|
27816
|
+
"deprecated": "Use your platform's native performance.now() and performance.timeOrigin.",
|
|
27813
27817
|
"dev": true,
|
|
27814
27818
|
"dependencies": {
|
|
27815
27819
|
"browser-process-hrtime": "^1.0.0"
|
|
@@ -38,13 +38,25 @@ export interface AppBuilderSdkApiInterface {
|
|
|
38
38
|
) => Unsubscribe;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
let joinInit = false;
|
|
42
|
+
|
|
41
43
|
export const AppBuilderSdkApi: AppBuilderSdkApiInterface = {
|
|
42
44
|
customize: (customization: CustomizationApiInterface) => {
|
|
43
45
|
SDKEvents.emit('addFpe', customization);
|
|
44
46
|
},
|
|
45
47
|
join: (roomid: string) =>
|
|
46
48
|
new Promise((resolve, reject) => {
|
|
47
|
-
|
|
49
|
+
if (joinInit) {
|
|
50
|
+
console.log('[SDKEvents] Join listener emitted preemptive');
|
|
51
|
+
SDKEvents.emit('joinMeetingWithPhrase', roomid, resolve, reject);
|
|
52
|
+
}
|
|
53
|
+
SDKEvents.on('joinInit', () => {
|
|
54
|
+
if (!joinInit) {
|
|
55
|
+
console.log('[SDKEvents] Join listener emitted');
|
|
56
|
+
SDKEvents.emit('joinMeetingWithPhrase', roomid, resolve, reject);
|
|
57
|
+
joinInit = true;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
48
60
|
}),
|
|
49
61
|
createCustomization: customize,
|
|
50
62
|
on: (userEventName, cb) => {
|
|
@@ -147,7 +147,11 @@ const DeviceConfigure: React.FC<Props> = (props: any) => {
|
|
|
147
147
|
|
|
148
148
|
useEffect(() => {
|
|
149
149
|
// If stream exists and deviceList are empty, check for devices again
|
|
150
|
-
if
|
|
150
|
+
// Labels are empty in firefox when permission is grante first time, refresh device list if labels are empty
|
|
151
|
+
if (
|
|
152
|
+
deviceList.length === 0 ||
|
|
153
|
+
deviceList.find((device: MediaDeviceInfo) => device.label === '')
|
|
154
|
+
) {
|
|
151
155
|
refreshDevices();
|
|
152
156
|
}
|
|
153
157
|
}, [rtc]);
|
|
@@ -86,6 +86,7 @@ const Create = () => {
|
|
|
86
86
|
if (isWebInternal()) {
|
|
87
87
|
document.title = $config.APP_NAME;
|
|
88
88
|
}
|
|
89
|
+
console.log('[SDKEvents] Join listener registered');
|
|
89
90
|
const unbind = SDKEvents.on(
|
|
90
91
|
'joinMeetingWithPhrase',
|
|
91
92
|
(phrase, resolve, reject) => {
|
|
@@ -99,6 +100,7 @@ const Create = () => {
|
|
|
99
100
|
}
|
|
100
101
|
},
|
|
101
102
|
);
|
|
103
|
+
SDKEvents.emit('joinInit');
|
|
102
104
|
return () => {
|
|
103
105
|
unbind();
|
|
104
106
|
};
|