@azure/communication-react 1.3.3-alpha-202210270017.0 → 1.3.3-alpha-202210280017.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 +19 -0
- package/dist/dist-cjs/communication-react/index.js +116 -66
- 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/calling-stateful-client/src/CallClientState.d.ts +9 -0
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallContext.d.ts +3 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js +23 -0
- package/dist/dist-esm/calling-stateful-client/src/CallContext.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js +8 -0
- package/dist/dist-esm/calling-stateful-client/src/CallSubscriber.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js +3 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js +9 -3
- package/dist/dist-esm/calling-stateful-client/src/DeviceManagerDeclarative.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.d.ts +1 -0
- package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js +8 -0
- package/dist/dist-esm/calling-stateful-client/src/ParticipantSubscriber.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/de-DE/strings.json +58 -8
- package/dist/dist-esm/react-components/src/localization/locales/en-GB/strings.json +66 -16
- package/dist/dist-esm/react-components/src/localization/locales/es-ES/strings.json +57 -7
- package/dist/dist-esm/react-components/src/localization/locales/fr-FR/strings.json +62 -12
- package/dist/dist-esm/react-components/src/localization/locales/it-IT/strings.json +63 -13
- package/dist/dist-esm/react-components/src/localization/locales/ja-JP/strings.json +66 -16
- package/dist/dist-esm/react-components/src/localization/locales/ko-KR/strings.json +59 -9
- package/dist/dist-esm/react-components/src/localization/locales/nl-NL/strings.json +57 -7
- package/dist/dist-esm/react-components/src/localization/locales/pt-BR/strings.json +66 -16
- package/dist/dist-esm/react-components/src/localization/locales/ru-RU/strings.json +60 -10
- package/dist/dist-esm/react-components/src/localization/locales/tr-TR/strings.json +66 -16
- package/dist/dist-esm/react-components/src/localization/locales/zh-CN/strings.json +60 -10
- package/dist/dist-esm/react-components/src/localization/locales/zh-TW/strings.json +59 -9
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.d.ts +5 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +24 -27
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/CallPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js +3 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.d.ts +5 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +6 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatPane.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js +2 -2
- package/dist/dist-esm/react-composites/src/composites/common/PeoplePaneContent.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/de-DE/strings.json +55 -14
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-GB/strings.json +55 -14
- package/dist/dist-esm/react-composites/src/composites/localization/locales/es-ES/strings.json +55 -14
- package/dist/dist-esm/react-composites/src/composites/localization/locales/fr-FR/strings.json +55 -14
- package/dist/dist-esm/react-composites/src/composites/localization/locales/it-IT/strings.json +55 -14
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ja-JP/strings.json +55 -14
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ko-KR/strings.json +55 -14
- package/dist/dist-esm/react-composites/src/composites/localization/locales/nl-NL/strings.json +55 -14
- package/dist/dist-esm/react-composites/src/composites/localization/locales/pt-BR/strings.json +55 -14
- package/dist/dist-esm/react-composites/src/composites/localization/locales/ru-RU/strings.json +55 -14
- package/dist/dist-esm/react-composites/src/composites/localization/locales/tr-TR/strings.json +55 -14
- package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-CN/strings.json +55 -14
- package/dist/dist-esm/react-composites/src/composites/localization/locales/zh-TW/strings.json +55 -14
- package/package.json +12 -12
@@ -50,7 +50,10 @@ class ProxyDeviceManager {
|
|
50
50
|
this._context.setDeviceManagerSelectedCamera(videoDeviceInfo);
|
51
51
|
};
|
52
52
|
this.videoDevicesUpdated = () => __awaiter(this, void 0, void 0, function* () {
|
53
|
-
|
53
|
+
// Device Manager always has a camera with '' name if there are no real camera devices available.
|
54
|
+
// We don't want to show that in the UI.
|
55
|
+
const realCameras = (yield this._deviceManager.getCameras()).filter((c) => !!c.name);
|
56
|
+
this._context.setDeviceManagerCameras(dedupeById(realCameras));
|
54
57
|
});
|
55
58
|
this.audioDevicesUpdated = () => __awaiter(this, void 0, void 0, function* () {
|
56
59
|
this._context.setDeviceManagerMicrophones(dedupeById(yield this._deviceManager.getMicrophones()));
|
@@ -72,8 +75,11 @@ class ProxyDeviceManager {
|
|
72
75
|
case 'getCameras': {
|
73
76
|
return this._context.withAsyncErrorTeedToState(() => {
|
74
77
|
return target.getCameras().then((cameras) => {
|
75
|
-
|
76
|
-
|
78
|
+
// Device Manager always has a camera with '' name if there are no real camera devices available.
|
79
|
+
// We don't want to show that in the UI.
|
80
|
+
const realCameras = cameras.filter((c) => !!c.name);
|
81
|
+
this._context.setDeviceManagerCameras(dedupeById(realCameras));
|
82
|
+
return realCameras;
|
77
83
|
});
|
78
84
|
}, 'DeviceManager.getCameras');
|
79
85
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DeviceManagerDeclarative.js","sourceRoot":"","sources":["../../../../../calling-stateful-client/src/DeviceManagerDeclarative.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAmBlC;;;;;;GAMG;AACH,MAAM,kBAAkB;IAItB,YAAY,aAA4B,EAAE,OAAoB;QAQtD,qBAAgB,GAAG,GAAS,EAAE;YACpC,mHAAmH;YACnH,4GAA4G;YAC5G,mDAAmD;YACnD,IAAI,CAAC,QAAQ,CAAC,2CAA2C,CAAC,IAAI,CAAC,cAAc,CAAC,2BAA2B,CAAC,CAAC;YAC3G,IAAI,CAAC,QAAQ,CAAC,kCAAkC,CAAC,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC;YACzF,IAAI,CAAC,QAAQ,CAAC,+BAA+B,CAAC,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;QACrF,CAAC,CAAC;QAEM,cAAS,GAAG,GAAS,EAAE;YAC7B,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,qBAAqB,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;YACxE,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,qBAAqB,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;YACxE,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,2BAA2B,EAAE,IAAI,CAAC,yBAAyB,CAAC,CAAC;YACpF,IAAI,CAAC,cAAc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AAI,KAAK,CAAC,aAAa,EAAE,kBAAkB,CAA0B,CAAC;AAC/E,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { AudioDeviceInfo, DeviceAccess, DeviceManager, VideoDeviceInfo } from '@azure/communication-calling';\nimport { CallContext } from './CallContext';\n\n/**\n * Defines the additional methods added by the stateful on top of {@link @azure/communication-calling#DeviceManager}.\n *\n * @public\n */\nexport interface StatefulDeviceManager extends DeviceManager {\n /**\n * Sets the selectedCamera in the {@link DeviceManagerState}. This is completely developer driven and is not tied in\n * any way to {@link @azure/communication-calling#DeviceManager}. It is entirely contained in\n * {@link StatefulDeviceManager}. See also {@link DeviceManagerState.selectedCamera}.\n */\n selectCamera: (VideoDeviceInfo) => void;\n}\n\n/**\n * ProxyDeviceManager proxies DeviceManager and subscribes to all events that affect device manager state. State updates\n * are set on the provided context. Also any queries for state are proxied and stored in state as well. Only one device\n * manager should exist for a given CallClient so if CallClient.getDeviceManager is called multiple times, either a\n * cached ProxyDeviceManager should be returned or the existing ProxyDeviceManager should be destructed via destructor()\n * and a new ProxyDeviceManager created.\n */\nclass ProxyDeviceManager implements ProxyHandler<DeviceManager> {\n private _deviceManager: DeviceManager;\n private _context: CallContext;\n\n constructor(deviceManager: DeviceManager, context: CallContext) {\n this._deviceManager = deviceManager;\n this._context = context;\n\n this.setDeviceManager();\n this.subscribe();\n }\n\n private setDeviceManager = (): void => {\n // isSpeakerSelectionAvailable, selectedMicrophone, and selectedSpeaker are properties on DeviceManager. Since they\n // are not functions we can't proxy them so we'll update whenever we think they may need updating such as at\n // construction time or when certain events happen.\n this._context.setDeviceManagerIsSpeakerSelectionAvailable(this._deviceManager.isSpeakerSelectionAvailable);\n this._context.setDeviceManagerSelectedMicrophone(this._deviceManager.selectedMicrophone);\n this._context.setDeviceManagerSelectedSpeaker(this._deviceManager.selectedSpeaker);\n };\n\n private subscribe = (): void => {\n this._deviceManager.on('videoDevicesUpdated', this.videoDevicesUpdated);\n this._deviceManager.on('audioDevicesUpdated', this.audioDevicesUpdated);\n this._deviceManager.on('selectedMicrophoneChanged', this.selectedMicrophoneChanged);\n this._deviceManager.on('selectedSpeakerChanged', this.selectedSpeakerChanged);\n };\n\n /**\n * This is used to unsubscribe DeclarativeDeviceManager from the DeviceManager events.\n */\n public unsubscribe = (): void => {\n this._deviceManager.off('videoDevicesUpdated', this.videoDevicesUpdated);\n this._deviceManager.off('audioDevicesUpdated', this.audioDevicesUpdated);\n this._deviceManager.off('selectedMicrophoneChanged', this.selectedMicrophoneChanged);\n this._deviceManager.off('selectedSpeakerChanged', this.selectedSpeakerChanged);\n };\n\n /**\n * Used to set a camera inside the proxy device manager.\n *\n * @param videoDeviceInfo VideoDeviceInfo\n */\n public selectCamera = (videoDeviceInfo: VideoDeviceInfo): void => {\n this._context.setDeviceManagerSelectedCamera(videoDeviceInfo);\n };\n\n private videoDevicesUpdated = async (): Promise<void> => {\n this._context.setDeviceManagerCameras(dedupeById(await this._deviceManager.getCameras()));\n };\n\n private audioDevicesUpdated = async (): Promise<void> => {\n this._context.setDeviceManagerMicrophones(dedupeById(await this._deviceManager.getMicrophones()));\n this._context.setDeviceManagerSpeakers(dedupeById(await this._deviceManager.getSpeakers()));\n };\n\n private selectedMicrophoneChanged = (): void => {\n this._context.setDeviceManagerSelectedMicrophone(this._deviceManager.selectedMicrophone);\n };\n\n private selectedSpeakerChanged = (): void => {\n this._context.setDeviceManagerSelectedSpeaker(this._deviceManager.selectedSpeaker);\n };\n\n public get<P extends keyof DeviceManager>(target: DeviceManager, prop: P): any {\n switch (prop) {\n case 'getCameras': {\n return this._context.withAsyncErrorTeedToState((): Promise<VideoDeviceInfo[]> => {\n return target.getCameras().then((cameras: VideoDeviceInfo[]) => {\n this._context.setDeviceManagerCameras(dedupeById(cameras));\n return cameras;\n });\n }, 'DeviceManager.getCameras');\n }\n case 'getMicrophones': {\n return this._context.withAsyncErrorTeedToState((): Promise<AudioDeviceInfo[]> => {\n return target.getMicrophones().then((microphones: AudioDeviceInfo[]) => {\n this._context.setDeviceManagerMicrophones(dedupeById(microphones));\n return microphones;\n });\n }, 'DeviceManager.getMicrophones');\n }\n case 'getSpeakers': {\n return this._context.withAsyncErrorTeedToState((): Promise<AudioDeviceInfo[]> => {\n return target.getSpeakers().then((speakers: AudioDeviceInfo[]) => {\n this._context.setDeviceManagerSpeakers(dedupeById(speakers));\n return speakers;\n });\n }, 'DeviceManager.getSpeakers');\n }\n case 'selectMicrophone': {\n return this._context.withAsyncErrorTeedToState(\n (...args: Parameters<DeviceManager['selectMicrophone']>): Promise<void> => {\n return target.selectMicrophone(...args).then(() => {\n this._context.setDeviceManagerSelectedMicrophone(target.selectedMicrophone);\n });\n },\n 'DeviceManager.selectMicrophone'\n );\n }\n case 'selectSpeaker': {\n return this._context.withAsyncErrorTeedToState(\n (...args: Parameters<DeviceManager['selectSpeaker']>): Promise<void> => {\n return target.selectSpeaker(...args).then(() => {\n this._context.setDeviceManagerSelectedSpeaker(target.selectedSpeaker);\n });\n },\n 'DeviceManager.selectSpeaker'\n );\n }\n case 'askDevicePermission': {\n return this._context.withAsyncErrorTeedToState(\n (...args: Parameters<DeviceManager['askDevicePermission']>): Promise<DeviceAccess> => {\n return target.askDevicePermission(...args).then((deviceAccess: DeviceAccess) => {\n this._context.setDeviceManagerDeviceAccess(deviceAccess);\n this.setDeviceManager();\n return deviceAccess;\n });\n },\n 'DeviceManager.askDevicePermission'\n );\n }\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n\n// TODO: Remove this when SDK no longer returns duplicate audio and video devices\n/** Helper function to dedupe duplicate audio and video devices obtained from SDK */\nconst dedupeById = <T extends { id: string }>(devices: T[]): T[] => {\n const ids = new Set();\n const uniqueDevices: T[] = [];\n devices.forEach((device: T) => {\n if (!ids.has(device.id)) {\n uniqueDevices.push(device);\n ids.add(device.id);\n }\n });\n return uniqueDevices;\n};\n\n/**\n * Creates a declarative DeviceManager by proxying DeviceManager with ProxyDeviceManager. The declarative DeviceManager\n * will put state updates in the given context.\n *\n * @param deviceManager - DeviceManager from SDK\n * @param context - CallContext from StatefulCallClient\n */\nexport const deviceManagerDeclaratify = (deviceManager: DeviceManager, context: CallContext): DeviceManager => {\n const proxyDeviceManager = new ProxyDeviceManager(deviceManager, context);\n Object.defineProperty(deviceManager, 'unsubscribe', {\n configurable: false,\n value: () => proxyDeviceManager.unsubscribe()\n });\n Object.defineProperty(deviceManager, 'selectCamera', {\n configurable: false,\n value: (videoDeviceInfo: VideoDeviceInfo) => proxyDeviceManager.selectCamera(videoDeviceInfo)\n });\n return new Proxy(deviceManager, proxyDeviceManager) as StatefulDeviceManager;\n};\n"]}
|
1
|
+
{"version":3,"file":"DeviceManagerDeclarative.js","sourceRoot":"","sources":["../../../../../calling-stateful-client/src/DeviceManagerDeclarative.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;;;;;;;;;AAmBlC;;;;;;GAMG;AACH,MAAM,kBAAkB;IAItB,YAAY,aAA4B,EAAE,OAAoB;QAQtD,qBAAgB,GAAG,GAAS,EAAE;YACpC,mHAAmH;YACnH,4GAA4G;YAC5G,mDAAmD;YACnD,IAAI,CAAC,QAAQ,CAAC,2CAA2C,CAAC,IAAI,CAAC,cAAc,CAAC,2BAA2B,CAAC,CAAC;YAC3G,IAAI,CAAC,QAAQ,CAAC,kCAAkC,CAAC,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC;YACzF,IAAI,CAAC,QAAQ,CAAC,+BAA+B,CAAC,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;QACrF,CAAC,CAAC;QAEM,cAAS,GAAG,GAAS,EAAE;YAC7B,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,qBAAqB,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;YACxE,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,qBAAqB,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;YACxE,IAAI,CAAC,cAA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,kBAAkB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAC1E,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,aAAa,EAAE;QAClD,YAAY,EAAE,KAAK;QACnB,KAAK,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,WAAW,EAAE;KAC9C,CAAC,CAAC;IACH,MAAM,CAAC,cAAc,CAAC,aAAa,EAAE,cAAc,EAAE;QACnD,YAAY,EAAE,KAAK;QACnB,KAAK,EAAE,CAAC,eAAgC,EAAE,EAAE,CAAC,kBAAkB,CAAC,YAAY,CAAC,eAAe,CAAC;KAC9F,CAAC,CAAC;IACH,OAAO,IAAI,KAAK,CAAC,aAAa,EAAE,kBAAkB,CAA0B,CAAC;AAC/E,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { AudioDeviceInfo, DeviceAccess, DeviceManager, VideoDeviceInfo } from '@azure/communication-calling';\nimport { CallContext } from './CallContext';\n\n/**\n * Defines the additional methods added by the stateful on top of {@link @azure/communication-calling#DeviceManager}.\n *\n * @public\n */\nexport interface StatefulDeviceManager extends DeviceManager {\n /**\n * Sets the selectedCamera in the {@link DeviceManagerState}. This is completely developer driven and is not tied in\n * any way to {@link @azure/communication-calling#DeviceManager}. It is entirely contained in\n * {@link StatefulDeviceManager}. See also {@link DeviceManagerState.selectedCamera}.\n */\n selectCamera: (VideoDeviceInfo) => void;\n}\n\n/**\n * ProxyDeviceManager proxies DeviceManager and subscribes to all events that affect device manager state. State updates\n * are set on the provided context. Also any queries for state are proxied and stored in state as well. Only one device\n * manager should exist for a given CallClient so if CallClient.getDeviceManager is called multiple times, either a\n * cached ProxyDeviceManager should be returned or the existing ProxyDeviceManager should be destructed via destructor()\n * and a new ProxyDeviceManager created.\n */\nclass ProxyDeviceManager implements ProxyHandler<DeviceManager> {\n private _deviceManager: DeviceManager;\n private _context: CallContext;\n\n constructor(deviceManager: DeviceManager, context: CallContext) {\n this._deviceManager = deviceManager;\n this._context = context;\n\n this.setDeviceManager();\n this.subscribe();\n }\n\n private setDeviceManager = (): void => {\n // isSpeakerSelectionAvailable, selectedMicrophone, and selectedSpeaker are properties on DeviceManager. Since they\n // are not functions we can't proxy them so we'll update whenever we think they may need updating such as at\n // construction time or when certain events happen.\n this._context.setDeviceManagerIsSpeakerSelectionAvailable(this._deviceManager.isSpeakerSelectionAvailable);\n this._context.setDeviceManagerSelectedMicrophone(this._deviceManager.selectedMicrophone);\n this._context.setDeviceManagerSelectedSpeaker(this._deviceManager.selectedSpeaker);\n };\n\n private subscribe = (): void => {\n this._deviceManager.on('videoDevicesUpdated', this.videoDevicesUpdated);\n this._deviceManager.on('audioDevicesUpdated', this.audioDevicesUpdated);\n this._deviceManager.on('selectedMicrophoneChanged', this.selectedMicrophoneChanged);\n this._deviceManager.on('selectedSpeakerChanged', this.selectedSpeakerChanged);\n };\n\n /**\n * This is used to unsubscribe DeclarativeDeviceManager from the DeviceManager events.\n */\n public unsubscribe = (): void => {\n this._deviceManager.off('videoDevicesUpdated', this.videoDevicesUpdated);\n this._deviceManager.off('audioDevicesUpdated', this.audioDevicesUpdated);\n this._deviceManager.off('selectedMicrophoneChanged', this.selectedMicrophoneChanged);\n this._deviceManager.off('selectedSpeakerChanged', this.selectedSpeakerChanged);\n };\n\n /**\n * Used to set a camera inside the proxy device manager.\n *\n * @param videoDeviceInfo VideoDeviceInfo\n */\n public selectCamera = (videoDeviceInfo: VideoDeviceInfo): void => {\n this._context.setDeviceManagerSelectedCamera(videoDeviceInfo);\n };\n\n private videoDevicesUpdated = async (): Promise<void> => {\n // Device Manager always has a camera with '' name if there are no real camera devices available.\n // We don't want to show that in the UI.\n const realCameras = (await this._deviceManager.getCameras()).filter((c) => !!c.name);\n this._context.setDeviceManagerCameras(dedupeById(realCameras));\n };\n\n private audioDevicesUpdated = async (): Promise<void> => {\n this._context.setDeviceManagerMicrophones(dedupeById(await this._deviceManager.getMicrophones()));\n this._context.setDeviceManagerSpeakers(dedupeById(await this._deviceManager.getSpeakers()));\n };\n\n private selectedMicrophoneChanged = (): void => {\n this._context.setDeviceManagerSelectedMicrophone(this._deviceManager.selectedMicrophone);\n };\n\n private selectedSpeakerChanged = (): void => {\n this._context.setDeviceManagerSelectedSpeaker(this._deviceManager.selectedSpeaker);\n };\n\n public get<P extends keyof DeviceManager>(target: DeviceManager, prop: P): any {\n switch (prop) {\n case 'getCameras': {\n return this._context.withAsyncErrorTeedToState((): Promise<VideoDeviceInfo[]> => {\n return target.getCameras().then((cameras: VideoDeviceInfo[]) => {\n // Device Manager always has a camera with '' name if there are no real camera devices available.\n // We don't want to show that in the UI.\n const realCameras = cameras.filter((c) => !!c.name);\n this._context.setDeviceManagerCameras(dedupeById(realCameras));\n return realCameras;\n });\n }, 'DeviceManager.getCameras');\n }\n case 'getMicrophones': {\n return this._context.withAsyncErrorTeedToState((): Promise<AudioDeviceInfo[]> => {\n return target.getMicrophones().then((microphones: AudioDeviceInfo[]) => {\n this._context.setDeviceManagerMicrophones(dedupeById(microphones));\n return microphones;\n });\n }, 'DeviceManager.getMicrophones');\n }\n case 'getSpeakers': {\n return this._context.withAsyncErrorTeedToState((): Promise<AudioDeviceInfo[]> => {\n return target.getSpeakers().then((speakers: AudioDeviceInfo[]) => {\n this._context.setDeviceManagerSpeakers(dedupeById(speakers));\n return speakers;\n });\n }, 'DeviceManager.getSpeakers');\n }\n case 'selectMicrophone': {\n return this._context.withAsyncErrorTeedToState(\n (...args: Parameters<DeviceManager['selectMicrophone']>): Promise<void> => {\n return target.selectMicrophone(...args).then(() => {\n this._context.setDeviceManagerSelectedMicrophone(target.selectedMicrophone);\n });\n },\n 'DeviceManager.selectMicrophone'\n );\n }\n case 'selectSpeaker': {\n return this._context.withAsyncErrorTeedToState(\n (...args: Parameters<DeviceManager['selectSpeaker']>): Promise<void> => {\n return target.selectSpeaker(...args).then(() => {\n this._context.setDeviceManagerSelectedSpeaker(target.selectedSpeaker);\n });\n },\n 'DeviceManager.selectSpeaker'\n );\n }\n case 'askDevicePermission': {\n return this._context.withAsyncErrorTeedToState(\n (...args: Parameters<DeviceManager['askDevicePermission']>): Promise<DeviceAccess> => {\n return target.askDevicePermission(...args).then((deviceAccess: DeviceAccess) => {\n this._context.setDeviceManagerDeviceAccess(deviceAccess);\n this.setDeviceManager();\n return deviceAccess;\n });\n },\n 'DeviceManager.askDevicePermission'\n );\n }\n default:\n return Reflect.get(target, prop);\n }\n }\n}\n\n// TODO: Remove this when SDK no longer returns duplicate audio and video devices\n/** Helper function to dedupe duplicate audio and video devices obtained from SDK */\nconst dedupeById = <T extends { id: string }>(devices: T[]): T[] => {\n const ids = new Set();\n const uniqueDevices: T[] = [];\n devices.forEach((device: T) => {\n if (!ids.has(device.id)) {\n uniqueDevices.push(device);\n ids.add(device.id);\n }\n });\n return uniqueDevices;\n};\n\n/**\n * Creates a declarative DeviceManager by proxying DeviceManager with ProxyDeviceManager. The declarative DeviceManager\n * will put state updates in the given context.\n *\n * @param deviceManager - DeviceManager from SDK\n * @param context - CallContext from StatefulCallClient\n */\nexport const deviceManagerDeclaratify = (deviceManager: DeviceManager, context: CallContext): DeviceManager => {\n const proxyDeviceManager = new ProxyDeviceManager(deviceManager, context);\n Object.defineProperty(deviceManager, 'unsubscribe', {\n configurable: false,\n value: () => proxyDeviceManager.unsubscribe()\n });\n Object.defineProperty(deviceManager, 'selectCamera', {\n configurable: false,\n value: (videoDeviceInfo: VideoDeviceInfo) => proxyDeviceManager.selectCamera(videoDeviceInfo)\n });\n return new Proxy(deviceManager, proxyDeviceManager) as StatefulDeviceManager;\n};\n"]}
|
@@ -17,6 +17,8 @@ export class ParticipantSubscriber {
|
|
17
17
|
this._participant.on('displayNameChanged', this.displayNameChanged);
|
18
18
|
this._participant.on('isSpeakingChanged', this.isSpeakingChanged);
|
19
19
|
this._participant.on('videoStreamsUpdated', this.videoStreamsUpdated);
|
20
|
+
/* @conditional-compile-remove(rooms) */
|
21
|
+
this._participant.on('roleChanged', this.roleChanged);
|
20
22
|
if (this._participant.videoStreams.length > 0) {
|
21
23
|
for (const stream of this._participant.videoStreams) {
|
22
24
|
this._internalContext.setRemoteRenderInfo(this._callIdRef.callId, this._participantKey, stream.id, stream, 'NotRendered', undefined);
|
@@ -31,6 +33,8 @@ export class ParticipantSubscriber {
|
|
31
33
|
this._participant.off('displayNameChanged', this.displayNameChanged);
|
32
34
|
this._participant.off('isSpeakingChanged', this.isSpeakingChanged);
|
33
35
|
this._participant.off('videoStreamsUpdated', this.videoStreamsUpdated);
|
36
|
+
/* @conditional-compile-remove(rooms) */
|
37
|
+
this._participant.off('roleChanged', this.roleChanged);
|
34
38
|
// If unsubscribing it means the participant left the call. If they have any rendering streams we should stop them
|
35
39
|
// as it doesn't make sense to render for an ended participant.
|
36
40
|
if (this._participant.videoStreams.length > 0) {
|
@@ -51,6 +55,10 @@ export class ParticipantSubscriber {
|
|
51
55
|
this.isMutedChanged = () => {
|
52
56
|
this._context.setParticipantIsMuted(this._callIdRef.callId, this._participantKey, this._participant.isMuted);
|
53
57
|
};
|
58
|
+
/* @conditional-compile-remove(rooms) */
|
59
|
+
this.roleChanged = () => {
|
60
|
+
this._context.setParticipantRole(this._callIdRef.callId, this._participantKey, this._participant.role);
|
61
|
+
};
|
54
62
|
this.displayNameChanged = () => {
|
55
63
|
this._context.setParticipantDisplayName(this._callIdRef.callId, this._participantKey, this._participant.displayName || '');
|
56
64
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ParticipantSubscriber.js","sourceRoot":"","sources":["../../../../../calling-stateful-client/src/ParticipantSubscriber.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,6BAA6B,EAAE,gCAAgC;AAGxE,OAAO,EAAE,+CAA+C,EAAE,MAAM,aAAa,CAAC;AAE9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;GA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AAsB,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;aACvG;YAED,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,KAAK,EAAE;gBAChC,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CACvC,IAAI,CAAC,UAAU,CAAC,MAAM,EACtB,IAAI,CAAC,eAAe,EACpB,MAAM,CAAC,EAAE,EACT,MAAM,EACN,aAAa,EACb,SAAS,CACV,CAAC;gBACF,IAAI,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAC;aAC7C;YAED,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CACjC,IAAI,CAAC,UAAU,CAAC,MAAM,EACtB,IAAI,CAAC,eAAe,EACpB,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,+CAA+C,CAAC,EAChE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAyB,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAC5D,CAAC;QACJ,CAAC,CAAC;QAvHA,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QACxC,IAAI,CAAC,eAAe,GAAG,6BAA6B,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QACnF,IAAI,CAAC,6BAA6B,GAAG,IAAI,GAAG,EAAuC,CAAC;QACpF,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;CAiHF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RemoteParticipant, RemoteVideoStream } from '@azure/communication-calling';\nimport { toFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport { CallContext } from './CallContext';\nimport { CallIdRef } from './CallIdRef';\nimport { convertSdkRemoteStreamToDeclarativeRemoteStream } from './Converter';\nimport { InternalCallContext } from './InternalCallContext';\nimport { RemoteVideoStreamSubscriber } from './RemoteVideoStreamSubscriber';\nimport { disposeView } from './StreamUtils';\n\n/**\n * Keeps track of the listeners assigned to a particular participant because when we get an event from SDK, it doesn't\n * tell us which participant it is for. If we keep track of this then we know which participant in the state that needs\n * an update and also which property of that participant. Also we can use this when unregistering to a participant.\n */\nexport class ParticipantSubscriber {\n private _callIdRef: CallIdRef;\n private _participant: RemoteParticipant;\n private _context: CallContext;\n private _internalContext: InternalCallContext;\n private _participantKey: string;\n private _remoteVideoStreamSubscribers: Map<number, RemoteVideoStreamSubscriber>;\n\n constructor(\n callIdRef: CallIdRef,\n participant: RemoteParticipant,\n context: CallContext,\n internalContext: InternalCallContext\n ) {\n this._callIdRef = callIdRef;\n this._participant = participant;\n this._context = context;\n this._internalContext = internalContext;\n this._participantKey = toFlatCommunicationIdentifier(this._participant.identifier);\n this._remoteVideoStreamSubscribers = new Map<number, RemoteVideoStreamSubscriber>();\n this.subscribe();\n }\n\n private subscribe = (): void => {\n this._participant.on('stateChanged', this.stateChanged);\n this._participant.on('isMutedChanged', this.isMutedChanged);\n this._participant.on('displayNameChanged', this.displayNameChanged);\n this._participant.on('isSpeakingChanged', this.isSpeakingChanged);\n this._participant.on('videoStreamsUpdated', this.videoStreamsUpdated);\n\n if (this._participant.videoStreams.length > 0) {\n for (const stream of this._participant.videoStreams) {\n this._internalContext.setRemoteRenderInfo(\n this._callIdRef.callId,\n this._participantKey,\n stream.id,\n stream,\n 'NotRendered',\n undefined\n );\n this.addRemoteVideoStreamSubscriber(stream);\n }\n this._context.setRemoteVideoStreams(\n this._callIdRef.callId,\n this._participantKey,\n this._participant.videoStreams.map(convertSdkRemoteStreamToDeclarativeRemoteStream),\n []\n );\n }\n };\n\n public unsubscribe = (): void => {\n this._participant.off('stateChanged', this.stateChanged);\n this._participant.off('isMutedChanged', this.isMutedChanged);\n this._participant.off('displayNameChanged', this.displayNameChanged);\n this._participant.off('isSpeakingChanged', this.isSpeakingChanged);\n this._participant.off('videoStreamsUpdated', this.videoStreamsUpdated);\n\n // If unsubscribing it means the participant left the call. If they have any rendering streams we should stop them\n // as it doesn't make sense to render for an ended participant.\n if (this._participant.videoStreams.length > 0) {\n for (const stream of this._participant.videoStreams) {\n disposeView(\n this._context,\n this._internalContext,\n this._callIdRef.callId,\n this._participantKey,\n convertSdkRemoteStreamToDeclarativeRemoteStream(stream)\n );\n this._internalContext.deleteRemoteRenderInfo(this._callIdRef.callId, this._participantKey, stream.id);\n }\n }\n };\n\n private addRemoteVideoStreamSubscriber = (remoteVideoStream: RemoteVideoStream): void => {\n this._remoteVideoStreamSubscribers.get(remoteVideoStream.id)?.unsubscribe();\n this._remoteVideoStreamSubscribers.set(\n remoteVideoStream.id,\n new RemoteVideoStreamSubscriber(this._callIdRef, this._participantKey, remoteVideoStream, this._context)\n );\n };\n\n private stateChanged = (): void => {\n this._context.setParticipantState(this._callIdRef.callId, this._participantKey, this._participant.state);\n };\n\n private isMutedChanged = (): void => {\n this._context.setParticipantIsMuted(this._callIdRef.callId, this._participantKey, this._participant.isMuted);\n };\n\n private displayNameChanged = (): void => {\n this._context.setParticipantDisplayName(\n this._callIdRef.callId,\n this._participantKey,\n this._participant.displayName || ''\n );\n };\n\n private isSpeakingChanged = (): void => {\n this._context.setParticipantIsSpeaking(this._callIdRef.callId, this._participantKey, this._participant.isSpeaking);\n };\n\n private videoStreamsUpdated = (event: { added: RemoteVideoStream[]; removed: RemoteVideoStream[] }): void => {\n for (const stream of event.removed) {\n this._remoteVideoStreamSubscribers.get(stream.id)?.unsubscribe();\n disposeView(\n this._context,\n this._internalContext,\n this._callIdRef.callId,\n this._participantKey,\n convertSdkRemoteStreamToDeclarativeRemoteStream(stream)\n );\n this._internalContext.deleteRemoteRenderInfo(this._callIdRef.callId, this._participantKey, stream.id);\n }\n\n for (const stream of event.added) {\n this._internalContext.setRemoteRenderInfo(\n this._callIdRef.callId,\n this._participantKey,\n stream.id,\n stream,\n 'NotRendered',\n undefined\n );\n this.addRemoteVideoStreamSubscriber(stream);\n }\n\n this._context.setRemoteVideoStreams(\n this._callIdRef.callId,\n this._participantKey,\n event.added.map(convertSdkRemoteStreamToDeclarativeRemoteStream),\n event.removed.map((stream: RemoteVideoStream) => stream.id)\n );\n };\n}\n\"../../acs-ui-common/src\""]}
|
1
|
+
{"version":3,"file":"ParticipantSubscriber.js","sourceRoot":"","sources":["../../../../../calling-stateful-client/src/ParticipantSubscriber.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,6BAA6B,EAAE,gCAAgC;AAGxE,OAAO,EAAE,+CAA+C,EAAE,MAAM,aAAa,CAAC;AAE9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;GAIG;AACH,MAAM,OAAO,qBAAqB;IAQhC,YACE,SAAoB,EACpB,WAA8B,EAC9B,OAAoB,EACpB,eAAoC;QAW9B,cAAS,GAAG,GAAS,EAAE;YAC7B,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,cAAc,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;YACxD,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,gBAAgB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;YAC5D,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,oBAAoB,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;YACpE,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,mBAAmB,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,qBAAqB,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;YACtE,wCAAwC;YACxC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,aAAa,EAAE,IAAI,CAAC,W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,MAAM,EACtB,IAAI,CAAC,eAAe,EACpB,MAAM,CAAC,EAAE,EACT,MAAM,EACN,aAAa,EACb,SAAS,CACV,CAAC;gBACF,IAAI,CAAC,8BAA8B,CAAC,MAAM,CAAC,CAAC;aAC7C;YAED,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CACjC,IAAI,CAAC,UAAU,CAAC,MAAM,EACtB,IAAI,CAAC,eAAe,EACpB,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,+CAA+C,CAAC,EAChE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAyB,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAC5D,CAAC;QACJ,CAAC,CAAC;QAhIA,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAChC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QACxC,IAAI,CAAC,eAAe,GAAG,6BAA6B,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QACnF,IAAI,CAAC,6BAA6B,GAAG,IAAI,GAAG,EAAuC,CAAC;QACpF,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;CA0HF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RemoteParticipant, RemoteVideoStream } from '@azure/communication-calling';\nimport { toFlatCommunicationIdentifier } from '@internal/acs-ui-common';\nimport { CallContext } from './CallContext';\nimport { CallIdRef } from './CallIdRef';\nimport { convertSdkRemoteStreamToDeclarativeRemoteStream } from './Converter';\nimport { InternalCallContext } from './InternalCallContext';\nimport { RemoteVideoStreamSubscriber } from './RemoteVideoStreamSubscriber';\nimport { disposeView } from './StreamUtils';\n\n/**\n * Keeps track of the listeners assigned to a particular participant because when we get an event from SDK, it doesn't\n * tell us which participant it is for. If we keep track of this then we know which participant in the state that needs\n * an update and also which property of that participant. Also we can use this when unregistering to a participant.\n */\nexport class ParticipantSubscriber {\n private _callIdRef: CallIdRef;\n private _participant: RemoteParticipant;\n private _context: CallContext;\n private _internalContext: InternalCallContext;\n private _participantKey: string;\n private _remoteVideoStreamSubscribers: Map<number, RemoteVideoStreamSubscriber>;\n\n constructor(\n callIdRef: CallIdRef,\n participant: RemoteParticipant,\n context: CallContext,\n internalContext: InternalCallContext\n ) {\n this._callIdRef = callIdRef;\n this._participant = participant;\n this._context = context;\n this._internalContext = internalContext;\n this._participantKey = toFlatCommunicationIdentifier(this._participant.identifier);\n this._remoteVideoStreamSubscribers = new Map<number, RemoteVideoStreamSubscriber>();\n this.subscribe();\n }\n\n private subscribe = (): void => {\n this._participant.on('stateChanged', this.stateChanged);\n this._participant.on('isMutedChanged', this.isMutedChanged);\n this._participant.on('displayNameChanged', this.displayNameChanged);\n this._participant.on('isSpeakingChanged', this.isSpeakingChanged);\n this._participant.on('videoStreamsUpdated', this.videoStreamsUpdated);\n /* @conditional-compile-remove(rooms) */\n this._participant.on('roleChanged', this.roleChanged);\n\n if (this._participant.videoStreams.length > 0) {\n for (const stream of this._participant.videoStreams) {\n this._internalContext.setRemoteRenderInfo(\n this._callIdRef.callId,\n this._participantKey,\n stream.id,\n stream,\n 'NotRendered',\n undefined\n );\n this.addRemoteVideoStreamSubscriber(stream);\n }\n this._context.setRemoteVideoStreams(\n this._callIdRef.callId,\n this._participantKey,\n this._participant.videoStreams.map(convertSdkRemoteStreamToDeclarativeRemoteStream),\n []\n );\n }\n };\n\n public unsubscribe = (): void => {\n this._participant.off('stateChanged', this.stateChanged);\n this._participant.off('isMutedChanged', this.isMutedChanged);\n this._participant.off('displayNameChanged', this.displayNameChanged);\n this._participant.off('isSpeakingChanged', this.isSpeakingChanged);\n this._participant.off('videoStreamsUpdated', this.videoStreamsUpdated);\n /* @conditional-compile-remove(rooms) */\n this._participant.off('roleChanged', this.roleChanged);\n\n // If unsubscribing it means the participant left the call. If they have any rendering streams we should stop them\n // as it doesn't make sense to render for an ended participant.\n if (this._participant.videoStreams.length > 0) {\n for (const stream of this._participant.videoStreams) {\n disposeView(\n this._context,\n this._internalContext,\n this._callIdRef.callId,\n this._participantKey,\n convertSdkRemoteStreamToDeclarativeRemoteStream(stream)\n );\n this._internalContext.deleteRemoteRenderInfo(this._callIdRef.callId, this._participantKey, stream.id);\n }\n }\n };\n\n private addRemoteVideoStreamSubscriber = (remoteVideoStream: RemoteVideoStream): void => {\n this._remoteVideoStreamSubscribers.get(remoteVideoStream.id)?.unsubscribe();\n this._remoteVideoStreamSubscribers.set(\n remoteVideoStream.id,\n new RemoteVideoStreamSubscriber(this._callIdRef, this._participantKey, remoteVideoStream, this._context)\n );\n };\n\n private stateChanged = (): void => {\n this._context.setParticipantState(this._callIdRef.callId, this._participantKey, this._participant.state);\n };\n\n private isMutedChanged = (): void => {\n this._context.setParticipantIsMuted(this._callIdRef.callId, this._participantKey, this._participant.isMuted);\n };\n\n /* @conditional-compile-remove(rooms) */\n private roleChanged = (): void => {\n this._context.setParticipantRole(this._callIdRef.callId, this._participantKey, this._participant.role);\n };\n\n private displayNameChanged = (): void => {\n this._context.setParticipantDisplayName(\n this._callIdRef.callId,\n this._participantKey,\n this._participant.displayName || ''\n );\n };\n\n private isSpeakingChanged = (): void => {\n this._context.setParticipantIsSpeaking(this._callIdRef.callId, this._participantKey, this._participant.isSpeaking);\n };\n\n private videoStreamsUpdated = (event: { added: RemoteVideoStream[]; removed: RemoteVideoStream[] }): void => {\n for (const stream of event.removed) {\n this._remoteVideoStreamSubscribers.get(stream.id)?.unsubscribe();\n disposeView(\n this._context,\n this._internalContext,\n this._callIdRef.callId,\n this._participantKey,\n convertSdkRemoteStreamToDeclarativeRemoteStream(stream)\n );\n this._internalContext.deleteRemoteRenderInfo(this._callIdRef.callId, this._participantKey, stream.id);\n }\n\n for (const stream of event.added) {\n this._internalContext.setRemoteRenderInfo(\n this._callIdRef.callId,\n this._participantKey,\n stream.id,\n stream,\n 'NotRendered',\n undefined\n );\n this.addRemoteVideoStreamSubscriber(stream);\n }\n\n this._context.setRemoteVideoStreams(\n this._callIdRef.callId,\n this._participantKey,\n event.added.map(convertSdkRemoteStreamToDeclarativeRemoteStream),\n event.removed.map((stream: RemoteVideoStream) => stream.id)\n );\n };\n}\n\"../../acs-ui-common/src\""]}
|
@@ -5,7 +5,10 @@
|
|
5
5
|
"removeButtonLabel": "Entfernen",
|
6
6
|
"sharingIconLabel": "Teilen",
|
7
7
|
"mutedIconLabel": "Stumm geschaltet",
|
8
|
-
"displayNamePlaceholder": "Unbenannter Teilnehmer"
|
8
|
+
"displayNamePlaceholder": "Unbenannter Teilnehmer",
|
9
|
+
"participantStateConnecting": "Anrufen...",
|
10
|
+
"participantStateRinging": "Anrufen...",
|
11
|
+
"participantStateHold": "In der Warteschleife"
|
9
12
|
},
|
10
13
|
"typingIndicator": {
|
11
14
|
"singleUser": "{user} schreibt ...",
|
@@ -18,7 +21,10 @@
|
|
18
21
|
"placeholderText": "Nachricht eingeben",
|
19
22
|
"textTooLong": "Ihre Nachrichtenlänge überschreitet den maximalen Grenzwert.",
|
20
23
|
"sendButtonAriaLabel": "Nachricht senden",
|
21
|
-
"fileUploadsPendingError": "Wird hochgeladen... Bitte warten."
|
24
|
+
"fileUploadsPendingError": "Wird hochgeladen... Bitte warten.",
|
25
|
+
"removeFile": "Datei entfernen",
|
26
|
+
"uploading": "Hochladen",
|
27
|
+
"uploadCompleted": "Upload abgeschlossen"
|
22
28
|
},
|
23
29
|
"messageStatusIndicator": {
|
24
30
|
"deliveredAriaLabel": "Nachricht gesendet",
|
@@ -80,7 +86,7 @@
|
|
80
86
|
},
|
81
87
|
"participantsButton": {
|
82
88
|
"label": "Personen",
|
83
|
-
"tooltipContent": "
|
89
|
+
"tooltipContent": "Teilnehmende anzeigen",
|
84
90
|
"menuHeader": "In diesem Anruf",
|
85
91
|
"participantsListButtonLabel": "{numParticipants} Personen",
|
86
92
|
"muteAllButtonLabel": "Alle stumm schalten",
|
@@ -110,6 +116,8 @@
|
|
110
116
|
"failToSendTag": "Fehler beim Senden",
|
111
117
|
"editedTag": "Bearbeitet",
|
112
118
|
"liveAuthorIntro": "{author} sagt",
|
119
|
+
"messageContentAriaText": "{author} hat {message} gesagt",
|
120
|
+
"messageContentMineAriaText": "Sie sagten {message}",
|
113
121
|
"editBoxTextLimit": "Ihre Nachricht überschreitet das Limit von {limitNumber} Zeichen.",
|
114
122
|
"editBoxPlaceholderText": "Bearbeiten Sie Ihre Nachricht",
|
115
123
|
"newMessagesIndicator": "Neue Nachrichten",
|
@@ -117,7 +125,8 @@
|
|
117
125
|
"editBoxCancelButton": "Abbrechen",
|
118
126
|
"editBoxSubmitButton": "Übermitteln",
|
119
127
|
"messageReadCount": "Gelesen von {messageReadByCount} von {remoteParticipantsCount}",
|
120
|
-
"actionMenuMoreOptions": "Weitere Optionen"
|
128
|
+
"actionMenuMoreOptions": "Weitere Optionen",
|
129
|
+
"downloadFile": "Datei herunterladen"
|
121
130
|
},
|
122
131
|
"errorBar": {
|
123
132
|
"unableToReachChatService": "Sie sind offline.",
|
@@ -138,10 +147,13 @@
|
|
138
147
|
"callNoMicrophoneFound": "Es wurden keine Mikrofone gefunden. Schließen Sie ein Audioeingabegerät an.",
|
139
148
|
"callMicrophoneAccessDenied": "Auf das Mikrofon kann nicht zugegriffen werden. Klicken Sie auf die Sperre in der Adressleiste, um dieser Webseite Berechtigungen zu erteilen.",
|
140
149
|
"callMicrophoneMutedBySystem": "Sie werden von Ihrem System stummgeschaltet.",
|
150
|
+
"callMicrophoneUnmutedBySystem": "Ihr Mikrofon wurde wiederhergestellt, und Ihr System hat die Stummschaltung aufgehoben.",
|
141
151
|
"callMacOsMicrophoneAccessDenied": "Auf das Mikrofon kann nicht zugegriffen werden. Erteilen Sie die Mikrofonberechtigung in Ihren macOS-Datenschutzeinstellungen.",
|
142
152
|
"callLocalVideoFreeze": "Die Netzwerkbandbreite ist schlecht. Ihr Video wird möglicherweise für andere Personen während des Anrufs angehalten angezeigt.",
|
143
153
|
"callCameraAccessDenied": "Auf die Kamera kann nicht zugegriffen werden. Klicken Sie auf die Sperre in der Adressleiste, um dieser Webseite Berechtigungen zu erteilen.",
|
144
154
|
"callCameraAlreadyInUse": "Auf die Kamera kann nicht zugegriffen werden. Sie wird möglicherweise bereits von einer anderen Anwendung verwendet.",
|
155
|
+
"callVideoStoppedBySystem": "Ihr Video wurde von Ihrem System beendet.",
|
156
|
+
"callVideoRecoveredBySystem": "Ihr Video wurde fortgesetzt.",
|
145
157
|
"callMacOsCameraAccessDenied": "MacOS blockiert den Zugriff auf Ihre Kamera. Aktualisieren Sie Ihre Datenschutzeinstellungen, damit dieser Browser auf Ihre Kamera zugreifen kann.",
|
146
158
|
"callMacOsScreenShareAccessDenied": "MacOS blockiert die Bildschirmfreigabe. Aktualisieren Sie Ihre Datenschutzeinstellungen, damit dieser Browser Ihren Bildschirm aufzeichnen kann.",
|
147
159
|
"dismissButtonAriaLabel": "Schließen",
|
@@ -158,12 +170,50 @@
|
|
158
170
|
"displayNamePlaceholder": "Unbenannter Teilnehmer"
|
159
171
|
},
|
160
172
|
"dialpad": {
|
161
|
-
"placeholderText": "
|
173
|
+
"placeholderText": "Telefonnummer eingeben",
|
174
|
+
"deleteButtonAriaLabel": "Löschen"
|
162
175
|
},
|
163
|
-
"
|
176
|
+
"holdButton": {
|
164
177
|
"onLabel": "Fortsetzen",
|
165
178
|
"offLabel": "Halten",
|
166
|
-
"
|
167
|
-
"
|
179
|
+
"tooltipOnContent": "Anruf fortsetzen",
|
180
|
+
"tooltipOffContent": "Anruf halten"
|
181
|
+
},
|
182
|
+
"videoTile": {
|
183
|
+
"participantStateConnecting": "Anrufen...",
|
184
|
+
"participantStateRinging": "Anrufen...",
|
185
|
+
"participantStateHold": "In der Warteschleife"
|
186
|
+
},
|
187
|
+
"DomainPermissions": {
|
188
|
+
"primaryText": "Zulassen, dass {appName} Ihre Kamera und Ihr Mikrofon verwendet",
|
189
|
+
"secondaryText": "So können die Teilnehmer Sie sehen und hören.",
|
190
|
+
"linkText": "Benötigen Sie Hilfe? Hilfe zur Problembehandlung",
|
191
|
+
"primaryButtonText": "Zugriff erlauben"
|
192
|
+
},
|
193
|
+
"UnsupportedBrowser": {
|
194
|
+
"primaryText": "Der Browser wird nicht unterstützt.",
|
195
|
+
"secondaryText": "Bitte nehmen Sie über einen kompatiblen Browser an diesem Anruf teil.",
|
196
|
+
"moreHelpLink": "Weitere Hilfe"
|
197
|
+
},
|
198
|
+
"BrowserPermissionDenied": {
|
199
|
+
"primaryText": "Kamera oder Mikrofon kann nicht verwendet werden",
|
200
|
+
"secondaryText": "Ihr Browser hat möglicherweise keinen Zugriff auf Ihre Kamera oder Ihr Mikrofon. Öffnen Sie die Systemeinstellungen, um dieses Problem zu beheben.",
|
201
|
+
"primaryButtonText": "Erneut versuchen",
|
202
|
+
"linkText": "Benötigen Sie Hilfe? Hilfe zur Problembehandlung"
|
203
|
+
},
|
204
|
+
"BrowserPermissionDeniedIOS": {
|
205
|
+
"primaryText": "Mikrofonzugriff zulassen, um fortzufahren",
|
206
|
+
"secondaryText": "Damit andere Teilnehmer Sie hören können.",
|
207
|
+
"primaryButtonText": "Erneut versuchen",
|
208
|
+
"imageAltText": "Berechtigungsspeicherort für Mikrofon- und Kamerageräte für iOS",
|
209
|
+
"linkText": "Benötigen Sie Hilfe? Hilfe zur Problembehandlung",
|
210
|
+
"step1Text": "Zur Einstellungs-App wechseln",
|
211
|
+
"step2Text": "Scrollen Sie nach unten zu den Einstellungen dieses Browsers",
|
212
|
+
"step3Text": "Mikrofon einschalten (Kamera optional)",
|
213
|
+
"step4Text": "Versuchen Sie erneut, dem Anruf beizutreten",
|
214
|
+
"step1DigitText": "1",
|
215
|
+
"step2DigitText": "2",
|
216
|
+
"step3DigitText": "3",
|
217
|
+
"step4DigitText": "4"
|
168
218
|
}
|
169
219
|
}
|
@@ -5,7 +5,10 @@
|
|
5
5
|
"removeButtonLabel": "Remove",
|
6
6
|
"sharingIconLabel": "Sharing",
|
7
7
|
"mutedIconLabel": "Muted",
|
8
|
-
"displayNamePlaceholder": "Unnamed Participant"
|
8
|
+
"displayNamePlaceholder": "Unnamed Participant",
|
9
|
+
"participantStateConnecting": "Calling...",
|
10
|
+
"participantStateRinging": "Calling...",
|
11
|
+
"participantStateHold": "On hold"
|
9
12
|
},
|
10
13
|
"typingIndicator": {
|
11
14
|
"singleUser": "{user} is typing ...",
|
@@ -18,7 +21,10 @@
|
|
18
21
|
"placeholderText": "Enter a message",
|
19
22
|
"textTooLong": "Your message length is over the maximum limit.",
|
20
23
|
"sendButtonAriaLabel": "Send message",
|
21
|
-
"fileUploadsPendingError": "Uploading... Please wait."
|
24
|
+
"fileUploadsPendingError": "Uploading... Please wait.",
|
25
|
+
"removeFile": "Remove file",
|
26
|
+
"uploading": "Uploading",
|
27
|
+
"uploadCompleted": "Upload completed"
|
22
28
|
},
|
23
29
|
"messageStatusIndicator": {
|
24
30
|
"deliveredAriaLabel": "Message sent",
|
@@ -33,7 +39,7 @@
|
|
33
39
|
},
|
34
40
|
"endCallButton": {
|
35
41
|
"label": "Leave",
|
36
|
-
"tooltipContent": "Leave
|
42
|
+
"tooltipContent": "Leave call"
|
37
43
|
},
|
38
44
|
"cameraButton": {
|
39
45
|
"onLabel": "Turn off",
|
@@ -43,7 +49,7 @@
|
|
43
49
|
"tooltipOffContent": "Turn on camera",
|
44
50
|
"tooltipVideoLoadingContent": "Video is loading",
|
45
51
|
"cameraMenuTitle": "Camera",
|
46
|
-
"cameraMenuTooltip": "Choose
|
52
|
+
"cameraMenuTooltip": "Choose camera",
|
47
53
|
"cameraButtonSplitRoleDescription": "Split button",
|
48
54
|
"onSplitButtonAriaLabel": "Turn off camera and camera options",
|
49
55
|
"offSplitButtonAriaLabel": "Turn on camera and camera options",
|
@@ -57,9 +63,9 @@
|
|
57
63
|
"tooltipOnContent": "Mute microphone",
|
58
64
|
"tooltipOffContent": "Unmute microphone",
|
59
65
|
"microphoneMenuTitle": "Microphone",
|
60
|
-
"microphoneMenuTooltip": "Choose
|
66
|
+
"microphoneMenuTooltip": "Choose microphone",
|
61
67
|
"speakerMenuTitle": "Speaker",
|
62
|
-
"speakerMenuTooltip": "Choose
|
68
|
+
"speakerMenuTooltip": "Choose speaker",
|
63
69
|
"microphoneButtonSplitRoleDescription": "Split button",
|
64
70
|
"onSplitButtonAriaLabel": "Mute microphone and audio options",
|
65
71
|
"offSplitButtonAriaLabel": "Unmute microphone and audio options",
|
@@ -70,17 +76,17 @@
|
|
70
76
|
"label": "Devices",
|
71
77
|
"tooltipContent": "Manage devices",
|
72
78
|
"cameraMenuTitle": "Camera",
|
73
|
-
"cameraMenuTooltip": "Choose
|
79
|
+
"cameraMenuTooltip": "Choose camera",
|
74
80
|
"audioDeviceMenuTitle": "Audio Device",
|
75
|
-
"audioDeviceMenuTooltip": "Choose
|
81
|
+
"audioDeviceMenuTooltip": "Choose audio device",
|
76
82
|
"microphoneMenuTitle": "Microphone",
|
77
|
-
"microphoneMenuTooltip": "Choose
|
83
|
+
"microphoneMenuTooltip": "Choose microphone",
|
78
84
|
"speakerMenuTitle": "Speaker",
|
79
|
-
"speakerMenuTooltip": "Choose
|
85
|
+
"speakerMenuTooltip": "Choose speaker"
|
80
86
|
},
|
81
87
|
"participantsButton": {
|
82
88
|
"label": "People",
|
83
|
-
"tooltipContent": "Show
|
89
|
+
"tooltipContent": "Show participants",
|
84
90
|
"menuHeader": "In this call",
|
85
91
|
"participantsListButtonLabel": "{numParticipants} people",
|
86
92
|
"muteAllButtonLabel": "Mute all",
|
@@ -110,6 +116,8 @@
|
|
110
116
|
"failToSendTag": "Failed to send",
|
111
117
|
"editedTag": "Edited",
|
112
118
|
"liveAuthorIntro": "{author} says",
|
119
|
+
"messageContentAriaText": "{author} said {message}",
|
120
|
+
"messageContentMineAriaText": "You said {message}",
|
113
121
|
"editBoxTextLimit": "Your message is over the limit of {limitNumber} characters",
|
114
122
|
"editBoxPlaceholderText": "Edit your message",
|
115
123
|
"newMessagesIndicator": "New messages",
|
@@ -117,7 +125,8 @@
|
|
117
125
|
"editBoxCancelButton": "Cancel",
|
118
126
|
"editBoxSubmitButton": "Submit",
|
119
127
|
"messageReadCount": "Read by {messageReadByCount} of {remoteParticipantsCount}",
|
120
|
-
"actionMenuMoreOptions": "More Options"
|
128
|
+
"actionMenuMoreOptions": "More Options",
|
129
|
+
"downloadFile": "Download file"
|
121
130
|
},
|
122
131
|
"errorBar": {
|
123
132
|
"unableToReachChatService": "You are offline",
|
@@ -138,10 +147,13 @@
|
|
138
147
|
"callNoMicrophoneFound": "No microphones found. Connect an audio input device.",
|
139
148
|
"callMicrophoneAccessDenied": "Unable to access microphone. Click the lock in the address bar to grant permission to this webpage.",
|
140
149
|
"callMicrophoneMutedBySystem": "You are muted by your system.",
|
150
|
+
"callMicrophoneUnmutedBySystem": "Your microphone recovered and you were unmuted by your system.",
|
141
151
|
"callMacOsMicrophoneAccessDenied": "Unable to access microphone. Grant microphone permission in your macOS privacy settings.",
|
142
152
|
"callLocalVideoFreeze": "Network bandwidth is poor. Your video may appear paused for others on the call.",
|
143
153
|
"callCameraAccessDenied": "Unable to access camera. Click the lock in the address bar to grant permission to this webpage.",
|
144
154
|
"callCameraAlreadyInUse": "Unable to access camera. It may already be in use by another application.",
|
155
|
+
"callVideoStoppedBySystem": "Your video has been stopped by your system.",
|
156
|
+
"callVideoRecoveredBySystem": "Your video has resumed.",
|
145
157
|
"callMacOsCameraAccessDenied": "MacOS is blocking access to your camera. Update your privacy settings to allow this browser to access your camera.",
|
146
158
|
"callMacOsScreenShareAccessDenied": "MacOS is blocking screen sharing. Update your privacy settings to allow this browser to record your screen.",
|
147
159
|
"dismissButtonAriaLabel": "Close",
|
@@ -158,12 +170,50 @@
|
|
158
170
|
"displayNamePlaceholder": "Unnamed Participant"
|
159
171
|
},
|
160
172
|
"dialpad": {
|
161
|
-
"placeholderText": "Enter
|
173
|
+
"placeholderText": "Enter phone number",
|
174
|
+
"deleteButtonAriaLabel": "Delete"
|
162
175
|
},
|
163
|
-
"
|
176
|
+
"holdButton": {
|
164
177
|
"onLabel": "Resume",
|
165
178
|
"offLabel": "Hold",
|
166
|
-
"
|
167
|
-
"
|
179
|
+
"tooltipOnContent": "Resume call",
|
180
|
+
"tooltipOffContent": "Hold call"
|
181
|
+
},
|
182
|
+
"videoTile": {
|
183
|
+
"participantStateConnecting": "Calling...",
|
184
|
+
"participantStateRinging": "Calling...",
|
185
|
+
"participantStateHold": "On hold"
|
186
|
+
},
|
187
|
+
"DomainPermissions": {
|
188
|
+
"primaryText": "Allow {appName} to use your camera and microphone",
|
189
|
+
"secondaryText": "This is so participants can see and hear you.",
|
190
|
+
"linkText": "Need help? Get troubleshooting help",
|
191
|
+
"primaryButtonText": "Allow Access"
|
192
|
+
},
|
193
|
+
"UnsupportedBrowser": {
|
194
|
+
"primaryText": "Browser not supported",
|
195
|
+
"secondaryText": "Please join this call using a compatible browser.",
|
196
|
+
"moreHelpLink": "More help"
|
197
|
+
},
|
198
|
+
"BrowserPermissionDenied": {
|
199
|
+
"primaryText": "Can't use your camera or microphone",
|
200
|
+
"secondaryText": "Your browser might not have access to your camera or microphone. To fix this, open System Preferences.",
|
201
|
+
"primaryButtonText": "Try again",
|
202
|
+
"linkText": "Need help? Get troubleshooting help"
|
203
|
+
},
|
204
|
+
"BrowserPermissionDeniedIOS": {
|
205
|
+
"primaryText": "Allow microphone access to continue",
|
206
|
+
"secondaryText": "So other participants can hear you.",
|
207
|
+
"primaryButtonText": "Try again",
|
208
|
+
"imageAltText": "Microphone and camera device permission location for iOS",
|
209
|
+
"linkText": "Need help? Get troubleshooting help",
|
210
|
+
"step1Text": "Go to the Settings app",
|
211
|
+
"step2Text": "Scroll down to settings for this browser",
|
212
|
+
"step3Text": "Turn on Microphone (Camera optional)",
|
213
|
+
"step4Text": "Try joining the call again",
|
214
|
+
"step1DigitText": "1",
|
215
|
+
"step2DigitText": "2",
|
216
|
+
"step3DigitText": "3",
|
217
|
+
"step4DigitText": "4"
|
168
218
|
}
|
169
219
|
}
|
@@ -5,7 +5,10 @@
|
|
5
5
|
"removeButtonLabel": "Quitar",
|
6
6
|
"sharingIconLabel": "Compartiendo",
|
7
7
|
"mutedIconLabel": "Silenciado",
|
8
|
-
"displayNamePlaceholder": "Participante sin nombre"
|
8
|
+
"displayNamePlaceholder": "Participante sin nombre",
|
9
|
+
"participantStateConnecting": "Llamando...",
|
10
|
+
"participantStateRinging": "Llamando...",
|
11
|
+
"participantStateHold": "En espera"
|
9
12
|
},
|
10
13
|
"typingIndicator": {
|
11
14
|
"singleUser": "{user} está escribiendo...",
|
@@ -18,7 +21,10 @@
|
|
18
21
|
"placeholderText": "Escribir un mensaje",
|
19
22
|
"textTooLong": "La longitud del mensaje supera el límite máximo.",
|
20
23
|
"sendButtonAriaLabel": "Enviar mensaje",
|
21
|
-
"fileUploadsPendingError": "Cargando... Espere."
|
24
|
+
"fileUploadsPendingError": "Cargando... Espere.",
|
25
|
+
"removeFile": "Quitar archivo",
|
26
|
+
"uploading": "Cargando",
|
27
|
+
"uploadCompleted": "Carga completada"
|
22
28
|
},
|
23
29
|
"messageStatusIndicator": {
|
24
30
|
"deliveredAriaLabel": "Mensaje enviado",
|
@@ -110,6 +116,8 @@
|
|
110
116
|
"failToSendTag": "Error al enviar",
|
111
117
|
"editedTag": "Editado",
|
112
118
|
"liveAuthorIntro": "{author} dice",
|
119
|
+
"messageContentAriaText": "{author} dijo {message}",
|
120
|
+
"messageContentMineAriaText": "Has dicho {message}",
|
113
121
|
"editBoxTextLimit": "El mensaje supera el límite de {limitNumber} caracteres",
|
114
122
|
"editBoxPlaceholderText": "Editar el mensaje",
|
115
123
|
"newMessagesIndicator": "Mensajes nuevos",
|
@@ -117,7 +125,8 @@
|
|
117
125
|
"editBoxCancelButton": "Cancelar",
|
118
126
|
"editBoxSubmitButton": "Enviar",
|
119
127
|
"messageReadCount": "Leído por {messageReadByCount} de {remoteParticipantsCount}",
|
120
|
-
"actionMenuMoreOptions": "Más opciones"
|
128
|
+
"actionMenuMoreOptions": "Más opciones",
|
129
|
+
"downloadFile": "Descargar archivo"
|
121
130
|
},
|
122
131
|
"errorBar": {
|
123
132
|
"unableToReachChatService": "Sin conexión",
|
@@ -138,10 +147,13 @@
|
|
138
147
|
"callNoMicrophoneFound": "No se encontraron micrófonos. Conecta un dispositivo de entrada de audio.",
|
139
148
|
"callMicrophoneAccessDenied": "No se puede acceder al micrófono. Haga clic en el bloqueo de la barra de direcciones para conceder permiso a esta página web.",
|
140
149
|
"callMicrophoneMutedBySystem": "Su sistema ha silenciado su audio.",
|
150
|
+
"callMicrophoneUnmutedBySystem": "Su micrófono se ha recuperado y el sistema ha activado el audio.",
|
141
151
|
"callMacOsMicrophoneAccessDenied": "No se puede acceder al micrófono. Conceda permiso al micrófono en la configuración de privacidad de macOS.",
|
142
152
|
"callLocalVideoFreeze": "El ancho de banda de red es deficiente. Es posible que el vídeo aparezca pausado para otros usuarios en la llamada.",
|
143
153
|
"callCameraAccessDenied": "No se puede acceder a la cámara. Haga clic en el bloqueo de la barra de direcciones para conceder permiso a esta página web.",
|
144
154
|
"callCameraAlreadyInUse": "No se puede acceder a la cámara. Puede que ya la esté usando otra aplicación.",
|
155
|
+
"callVideoStoppedBySystem": "El sistema ha detenido el vídeo.",
|
156
|
+
"callVideoRecoveredBySystem": "El vídeo se ha reanudado.",
|
145
157
|
"callMacOsCameraAccessDenied": "MacOS está bloqueando el acceso a la cámara. Actualiza la configuración de privacidad para permitir que este explorador acceda a la cámara.",
|
146
158
|
"callMacOsScreenShareAccessDenied": "MacOS está bloqueando el uso compartido de la pantalla. Actualice la configuración de privacidad para permitir que este explorador grabe la pantalla.",
|
147
159
|
"dismissButtonAriaLabel": "Cerrar",
|
@@ -158,12 +170,50 @@
|
|
158
170
|
"displayNamePlaceholder": "Participante sin nombre"
|
159
171
|
},
|
160
172
|
"dialpad": {
|
161
|
-
"placeholderText": "
|
173
|
+
"placeholderText": "Introduzca el número de teléfono",
|
174
|
+
"deleteButtonAriaLabel": "Eliminar"
|
162
175
|
},
|
163
|
-
"
|
176
|
+
"holdButton": {
|
164
177
|
"onLabel": "Reanudar",
|
165
178
|
"offLabel": "En espera",
|
166
|
-
"
|
167
|
-
"
|
179
|
+
"tooltipOnContent": "Reanudar llamada",
|
180
|
+
"tooltipOffContent": "Poner llamada en espera"
|
181
|
+
},
|
182
|
+
"videoTile": {
|
183
|
+
"participantStateConnecting": "Llamando...",
|
184
|
+
"participantStateRinging": "Llamando...",
|
185
|
+
"participantStateHold": "En espera"
|
186
|
+
},
|
187
|
+
"DomainPermissions": {
|
188
|
+
"primaryText": "Permitir que {appName} usen la cámara y el micrófono",
|
189
|
+
"secondaryText": "Esto es para que los participantes puedan verle y oírle.",
|
190
|
+
"linkText": "¿Necesitas ayuda? Obtén ayuda para la solución de problemas",
|
191
|
+
"primaryButtonText": "Permitir acceso"
|
192
|
+
},
|
193
|
+
"UnsupportedBrowser": {
|
194
|
+
"primaryText": "Explorador no compatible",
|
195
|
+
"secondaryText": "Únase a esta llamada con un explorador compatible.",
|
196
|
+
"moreHelpLink": "Más ayuda"
|
197
|
+
},
|
198
|
+
"BrowserPermissionDenied": {
|
199
|
+
"primaryText": "No se puede usar la cámara o el micrófono",
|
200
|
+
"secondaryText": "Es posible que el explorador no tenga acceso a la cámara o al micrófono. Para solucionar este problema, abra Preferencias del sistema.",
|
201
|
+
"primaryButtonText": "Intentar de nuevo",
|
202
|
+
"linkText": "¿Necesitas ayuda? Obtén ayuda para la solución de problemas"
|
203
|
+
},
|
204
|
+
"BrowserPermissionDeniedIOS": {
|
205
|
+
"primaryText": "Permite el acceso al micrófono para continuar",
|
206
|
+
"secondaryText": "Para que otros participantes puedan oírte.",
|
207
|
+
"primaryButtonText": "Intentar de nuevo",
|
208
|
+
"imageAltText": "Ubicación de permisos del dispositivo de micrófono y cámara para iOS",
|
209
|
+
"linkText": "¿Necesitas ayuda? Obtén ayuda para la solución de problemas",
|
210
|
+
"step1Text": "Ve a la aplicación de Configuración",
|
211
|
+
"step2Text": "Desplázate hacia abajo hasta la configuración de este explorador",
|
212
|
+
"step3Text": "Activar micrófono (cámara opcional)",
|
213
|
+
"step4Text": "Intenta unirte de nuevo a la llamada",
|
214
|
+
"step1DigitText": "1",
|
215
|
+
"step2DigitText": "2",
|
216
|
+
"step3DigitText": "3",
|
217
|
+
"step4DigitText": "4"
|
168
218
|
}
|
169
219
|
}
|