@azure/communication-react 1.4.3-alpha-202301100014.0 → 1.4.3-alpha-202301110013.0
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/dist/communication-react.d.ts +5 -0
- package/dist/dist-cjs/communication-react/index.js +7 -3
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +6 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +5 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/package.json +8 -8
@@ -741,6 +741,11 @@ export declare type CallAdapterClientState = {
|
|
741
741
|
* {@link CallComposite}. The true role of the user will be synced with ACS services when a Rooms call starts.
|
742
742
|
*/
|
743
743
|
roleHint?: Role;
|
744
|
+
/**
|
745
|
+
* State to track whether the local participant's camera is on. To be used when creating a custom
|
746
|
+
* control bar with the CallComposite.
|
747
|
+
*/
|
748
|
+
cameraStatus?: 'On' | 'Off';
|
744
749
|
};
|
745
750
|
|
746
751
|
/**
|
@@ -158,7 +158,7 @@ const _toCommunicationIdentifier = (id) => {
|
|
158
158
|
// Copyright (c) Microsoft Corporation.
|
159
159
|
// Licensed under the MIT license.
|
160
160
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
161
|
-
var telemetryVersion = '1.4.3-alpha-
|
161
|
+
var telemetryVersion = '1.4.3-alpha-202301110013.0';
|
162
162
|
|
163
163
|
// Copyright (c) Microsoft Corporation.
|
164
164
|
/**
|
@@ -20472,7 +20472,8 @@ class CallContext {
|
|
20472
20472
|
/* @conditional-compile-remove(PSTN-calls) */ alternateCallerId: clientState.alternateCallerId,
|
20473
20473
|
/* @conditional-compile-remove(unsupported-browser) */ environmentInfo: clientState.environmentInfo,
|
20474
20474
|
/* @conditional-compile-remove(unsupported-browser) */ unsupportedBrowserVersionsAllowed: false,
|
20475
|
-
/* @conditional-compile-remove(rooms) */ roleHint: options === null || options === void 0 ? void 0 : options.roleHint
|
20475
|
+
/* @conditional-compile-remove(rooms) */ roleHint: options === null || options === void 0 ? void 0 : options.roleHint,
|
20476
|
+
cameraStatus: undefined
|
20476
20477
|
};
|
20477
20478
|
this.emitter.setMaxListeners((_b = options === null || options === void 0 ? void 0 : options.maxListeners) !== null && _b !== void 0 ? _b : 50);
|
20478
20479
|
this.bindPublicMethods();
|
@@ -20528,7 +20529,10 @@ class CallContext {
|
|
20528
20529
|
call = undefined;
|
20529
20530
|
}
|
20530
20531
|
if (this.state.page) {
|
20531
|
-
this.setState(Object.assign(Object.assign({}, this.state), { userId: clientState.userId, displayName: (_a = clientState.callAgent) === null || _a === void 0 ? void 0 : _a.displayName, call, page: newPage, endedCall: latestEndedCall, devices: clientState.deviceManager, latestErrors: clientState.latestErrors
|
20532
|
+
this.setState(Object.assign(Object.assign({}, this.state), { userId: clientState.userId, displayName: (_a = clientState.callAgent) === null || _a === void 0 ? void 0 : _a.displayName, call, page: newPage, endedCall: latestEndedCall, devices: clientState.deviceManager, latestErrors: clientState.latestErrors, cameraStatus: (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((s) => s.mediaStreamType === 'Video')) ||
|
20533
|
+
clientState.deviceManager.unparentedViews.find((s) => s.mediaStreamType === 'Video')
|
20534
|
+
? 'On'
|
20535
|
+
: 'Off' }));
|
20532
20536
|
}
|
20533
20537
|
}
|
20534
20538
|
/* @conditional-compile-remove(unsupported-browser) */
|