@webex/plugin-meetings 3.12.0-next.131 → 3.12.0-next.133
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/aiEnableRequest/index.js +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/types.js +2 -1
- package/dist/locus-info/types.js.map +1 -1
- package/dist/meeting/index.js +13 -2
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +2 -1
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/types/locus-info/types.d.ts +1 -0
- package/dist/types/meeting/index.d.ts +1 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +1 -1
- package/src/locus-info/types.ts +1 -0
- package/src/meeting/index.ts +11 -3
- package/src/meeting/voicea-meeting.ts +1 -1
- package/test/unit/spec/meeting/index.js +72 -0
- package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
|
@@ -131,7 +131,8 @@ var processNewCaptions = exports.processNewCaptions = function processNewCaption
|
|
|
131
131
|
}
|
|
132
132
|
interimTranscriptionIds.push(interimId);
|
|
133
133
|
} else {
|
|
134
|
-
|
|
134
|
+
var _transcriptData$inter;
|
|
135
|
+
((_transcriptData$inter = transcriptData.interimCaptions[transcriptId]) !== null && _transcriptData$inter !== void 0 ? _transcriptData$inter : []).forEach(function (innerInterimId) {
|
|
135
136
|
var interimTranscriptIndex = transcriptData.captions.findIndex(function (transcript) {
|
|
136
137
|
return transcript.id === innerInterimId;
|
|
137
138
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getSpeaker","exports","members","csis","arguments","length","undefined","_values","default","find","member","_member$participant$s","memberCSIs","participant","status","some","csi","includes","getSpeakerFromProxyOrStore","_ref","_meetingMember$partic","_meetingMember$partic2","csisKey","meetingMembers","transcriptData","speaker","speakerId","name","needsCaching","speakerProxy","meetingMember","person","id","processNewCaptions","_ref2","data","meeting","transcriptId","transcription","_data$transcripts","transcripts","transcriptsPerCsis","_map","_iterator","_createForOfIteratorHelper","_step","s","n","done","_transcriptsPerCsis$g","_transcriptsPerCsis$g2","transcript","value","text","currentSpokenLanguage","transcript_language_code","_transcript$csis","_slicedToArray2","csisMember","newCaption","concat","get","trim","set","_objectSpread","err","e","f","interimTranscriptionIds","_iterator2","_step2","_loop","_meeting$transcriptio","_meeting$transcriptio2","_meeting$transcriptio3","_meeting$transcriptio4","_data$transcripts$","_step2$value","key","_getSpeakerFromProxyO","membersCollection","interimId","captionData","isFinal","translations","currentCaptionLanguage","languageOptions","timestamp","interimTranscriptIndex","captions","findIndex","splice","push","interimCaptions","forEach","innerInterimId"],"sources":["voicea-meeting.ts"],"sourcesContent":["import {type MeetingTranscriptPayload} from '@webex/internal-plugin-voicea';\n\nexport const getSpeaker = (members, csis = []) =>\n Object.values(members).find((member: any) => {\n const memberCSIs = member.participant.status.csis ?? [];\n\n return csis.some((csi) => memberCSIs.includes(csi));\n });\n\nexport const getSpeakerFromProxyOrStore = ({csisKey, meetingMembers, transcriptData}) => {\n let speaker = {\n speakerId: '',\n name: '',\n };\n\n let needsCaching = false;\n\n if (csisKey && transcriptData.speakerProxy[csisKey]) {\n speaker = transcriptData.speakerProxy[csisKey];\n\n return {speaker, needsCaching};\n }\n\n const meetingMember: any = getSpeaker(meetingMembers, [csisKey]);\n\n speaker = {\n speakerId: meetingMember?.participant.person.id ?? '',\n name: meetingMember?.participant.person.name ?? '',\n };\n\n needsCaching = true;\n\n return {speaker, needsCaching};\n};\n\nexport const processNewCaptions = ({\n data,\n meeting,\n}: {\n data: MeetingTranscriptPayload;\n meeting: any;\n}) => {\n const {transcriptId} = data;\n const transcriptData = meeting.transcription;\n\n const {transcripts = []} = data;\n const transcriptsPerCsis = new Map();\n\n for (const transcript of transcripts) {\n const {\n text,\n transcript_language_code: currentSpokenLanguage,\n csis: [csisMember],\n } = transcript;\n\n const newCaption = `${transcriptsPerCsis.get(csisMember)?.text ?? ''} ${text}`.trim();\n\n transcriptsPerCsis.set(csisMember, {\n ...transcript,\n text: newCaption,\n currentSpokenLanguage,\n });\n }\n const interimTranscriptionIds = [];\n\n for (const [key, value] of transcriptsPerCsis) {\n const {needsCaching, speaker} = getSpeakerFromProxyOrStore({\n meetingMembers: meeting.members.membersCollection.members,\n transcriptData,\n csisKey: key,\n });\n const {speakerId} = speaker;\n const interimId = `${transcriptId}_${speakerId}`;\n\n if (needsCaching) {\n transcriptData.speakerProxy[key] = speaker;\n }\n\n const captionData = {\n id: interimId,\n isFinal: data.isFinal,\n translations: value.translations,\n text: value.text,\n currentCaptionLanguage:\n meeting.transcription?.languageOptions?.currentCaptionLanguage ||\n value.currentSpokenLanguage,\n currentSpokenLanguage:\n meeting.transcription?.languageOptions?.currentSpokenLanguage ||\n data.transcripts[0]?.transcript_language_code,\n timestamp: value?.timestamp,\n speaker,\n };\n\n if (!data.isFinal) {\n const interimTranscriptIndex = transcriptData.captions.findIndex(\n (transcript) => transcript.id === interimId\n );\n\n if (interimTranscriptIndex !== -1) {\n transcriptData.captions.splice(interimTranscriptIndex, 1);\n }\n\n interimTranscriptionIds.push(interimId);\n } else {\n transcriptData.interimCaptions[transcriptId].forEach((innerInterimId) => {\n const interimTranscriptIndex = transcriptData.captions.findIndex(\n (transcript) => transcript.id === innerInterimId\n );\n\n if (interimTranscriptIndex !== -1) {\n transcriptData.captions.splice(interimTranscriptIndex, 1);\n }\n });\n delete transcriptData.interimCaptions[transcriptId];\n captionData.id = transcriptId;\n }\n transcriptData.captions.push(captionData);\n }\n transcriptData.interimCaptions[transcriptId] = interimTranscriptionIds;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEO,IAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,SAAbA,UAAUA,CAAIE,OAAO;EAAA,IAAEC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAA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D,OAAO,CAAC,UAACC,cAAc,EAAK;UACvE,IAAMP,sBAAsB,GAAGhE,cAAc,CAACiE,QAAQ,CAACC,SAAS,CAC9D,UAACvC,UAAU;YAAA,OAAKA,UAAU,CAACnB,EAAE,KAAK+D,cAAc;UAAA,CAClD,CAAC;UAED,IAAIP,sBAAsB,KAAK,CAAC,CAAC,EAAE;YACjChE,cAAc,CAACiE,QAAQ,CAACE,MAAM,CAACH,sBAAsB,EAAE,CAAC,CAAC;UAC3D;QACF,CAAC,CAAC;QACF,OAAOhE,cAAc,CAACqE,eAAe,CAACxD,YAAY,CAAC;QACnD6C,WAAW,CAAClD,EAAE,GAAGK,YAAY;MAC/B;MACAb,cAAc,CAACiE,QAAQ,CAACG,IAAI,CAACV,WAAW,CAAC;IAC3C,CAAC;IApDD,KAAAb,UAAA,CAAAvB,CAAA,MAAAwB,MAAA,GAAAD,UAAA,CAAAtB,CAAA,IAAAC,IAAA;MAAAuB,KAAA;IAAA;EAoDC,SAAAN,GAAA;IAAAI,UAAA,CAAAH,CAAA,CAAAD,GAAA;EAAA;IAAAI,UAAA,CAAAF,CAAA;EAAA;EACD3C,cAAc,CAACqE,eAAe,CAACxD,YAAY,CAAC,GAAG+B,uBAAuB;AACxE,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["getSpeaker","exports","members","csis","arguments","length","undefined","_values","default","find","member","_member$participant$s","memberCSIs","participant","status","some","csi","includes","getSpeakerFromProxyOrStore","_ref","_meetingMember$partic","_meetingMember$partic2","csisKey","meetingMembers","transcriptData","speaker","speakerId","name","needsCaching","speakerProxy","meetingMember","person","id","processNewCaptions","_ref2","data","meeting","transcriptId","transcription","_data$transcripts","transcripts","transcriptsPerCsis","_map","_iterator","_createForOfIteratorHelper","_step","s","n","done","_transcriptsPerCsis$g","_transcriptsPerCsis$g2","transcript","value","text","currentSpokenLanguage","transcript_language_code","_transcript$csis","_slicedToArray2","csisMember","newCaption","concat","get","trim","set","_objectSpread","err","e","f","interimTranscriptionIds","_iterator2","_step2","_loop","_meeting$transcriptio","_meeting$transcriptio2","_meeting$transcriptio3","_meeting$transcriptio4","_data$transcripts$","_step2$value","key","_getSpeakerFromProxyO","membersCollection","interimId","captionData","isFinal","translations","currentCaptionLanguage","languageOptions","timestamp","interimTranscriptIndex","captions","findIndex","splice","push","_transcriptData$inter","interimCaptions","forEach","innerInterimId"],"sources":["voicea-meeting.ts"],"sourcesContent":["import {type MeetingTranscriptPayload} from '@webex/internal-plugin-voicea';\n\nexport const getSpeaker = (members, csis = []) =>\n Object.values(members).find((member: any) => {\n const memberCSIs = member.participant.status.csis ?? [];\n\n return csis.some((csi) => memberCSIs.includes(csi));\n });\n\nexport const getSpeakerFromProxyOrStore = ({csisKey, meetingMembers, transcriptData}) => {\n let speaker = {\n speakerId: '',\n name: '',\n };\n\n let needsCaching = false;\n\n if (csisKey && transcriptData.speakerProxy[csisKey]) {\n speaker = transcriptData.speakerProxy[csisKey];\n\n return {speaker, needsCaching};\n }\n\n const meetingMember: any = getSpeaker(meetingMembers, [csisKey]);\n\n speaker = {\n speakerId: meetingMember?.participant.person.id ?? '',\n name: meetingMember?.participant.person.name ?? '',\n };\n\n needsCaching = true;\n\n return {speaker, needsCaching};\n};\n\nexport const processNewCaptions = ({\n data,\n meeting,\n}: {\n data: MeetingTranscriptPayload;\n meeting: any;\n}) => {\n const {transcriptId} = data;\n const transcriptData = meeting.transcription;\n\n const {transcripts = []} = data;\n const transcriptsPerCsis = new Map();\n\n for (const transcript of transcripts) {\n const {\n text,\n transcript_language_code: currentSpokenLanguage,\n csis: [csisMember],\n } = transcript;\n\n const newCaption = `${transcriptsPerCsis.get(csisMember)?.text ?? ''} ${text}`.trim();\n\n transcriptsPerCsis.set(csisMember, {\n ...transcript,\n text: newCaption,\n currentSpokenLanguage,\n });\n }\n const interimTranscriptionIds = [];\n\n for (const [key, value] of transcriptsPerCsis) {\n const {needsCaching, speaker} = getSpeakerFromProxyOrStore({\n meetingMembers: meeting.members.membersCollection.members,\n transcriptData,\n csisKey: key,\n });\n const {speakerId} = speaker;\n const interimId = `${transcriptId}_${speakerId}`;\n\n if (needsCaching) {\n transcriptData.speakerProxy[key] = speaker;\n }\n\n const captionData = {\n id: interimId,\n isFinal: data.isFinal,\n translations: value.translations,\n text: value.text,\n currentCaptionLanguage:\n meeting.transcription?.languageOptions?.currentCaptionLanguage ||\n value.currentSpokenLanguage,\n currentSpokenLanguage:\n meeting.transcription?.languageOptions?.currentSpokenLanguage ||\n data.transcripts[0]?.transcript_language_code,\n timestamp: value?.timestamp,\n speaker,\n };\n\n if (!data.isFinal) {\n const interimTranscriptIndex = transcriptData.captions.findIndex(\n (transcript) => transcript.id === interimId\n );\n\n if (interimTranscriptIndex !== -1) {\n transcriptData.captions.splice(interimTranscriptIndex, 1);\n }\n\n interimTranscriptionIds.push(interimId);\n } else {\n (transcriptData.interimCaptions[transcriptId] ?? []).forEach((innerInterimId) => {\n const interimTranscriptIndex = transcriptData.captions.findIndex(\n (transcript) => transcript.id === innerInterimId\n );\n\n if (interimTranscriptIndex !== -1) {\n transcriptData.captions.splice(interimTranscriptIndex, 1);\n }\n });\n delete transcriptData.interimCaptions[transcriptId];\n captionData.id = transcriptId;\n }\n transcriptData.captions.push(captionData);\n }\n transcriptData.interimCaptions[transcriptId] = interimTranscriptionIds;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEO,IAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG,SAAbA,UAAUA,CAAIE,OAAO;EAAA,IAAEC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,OAC3C,IAAAG,OAAA,CAAAC,OAAA,EAAcN,OAAO,CAAC,CAACO,IAAI,CAAC,UAACC,MAAW,EAAK;IAAA,IAAAC,qBAAA;IAC3C,IAAMC,UAAU,IAAAD,qBAAA,GAAGD,MAAM,CAACG,WAAW,CAACC,MAAM,CAACX,IAAI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cAAc;UAAA,CAClD,CAAC;UAED,IAAIR,sBAAsB,KAAK,CAAC,CAAC,EAAE;YACjChE,cAAc,CAACiE,QAAQ,CAACE,MAAM,CAACH,sBAAsB,EAAE,CAAC,CAAC;UAC3D;QACF,CAAC,CAAC;QACF,OAAOhE,cAAc,CAACsE,eAAe,CAACzD,YAAY,CAAC;QACnD6C,WAAW,CAAClD,EAAE,GAAGK,YAAY;MAC/B;MACAb,cAAc,CAACiE,QAAQ,CAACG,IAAI,CAACV,WAAW,CAAC;IAC3C,CAAC;IApDD,KAAAb,UAAA,CAAAvB,CAAA,MAAAwB,MAAA,GAAAD,UAAA,CAAAtB,CAAA,IAAAC,IAAA;MAAAuB,KAAA;IAAA;EAoDC,SAAAN,GAAA;IAAAI,UAAA,CAAAH,CAAA,CAAAD,GAAA;EAAA;IAAAI,UAAA,CAAAF,CAAA;EAAA;EACD3C,cAAc,CAACsE,eAAe,CAACzD,YAAY,CAAC,GAAG+B,uBAAuB;AACxE,CAAC","ignoreList":[]}
|
|
@@ -1608,6 +1608,7 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1608
1608
|
* @returns {boolean}
|
|
1609
1609
|
*/
|
|
1610
1610
|
private isErrorMeaningLocusDroppedUs;
|
|
1611
|
+
private isLocusUserFullError;
|
|
1611
1612
|
/**
|
|
1612
1613
|
* Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
|
|
1613
1614
|
* We do this in the hope that it will minimize the chance of Homer sending DTLS packets on a wrong
|
package/dist/webinar/index.js
CHANGED
package/package.json
CHANGED
package/src/locus-info/types.ts
CHANGED
package/src/meeting/index.ts
CHANGED
|
@@ -186,7 +186,7 @@ import {ReachabilityMetrics} from '../reachability/reachability.types';
|
|
|
186
186
|
import {SetStageOptions, SetStageVideoLayout, UnsetStageVideoLayout} from './request.type';
|
|
187
187
|
import {Invitee} from './type';
|
|
188
188
|
import {DataSet, HashTreeMessage, Metadata} from '../hashTree/hashTreeParser';
|
|
189
|
-
import {LocusDTO} from '../locus-info/types';
|
|
189
|
+
import {LocusDTO, LocusErrorCodes} from '../locus-info/types';
|
|
190
190
|
import AIEnableRequest from '../aiEnableRequest';
|
|
191
191
|
|
|
192
192
|
// default callback so we don't call an undefined function, but in practice it should never be used
|
|
@@ -5862,10 +5862,12 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
5862
5862
|
|
|
5863
5863
|
if (
|
|
5864
5864
|
CallDiagnosticUtils.isSdpOfferCreationError(error) ||
|
|
5865
|
-
CallDiagnosticUtils.isWebrtcApiNotAvailableError(error)
|
|
5865
|
+
CallDiagnosticUtils.isWebrtcApiNotAvailableError(error) ||
|
|
5866
|
+
this.isLocusUserFullError(error)
|
|
5866
5867
|
) {
|
|
5867
5868
|
// errors related to offer creation (for example missing H264 codec) will happen again no matter how many times we try,
|
|
5868
5869
|
// so there is no point doing a retry
|
|
5870
|
+
// when the locus is full, we also don't want to retry, because it will just fail again
|
|
5869
5871
|
shouldRetry = false;
|
|
5870
5872
|
}
|
|
5871
5873
|
|
|
@@ -5931,7 +5933,9 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
5931
5933
|
|
|
5932
5934
|
this.locusInfo.suspendDestroyMeeting(false);
|
|
5933
5935
|
|
|
5934
|
-
|
|
5936
|
+
// LOCUS_USER_FULL is a definitive capacity error the client must surface, so it takes
|
|
5937
|
+
// precedence over any earlier retryable error stored in firstError.
|
|
5938
|
+
throw this.isLocusUserFullError(error) ? error : firstError ?? error;
|
|
5935
5939
|
}
|
|
5936
5940
|
}
|
|
5937
5941
|
|
|
@@ -8204,6 +8208,10 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
8204
8208
|
);
|
|
8205
8209
|
}
|
|
8206
8210
|
|
|
8211
|
+
private isLocusUserFullError(error: Error | undefined): boolean {
|
|
8212
|
+
return (error as any)?.error?.body?.errorCode === LocusErrorCodes.LOCUS_USER_FULL;
|
|
8213
|
+
}
|
|
8214
|
+
|
|
8207
8215
|
/**
|
|
8208
8216
|
* Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
|
|
8209
8217
|
* We do this in the hope that it will minimize the chance of Homer sending DTLS packets on a wrong
|
|
@@ -102,7 +102,7 @@ export const processNewCaptions = ({
|
|
|
102
102
|
|
|
103
103
|
interimTranscriptionIds.push(interimId);
|
|
104
104
|
} else {
|
|
105
|
-
transcriptData.interimCaptions[transcriptId].forEach((innerInterimId) => {
|
|
105
|
+
(transcriptData.interimCaptions[transcriptId] ?? []).forEach((innerInterimId) => {
|
|
106
106
|
const interimTranscriptIndex = transcriptData.captions.findIndex(
|
|
107
107
|
(transcript) => transcript.id === innerInterimId
|
|
108
108
|
);
|
|
@@ -1181,6 +1181,78 @@ describe('plugin-meetings', () => {
|
|
|
1181
1181
|
assert.calledWith(suspendDestroyMeetingStub.thirdCall, false);
|
|
1182
1182
|
});
|
|
1183
1183
|
|
|
1184
|
+
it('should not retry if join() fails because the Locus user capacity is full', async () => {
|
|
1185
|
+
const error = new Error('Error Joining Meeting');
|
|
1186
|
+
error.error = {
|
|
1187
|
+
statusCode: 423,
|
|
1188
|
+
body: {errorCode: 2423001},
|
|
1189
|
+
};
|
|
1190
|
+
meeting.join = sinon.stub().rejects(error);
|
|
1191
|
+
|
|
1192
|
+
const thrownError = await assert.isRejected(
|
|
1193
|
+
meeting.joinWithMedia({joinOptions, mediaOptions})
|
|
1194
|
+
);
|
|
1195
|
+
|
|
1196
|
+
assert.equal(thrownError, error);
|
|
1197
|
+
assert.calledOnce(meeting.join);
|
|
1198
|
+
assert.calledOnce(generateTurnDiscoveryRequestMessageStub);
|
|
1199
|
+
assert.calledOnce(Metrics.sendBehavioralMetric);
|
|
1200
|
+
assert.calledTwice(suspendDestroyMeetingStub);
|
|
1201
|
+
assert.calledWith(suspendDestroyMeetingStub.firstCall, true);
|
|
1202
|
+
assert.calledWith(suspendDestroyMeetingStub.secondCall, false);
|
|
1203
|
+
});
|
|
1204
|
+
|
|
1205
|
+
it('should still retry if join() fails with another HTTP 423 Locus error', async () => {
|
|
1206
|
+
const error = new Error('Error Joining Meeting');
|
|
1207
|
+
error.error = {
|
|
1208
|
+
statusCode: 423,
|
|
1209
|
+
body: {errorCode: 2423028},
|
|
1210
|
+
};
|
|
1211
|
+
meeting.join = sinon.stub().rejects(error);
|
|
1212
|
+
|
|
1213
|
+
const thrownError = await assert.isRejected(
|
|
1214
|
+
meeting.joinWithMedia({joinOptions, mediaOptions})
|
|
1215
|
+
);
|
|
1216
|
+
|
|
1217
|
+
assert.equal(thrownError, error);
|
|
1218
|
+
assert.calledTwice(meeting.join);
|
|
1219
|
+
assert.calledTwice(generateTurnDiscoveryRequestMessageStub);
|
|
1220
|
+
assert.calledTwice(Metrics.sendBehavioralMetric);
|
|
1221
|
+
});
|
|
1222
|
+
|
|
1223
|
+
it('should throw the Locus user full error over firstError when the retry hits full capacity', async () => {
|
|
1224
|
+
const firstJoinError = new Error('first join error');
|
|
1225
|
+
const capacityError = new Error('Error Joining Meeting');
|
|
1226
|
+
capacityError.error = {
|
|
1227
|
+
statusCode: 423,
|
|
1228
|
+
body: {errorCode: 2423001},
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
meeting.join = sinon
|
|
1232
|
+
.stub()
|
|
1233
|
+
.onFirstCall()
|
|
1234
|
+
.rejects(firstJoinError)
|
|
1235
|
+
.onSecondCall()
|
|
1236
|
+
.rejects(capacityError);
|
|
1237
|
+
meeting.locusUrl = null; // join never succeeds
|
|
1238
|
+
|
|
1239
|
+
const thrownError = await assert.isRejected(
|
|
1240
|
+
meeting.joinWithMedia({joinOptions, mediaOptions})
|
|
1241
|
+
);
|
|
1242
|
+
|
|
1243
|
+
// join() runs once for the first attempt and once for the re-join
|
|
1244
|
+
assert.calledTwice(meeting.join);
|
|
1245
|
+
// the capacity error must take precedence over the stored firstError
|
|
1246
|
+
assert.equal(thrownError, capacityError);
|
|
1247
|
+
|
|
1248
|
+
assert.deepEqual(meeting.joinWithMediaRetryInfo, {
|
|
1249
|
+
retryCount: 0,
|
|
1250
|
+
prevJoinResponse: undefined,
|
|
1251
|
+
firstError: undefined,
|
|
1252
|
+
prevError: undefined,
|
|
1253
|
+
});
|
|
1254
|
+
});
|
|
1255
|
+
|
|
1184
1256
|
it('should re-join on retry when join() fails on first attempt, and throw the first error if join fails again', async () => {
|
|
1185
1257
|
const firstJoinError = new Error('first join error');
|
|
1186
1258
|
const secondJoinError = new Error('second join error');
|
|
@@ -150,6 +150,90 @@ describe('plugin-meetings', () => {
|
|
|
150
150
|
});
|
|
151
151
|
|
|
152
152
|
describe('processNewCaptions', () => {
|
|
153
|
+
const processCaptions = () => processNewCaptions({
|
|
154
|
+
data: fakeVoiceaPayload,
|
|
155
|
+
meeting: fakeMeeting
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
it('should process a final-only caption without an existing interim caption', () => {
|
|
159
|
+
const transcriptData = fakeMeeting.transcription;
|
|
160
|
+
const transcriptId = fakeVoiceaPayload.transcriptId;
|
|
161
|
+
|
|
162
|
+
delete transcriptData.interimCaptions[transcriptId];
|
|
163
|
+
|
|
164
|
+
assert.doesNotThrow(processCaptions);
|
|
165
|
+
|
|
166
|
+
const finalCaption = transcriptData.captions.find(caption => caption.id === transcriptId);
|
|
167
|
+
|
|
168
|
+
assert.exists(finalCaption);
|
|
169
|
+
assert.deepEqual(transcriptData.interimCaptions[transcriptId], []);
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
it('should process an interim caption received after a final caption', () => {
|
|
173
|
+
const transcriptData = fakeMeeting.transcription;
|
|
174
|
+
const transcriptId = fakeVoiceaPayload.transcriptId;
|
|
175
|
+
|
|
176
|
+
delete transcriptData.interimCaptions[transcriptId];
|
|
177
|
+
|
|
178
|
+
assert.doesNotThrow(processCaptions);
|
|
179
|
+
|
|
180
|
+
fakeVoiceaPayload.isFinal = false;
|
|
181
|
+
|
|
182
|
+
assert.doesNotThrow(processCaptions);
|
|
183
|
+
|
|
184
|
+
const speakerId = fakeMeeting.members.membersCollection.members[fakeMemberId].participant.person.id;
|
|
185
|
+
const interimId = `${transcriptId}_${speakerId}`;
|
|
186
|
+
|
|
187
|
+
assert.exists(transcriptData.captions.find(caption => caption.id === transcriptId));
|
|
188
|
+
assert.exists(transcriptData.captions.find(caption => caption.id === interimId));
|
|
189
|
+
assert.deepEqual(transcriptData.interimCaptions[transcriptId], [interimId]);
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
it('should process repeated final captions without throwing', () => {
|
|
193
|
+
const transcriptData = fakeMeeting.transcription;
|
|
194
|
+
const transcriptId = fakeVoiceaPayload.transcriptId;
|
|
195
|
+
|
|
196
|
+
delete transcriptData.interimCaptions[transcriptId];
|
|
197
|
+
|
|
198
|
+
assert.doesNotThrow(() => {
|
|
199
|
+
processCaptions();
|
|
200
|
+
processCaptions();
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
assert.exists(transcriptData.captions.find(caption => caption.id === transcriptId));
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
it('should process a final payload containing transcript entries for multiple CSIs without throwing', () => {
|
|
207
|
+
const transcriptData = fakeMeeting.transcription;
|
|
208
|
+
const transcriptId = fakeVoiceaPayload.transcriptId;
|
|
209
|
+
const firstCsi = 1234867712;
|
|
210
|
+
const secondCsi = 1234867713;
|
|
211
|
+
const secondCaptionText = 'Caption from a second CSI';
|
|
212
|
+
|
|
213
|
+
fakeVoiceaPayload.transcripts = [
|
|
214
|
+
{
|
|
215
|
+
...fakeVoiceaPayload.transcripts[0],
|
|
216
|
+
csis: [firstCsi]
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
text: secondCaptionText,
|
|
220
|
+
csis: [secondCsi],
|
|
221
|
+
transcript_language_code: 'en'
|
|
222
|
+
}
|
|
223
|
+
];
|
|
224
|
+
|
|
225
|
+
assert.doesNotThrow(processCaptions);
|
|
226
|
+
|
|
227
|
+
const finalCaptionTexts = transcriptData.captions
|
|
228
|
+
.filter(caption => caption.id === transcriptId)
|
|
229
|
+
.map(caption => caption.text);
|
|
230
|
+
|
|
231
|
+
assert.deepEqual(finalCaptionTexts, [
|
|
232
|
+
fakeVoiceaPayload.transcripts[0].text,
|
|
233
|
+
secondCaptionText
|
|
234
|
+
]);
|
|
235
|
+
});
|
|
236
|
+
|
|
153
237
|
it('should process new final captions correctly', () => {
|
|
154
238
|
let transcriptData = fakeMeeting.transcription;
|
|
155
239
|
let transcriptId = fakeVoiceaPayload.transcriptId;
|
|
@@ -254,4 +338,4 @@ describe('plugin-meetings', () => {
|
|
|
254
338
|
});
|
|
255
339
|
});
|
|
256
340
|
});
|
|
257
|
-
});
|
|
341
|
+
});
|