@webex/internal-media-core 0.0.6-beta → 0.0.7-beta
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/cjs/index.js +25 -32
- package/dist/esm/index.js +25 -32
- package/dist/types/Media/Effects/BNR/Bnr.d.ts.map +1 -1
- package/dist/types/MediaConnection/RoapMediaConnection.d.ts.map +1 -1
- package/dist/types/MediaConnection/roap.typegen.d.ts +29 -29
- package/dist/types/MediaConnection/roap.typegen.d.ts.map +1 -1
- package/package.json +2 -3
package/dist/cjs/index.js
CHANGED
|
@@ -14158,9 +14158,16 @@ class RoapMediaConnection extends EventEmitter {
|
|
|
14158
14158
|
roapMessageReceived(roapMessage) {
|
|
14159
14159
|
this.log('roapMessageReceived()', "called with messageType=".concat(roapMessage.messageType, ", seq=").concat(roapMessage.seq));
|
|
14160
14160
|
|
|
14161
|
-
if (!this.sdpNegotiationStarted
|
|
14162
|
-
|
|
14163
|
-
|
|
14161
|
+
if (!this.sdpNegotiationStarted) {
|
|
14162
|
+
if (roapMessage.messageType === 'OFFER') {
|
|
14163
|
+
this.sdpNegotiationStarted = true;
|
|
14164
|
+
this.mediaConnection.initializeTransceivers(true);
|
|
14165
|
+
}
|
|
14166
|
+
|
|
14167
|
+
if (roapMessage.messageType === 'OFFER_REQUEST') {
|
|
14168
|
+
this.sdpNegotiationStarted = true;
|
|
14169
|
+
this.mediaConnection.initializeTransceivers(false);
|
|
14170
|
+
}
|
|
14164
14171
|
}
|
|
14165
14172
|
|
|
14166
14173
|
this.roap.roapMessageReceived(roapMessage);
|
|
@@ -14283,7 +14290,6 @@ function _enableBNR() {
|
|
|
14283
14290
|
isValidTrack(track);
|
|
14284
14291
|
var streamFromTrack = new MediaStream();
|
|
14285
14292
|
streamFromTrack.addTrack(track);
|
|
14286
|
-
var audioContext;
|
|
14287
14293
|
var workletNode;
|
|
14288
14294
|
logger.info({
|
|
14289
14295
|
ID: track.id,
|
|
@@ -14291,44 +14297,30 @@ function _enableBNR() {
|
|
|
14291
14297
|
action: 'enableBNR()',
|
|
14292
14298
|
description: 'Checking if BNR module is present already'
|
|
14293
14299
|
});
|
|
14300
|
+
var oldDestinationTrack = bnrProcessor.destinationTrack;
|
|
14294
14301
|
|
|
14295
|
-
if (
|
|
14296
|
-
|
|
14297
|
-
|
|
14298
|
-
|
|
14299
|
-
action: 'enableBNR()',
|
|
14300
|
-
description: 'BNR module is not present already'
|
|
14301
|
-
});
|
|
14302
|
-
audioContext = yield loadProcessor();
|
|
14303
|
-
} else {
|
|
14304
|
-
logger.debug({
|
|
14302
|
+
if (oldDestinationTrack && track.id === oldDestinationTrack.id) {
|
|
14303
|
+
var oldTrackErrorMsg = 'BNR is enabled on the track already';
|
|
14304
|
+
var oldTrackError = new Error(oldTrackErrorMsg);
|
|
14305
|
+
logger.error({
|
|
14305
14306
|
ID: track.id,
|
|
14306
14307
|
mediaType: MEDIA_STREAM_TRACK,
|
|
14307
14308
|
action: 'enableBNR()',
|
|
14308
|
-
description:
|
|
14309
|
+
description: oldTrackErrorMsg,
|
|
14310
|
+
error: oldTrackError
|
|
14309
14311
|
});
|
|
14310
|
-
|
|
14311
|
-
|
|
14312
|
-
if (track.id === oldDestinationTrack.id) {
|
|
14313
|
-
var oldTrackErrorMsg = 'BNR is enabled on the track already';
|
|
14314
|
-
var oldTrackError = new Error(oldTrackErrorMsg);
|
|
14315
|
-
logger.error({
|
|
14316
|
-
ID: track.id,
|
|
14317
|
-
mediaType: MEDIA_STREAM_TRACK,
|
|
14318
|
-
action: 'enableBNR()',
|
|
14319
|
-
description: oldTrackErrorMsg,
|
|
14320
|
-
error: oldTrackError
|
|
14321
|
-
});
|
|
14322
|
-
throw oldTrackError;
|
|
14323
|
-
}
|
|
14312
|
+
throw oldTrackError;
|
|
14313
|
+
}
|
|
14324
14314
|
|
|
14325
|
-
|
|
14315
|
+
if (bnrProcessor.isModuleAdded) {
|
|
14316
|
+
logger.debug({
|
|
14326
14317
|
ID: track.id,
|
|
14327
14318
|
mediaType: MEDIA_STREAM_TRACK,
|
|
14328
14319
|
action: 'enableBNR()',
|
|
14329
|
-
description: '
|
|
14320
|
+
description: 'Disposing existing BNR module'
|
|
14330
14321
|
});
|
|
14331
|
-
|
|
14322
|
+
workletNode = bnrProcessor.workletNode;
|
|
14323
|
+
workletNode.port.postMessage('DISPOSE');
|
|
14332
14324
|
}
|
|
14333
14325
|
|
|
14334
14326
|
logger.info({
|
|
@@ -14337,6 +14329,7 @@ function _enableBNR() {
|
|
|
14337
14329
|
action: 'enableBNR()',
|
|
14338
14330
|
description: 'Creating worklet node, connecting source and destination streams'
|
|
14339
14331
|
});
|
|
14332
|
+
var audioContext = yield loadProcessor();
|
|
14340
14333
|
workletNode = bnrProcessor.workletNode;
|
|
14341
14334
|
workletNode.port.postMessage('ENABLE');
|
|
14342
14335
|
bnrProcessor.sourceNode = audioContext.createMediaStreamSource(streamFromTrack);
|
package/dist/esm/index.js
CHANGED
|
@@ -14147,9 +14147,16 @@ class RoapMediaConnection extends EventEmitter {
|
|
|
14147
14147
|
roapMessageReceived(roapMessage) {
|
|
14148
14148
|
this.log('roapMessageReceived()', "called with messageType=".concat(roapMessage.messageType, ", seq=").concat(roapMessage.seq));
|
|
14149
14149
|
|
|
14150
|
-
if (!this.sdpNegotiationStarted
|
|
14151
|
-
|
|
14152
|
-
|
|
14150
|
+
if (!this.sdpNegotiationStarted) {
|
|
14151
|
+
if (roapMessage.messageType === 'OFFER') {
|
|
14152
|
+
this.sdpNegotiationStarted = true;
|
|
14153
|
+
this.mediaConnection.initializeTransceivers(true);
|
|
14154
|
+
}
|
|
14155
|
+
|
|
14156
|
+
if (roapMessage.messageType === 'OFFER_REQUEST') {
|
|
14157
|
+
this.sdpNegotiationStarted = true;
|
|
14158
|
+
this.mediaConnection.initializeTransceivers(false);
|
|
14159
|
+
}
|
|
14153
14160
|
}
|
|
14154
14161
|
|
|
14155
14162
|
this.roap.roapMessageReceived(roapMessage);
|
|
@@ -14272,7 +14279,6 @@ function _enableBNR() {
|
|
|
14272
14279
|
isValidTrack(track);
|
|
14273
14280
|
var streamFromTrack = new MediaStream();
|
|
14274
14281
|
streamFromTrack.addTrack(track);
|
|
14275
|
-
var audioContext;
|
|
14276
14282
|
var workletNode;
|
|
14277
14283
|
logger.info({
|
|
14278
14284
|
ID: track.id,
|
|
@@ -14280,44 +14286,30 @@ function _enableBNR() {
|
|
|
14280
14286
|
action: 'enableBNR()',
|
|
14281
14287
|
description: 'Checking if BNR module is present already'
|
|
14282
14288
|
});
|
|
14289
|
+
var oldDestinationTrack = bnrProcessor.destinationTrack;
|
|
14283
14290
|
|
|
14284
|
-
if (
|
|
14285
|
-
|
|
14286
|
-
|
|
14287
|
-
|
|
14288
|
-
action: 'enableBNR()',
|
|
14289
|
-
description: 'BNR module is not present already'
|
|
14290
|
-
});
|
|
14291
|
-
audioContext = yield loadProcessor();
|
|
14292
|
-
} else {
|
|
14293
|
-
logger.debug({
|
|
14291
|
+
if (oldDestinationTrack && track.id === oldDestinationTrack.id) {
|
|
14292
|
+
var oldTrackErrorMsg = 'BNR is enabled on the track already';
|
|
14293
|
+
var oldTrackError = new Error(oldTrackErrorMsg);
|
|
14294
|
+
logger.error({
|
|
14294
14295
|
ID: track.id,
|
|
14295
14296
|
mediaType: MEDIA_STREAM_TRACK,
|
|
14296
14297
|
action: 'enableBNR()',
|
|
14297
|
-
description:
|
|
14298
|
+
description: oldTrackErrorMsg,
|
|
14299
|
+
error: oldTrackError
|
|
14298
14300
|
});
|
|
14299
|
-
|
|
14300
|
-
|
|
14301
|
-
if (track.id === oldDestinationTrack.id) {
|
|
14302
|
-
var oldTrackErrorMsg = 'BNR is enabled on the track already';
|
|
14303
|
-
var oldTrackError = new Error(oldTrackErrorMsg);
|
|
14304
|
-
logger.error({
|
|
14305
|
-
ID: track.id,
|
|
14306
|
-
mediaType: MEDIA_STREAM_TRACK,
|
|
14307
|
-
action: 'enableBNR()',
|
|
14308
|
-
description: oldTrackErrorMsg,
|
|
14309
|
-
error: oldTrackError
|
|
14310
|
-
});
|
|
14311
|
-
throw oldTrackError;
|
|
14312
|
-
}
|
|
14301
|
+
throw oldTrackError;
|
|
14302
|
+
}
|
|
14313
14303
|
|
|
14314
|
-
|
|
14304
|
+
if (bnrProcessor.isModuleAdded) {
|
|
14305
|
+
logger.debug({
|
|
14315
14306
|
ID: track.id,
|
|
14316
14307
|
mediaType: MEDIA_STREAM_TRACK,
|
|
14317
14308
|
action: 'enableBNR()',
|
|
14318
|
-
description: '
|
|
14309
|
+
description: 'Disposing existing BNR module'
|
|
14319
14310
|
});
|
|
14320
|
-
|
|
14311
|
+
workletNode = bnrProcessor.workletNode;
|
|
14312
|
+
workletNode.port.postMessage('DISPOSE');
|
|
14321
14313
|
}
|
|
14322
14314
|
|
|
14323
14315
|
logger.info({
|
|
@@ -14326,6 +14318,7 @@ function _enableBNR() {
|
|
|
14326
14318
|
action: 'enableBNR()',
|
|
14327
14319
|
description: 'Creating worklet node, connecting source and destination streams'
|
|
14328
14320
|
});
|
|
14321
|
+
var audioContext = yield loadProcessor();
|
|
14329
14322
|
workletNode = bnrProcessor.workletNode;
|
|
14330
14323
|
workletNode.port.postMessage('ENABLE');
|
|
14331
14324
|
bnrProcessor.sourceNode = audioContext.createMediaStreamSource(streamFromTrack);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bnr.d.ts","sourceRoot":"","sources":["../../../../../src/Media/Effects/BNR/Bnr.ts"],"names":[],"mappings":"AA0BA,iBAAS,YAAY,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAwCtD;AAmCD,iBAAe,SAAS,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"Bnr.d.ts","sourceRoot":"","sources":["../../../../../src/Media/Effects/BNR/Bnr.ts"],"names":[],"mappings":"AA0BA,iBAAS,YAAY,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,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O,CAAC,EAAE,MAAM;IAkBlB,OAAO,CAAC,GAAG;IAIX,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,qBAAqB;IAiB7B,OAAO,CAAC,UAAU;IA6BX,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAmB9B,KAAK,IAAI,IAAI;IAOpB,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,eAAe;IAgBhB,SAAS,CAAC,aAAa,UAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAqC9C,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAuBrD,oBAAoB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IA4B5D,wBAAwB,CAAC,OAAO,EAAE;QACvC,IAAI,EAAE,WAAW,CAAC;QAClB,OAAO,EAAE,cAAc,CAAC;KACzB,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBV,kBAAkB,IAAI,eAAe;IAMrC,QAAQ,IAAI,OAAO,CAAC,cAAc,CAAC;IAMnC,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAoBhD,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI;IAazE,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAwB1D,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,kBAAkB;CAG3B"}
|
|
@@ -9,15 +9,20 @@ export interface Typegen0 {
|
|
|
9
9
|
data: unknown;
|
|
10
10
|
__tip: 'See the XState TS docs to learn how to strongly type this.';
|
|
11
11
|
};
|
|
12
|
-
'error.platform.roap.creatingLocalOffer:invocation[0]': {
|
|
13
|
-
type: 'error.platform.roap.creatingLocalOffer:invocation[0]';
|
|
14
|
-
data: unknown;
|
|
15
|
-
};
|
|
16
12
|
'done.invoke.roap.settingRemoteAnswer:invocation[0]': {
|
|
17
13
|
type: 'done.invoke.roap.settingRemoteAnswer:invocation[0]';
|
|
18
14
|
data: unknown;
|
|
19
15
|
__tip: 'See the XState TS docs to learn how to strongly type this.';
|
|
20
16
|
};
|
|
17
|
+
'done.invoke.roap.settingRemoteOffer:invocation[0]': {
|
|
18
|
+
type: 'done.invoke.roap.settingRemoteOffer:invocation[0]';
|
|
19
|
+
data: unknown;
|
|
20
|
+
__tip: 'See the XState TS docs to learn how to strongly type this.';
|
|
21
|
+
};
|
|
22
|
+
'error.platform.roap.creatingLocalOffer:invocation[0]': {
|
|
23
|
+
type: 'error.platform.roap.creatingLocalOffer:invocation[0]';
|
|
24
|
+
data: unknown;
|
|
25
|
+
};
|
|
21
26
|
'error.platform.roap.settingRemoteAnswer:invocation[0]': {
|
|
22
27
|
type: 'error.platform.roap.settingRemoteAnswer:invocation[0]';
|
|
23
28
|
data: unknown;
|
|
@@ -26,11 +31,6 @@ export interface Typegen0 {
|
|
|
26
31
|
type: 'error.platform.roap.settingRemoteOffer:invocation[0]';
|
|
27
32
|
data: unknown;
|
|
28
33
|
};
|
|
29
|
-
'done.invoke.roap.settingRemoteOffer:invocation[0]': {
|
|
30
|
-
type: 'done.invoke.roap.settingRemoteOffer:invocation[0]';
|
|
31
|
-
data: unknown;
|
|
32
|
-
__tip: 'See the XState TS docs to learn how to strongly type this.';
|
|
33
|
-
};
|
|
34
34
|
'xstate.init': {
|
|
35
35
|
type: 'xstate.init';
|
|
36
36
|
};
|
|
@@ -47,42 +47,42 @@ export interface Typegen0 {
|
|
|
47
47
|
delays: never;
|
|
48
48
|
};
|
|
49
49
|
eventsCausingActions: {
|
|
50
|
-
increaseSeq: 'INITIATE_OFFER' | '' | 'ERROR_ARRIVED';
|
|
51
|
-
sendStartedEvent: 'INITIATE_OFFER' | 'REMOTE_OFFER_ARRIVED' | 'REMOTE_OFFER_REQUEST_ARRIVED' | '';
|
|
52
|
-
sendOutOfOrderError: 'REMOTE_OFFER_ARRIVED' | 'REMOTE_OFFER_REQUEST_ARRIVED';
|
|
53
|
-
updateSeq: 'REMOTE_OFFER_ARRIVED' | 'REMOTE_OFFER_REQUEST_ARRIVED' | 'REMOTE_ANSWER_ARRIVED' | 'REMOTE_OK_ARRIVED';
|
|
54
|
-
setOfferRequestFlag: 'REMOTE_OFFER_REQUEST_ARRIVED';
|
|
55
|
-
ignoreDuplicate: 'REMOTE_ANSWER_ARRIVED' | 'REMOTE_OFFER_REQUEST_ARRIVED' | 'REMOTE_OFFER_ARRIVED';
|
|
56
|
-
sendInvalidStateError: 'REMOTE_ANSWER_ARRIVED' | 'REMOTE_OK_ARRIVED' | 'REMOTE_OFFER_ARRIVED' | 'REMOTE_OFFER_REQUEST_ARRIVED';
|
|
57
|
-
sendRoapOfferResponseMessage: 'done.invoke.roap.creatingLocalOffer:invocation[0]';
|
|
58
|
-
resolvePendingInitiateOfferPromises: 'done.invoke.roap.creatingLocalOffer:invocation[0]';
|
|
59
|
-
sendRoapOfferMessage: 'done.invoke.roap.creatingLocalOffer:invocation[0]';
|
|
60
|
-
rejectPendingInitiateOfferPromises: 'error.platform.roap.creatingLocalOffer:invocation[0]';
|
|
61
50
|
enqueueNewOfferCreation: 'INITIATE_OFFER';
|
|
62
51
|
handleGlare: 'REMOTE_OFFER_ARRIVED' | 'REMOTE_OFFER_REQUEST_ARRIVED';
|
|
63
|
-
|
|
52
|
+
ignoreDuplicate: 'REMOTE_ANSWER_ARRIVED' | 'REMOTE_OFFER_ARRIVED' | 'REMOTE_OFFER_REQUEST_ARRIVED';
|
|
64
53
|
increaseRetryCounter: 'ERROR_ARRIVED';
|
|
65
|
-
|
|
54
|
+
increaseSeq: '' | 'ERROR_ARRIVED' | 'INITIATE_OFFER';
|
|
55
|
+
rejectPendingInitiateOfferPromises: 'error.platform.roap.creatingLocalOffer:invocation[0]';
|
|
66
56
|
resetOfferRequestFlag: 'done.invoke.roap.settingRemoteAnswer:invocation[0]';
|
|
67
|
-
|
|
57
|
+
resetPendingLocalOffer: '' | 'ERROR_ARRIVED' | 'INITIATE_OFFER' | 'REMOTE_OFFER_REQUEST_ARRIVED' | 'done.invoke.roap.creatingLocalOffer:invocation[0]';
|
|
58
|
+
resetRetryCounter: 'REMOTE_ANSWER_ARRIVED';
|
|
59
|
+
resolvePendingInitiateOfferPromises: 'done.invoke.roap.creatingLocalOffer:invocation[0]';
|
|
60
|
+
sendDoneEvent: 'REMOTE_OK_ARRIVED' | 'done.invoke.roap.settingRemoteAnswer:invocation[0]';
|
|
68
61
|
sendGenericError: 'error.platform.roap.settingRemoteAnswer:invocation[0]' | 'error.platform.roap.settingRemoteOffer:invocation[0]';
|
|
69
|
-
|
|
62
|
+
sendInvalidStateError: 'REMOTE_ANSWER_ARRIVED' | 'REMOTE_OFFER_ARRIVED' | 'REMOTE_OFFER_REQUEST_ARRIVED' | 'REMOTE_OK_ARRIVED';
|
|
63
|
+
sendOutOfOrderError: 'REMOTE_OFFER_ARRIVED' | 'REMOTE_OFFER_REQUEST_ARRIVED';
|
|
70
64
|
sendRetryAfterError: 'REMOTE_OFFER_ARRIVED';
|
|
71
|
-
|
|
65
|
+
sendRoapAnswerMessage: 'done.invoke.roap.settingRemoteOffer:invocation[0]';
|
|
66
|
+
sendRoapOKMessage: 'done.invoke.roap.settingRemoteAnswer:invocation[0]';
|
|
67
|
+
sendRoapOfferMessage: 'done.invoke.roap.creatingLocalOffer:invocation[0]';
|
|
68
|
+
sendRoapOfferResponseMessage: 'done.invoke.roap.creatingLocalOffer:invocation[0]';
|
|
69
|
+
sendStartedEvent: '' | 'INITIATE_OFFER' | 'REMOTE_OFFER_ARRIVED' | 'REMOTE_OFFER_REQUEST_ARRIVED';
|
|
70
|
+
setOfferRequestFlag: 'REMOTE_OFFER_REQUEST_ARRIVED';
|
|
71
|
+
updateSeq: 'REMOTE_ANSWER_ARRIVED' | 'REMOTE_OFFER_ARRIVED' | 'REMOTE_OFFER_REQUEST_ARRIVED' | 'REMOTE_OK_ARRIVED';
|
|
72
72
|
};
|
|
73
73
|
eventsCausingServices: {
|
|
74
|
-
createLocalOffer: '
|
|
74
|
+
createLocalOffer: '' | 'ERROR_ARRIVED' | 'INITIATE_OFFER' | 'REMOTE_OFFER_REQUEST_ARRIVED' | 'done.invoke.roap.creatingLocalOffer:invocation[0]';
|
|
75
75
|
handleRemoteAnswer: 'REMOTE_ANSWER_ARRIVED';
|
|
76
76
|
handleRemoteOffer: 'REMOTE_OFFER_ARRIVED';
|
|
77
77
|
};
|
|
78
78
|
eventsCausingGuards: {
|
|
79
|
-
|
|
79
|
+
isHandlingOfferRequest: 'REMOTE_OFFER_REQUEST_ARRIVED' | 'done.invoke.roap.creatingLocalOffer:invocation[0]';
|
|
80
80
|
isPendingLocalOffer: '' | 'done.invoke.roap.creatingLocalOffer:invocation[0]';
|
|
81
|
-
|
|
81
|
+
isSameSeq: 'ERROR_ARRIVED' | 'REMOTE_ANSWER_ARRIVED' | 'REMOTE_OFFER_ARRIVED' | 'REMOTE_OFFER_REQUEST_ARRIVED';
|
|
82
82
|
shouldErrorTriggerOfferRetry: 'ERROR_ARRIVED';
|
|
83
83
|
};
|
|
84
84
|
eventsCausingDelays: {};
|
|
85
|
-
matchesStates: 'browserError' | '
|
|
85
|
+
matchesStates: 'browserError' | 'creatingLocalOffer' | 'idle' | 'remoteError' | 'settingRemoteAnswer' | 'settingRemoteOffer' | 'waitingForAnswer' | 'waitingForOK';
|
|
86
86
|
tags: never;
|
|
87
87
|
}
|
|
88
88
|
//# sourceMappingURL=roap.typegen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roap.typegen.d.ts","sourceRoot":"","sources":["../../../src/MediaConnection/roap.typegen.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,QAAQ;IACvB,kBAAkB,EAAE,IAAI,CAAC;IACzB,cAAc,EAAE;QACd,EAAE,EAAE;YAAC,IAAI,EAAE,EAAE,CAAA;SAAC,CAAC;QACf,mDAAmD,EAAE;YACnD,IAAI,EAAE,mDAAmD,CAAC;YAC1D,IAAI,EAAE,OAAO,CAAC;YACd,KAAK,EAAE,4DAA4D,CAAC;SACrE,CAAC;QACF,
|
|
1
|
+
{"version":3,"file":"roap.typegen.d.ts","sourceRoot":"","sources":["../../../src/MediaConnection/roap.typegen.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,QAAQ;IACvB,kBAAkB,EAAE,IAAI,CAAC;IACzB,cAAc,EAAE;QACd,EAAE,EAAE;YAAC,IAAI,EAAE,EAAE,CAAA;SAAC,CAAC;QACf,mDAAmD,EAAE;YACnD,IAAI,EAAE,mDAAmD,CAAC;YAC1D,IAAI,EAAE,OAAO,CAAC;YACd,KAAK,EAAE,4DAA4D,CAAC;SACrE,CAAC;QACF,oDAAoD,EAAE;YACpD,IAAI,EAAE,oDAAoD,CAAC;YAC3D,IAAI,EAAE,OAAO,CAAC;YACd,KAAK,EAAE,4DAA4D,CAAC;SACrE,CAAC;QACF,mDAAmD,EAAE;YACnD,IAAI,EAAE,mDAAmD,CAAC;YAC1D,IAAI,EAAE,OAAO,CAAC;YACd,KAAK,EAAE,4DAA4D,CAAC;SACrE,CAAC;QACF,sDAAsD,EAAE;YACtD,IAAI,EAAE,sDAAsD,CAAC;YAC7D,IAAI,EAAE,OAAO,CAAC;SACf,CAAC;QACF,uDAAuD,EAAE;YACvD,IAAI,EAAE,uDAAuD,CAAC;YAC9D,IAAI,EAAE,OAAO,CAAC;SACf,CAAC;QACF,sDAAsD,EAAE;YACtD,IAAI,EAAE,sDAAsD,CAAC;YAC7D,IAAI,EAAE,OAAO,CAAC;SACf,CAAC;QACF,aAAa,EAAE;YAAC,IAAI,EAAE,aAAa,CAAA;SAAC,CAAC;KACtC,CAAC;IACF,gBAAgB,EAAE;QAChB,gBAAgB,EAAE,mDAAmD,CAAC;QACtE,kBAAkB,EAAE,oDAAo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,sBAAsB,GACtB,8BAA8B,GAC9B,mBAAmB,CAAC;KACzB,CAAC;IACF,qBAAqB,EAAE;QACrB,gBAAgB,EACZ,EAAE,GACF,eAAe,GACf,gBAAgB,GAChB,8BAA8B,GAC9B,mDAAmD,CAAC;QACxD,kBAAkB,EAAE,uBAAuB,CAAC;QAC5C,iBAAiB,EAAE,sBAAsB,CAAC;KAC3C,CAAC;IACF,mBAAmB,EAAE;QACnB,sBAAsB,EAClB,8BAA8B,GAC9B,mDAAmD,CAAC;QACxD,mBAAmB,EAAE,EAAE,GAAG,mDAAmD,CAAC;QAC9E,SAAS,EACL,eAAe,GACf,uBAAuB,GACvB,sBAAsB,GACtB,8BAA8B,CAAC;QACnC,4BAA4B,EAAE,eAAe,CAAC;KAC/C,CAAC;IACF,mBAAmB,EAAE,EAAE,CAAC;IACxB,aAAa,EACT,cAAc,GACd,oBAAoB,GACpB,MAAM,GACN,aAAa,GACb,qBAAqB,GACrB,oBAAoB,GACpB,kBAAkB,GAClB,cAAc,CAAC;IACnB,IAAI,EAAE,KAAK,CAAC;CACb"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/internal-media-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7-beta",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/cjs",
|
|
6
6
|
"dist/esm",
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
"node": ">=14.x"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
|
-
"registry": "https://registry.npmjs.org/"
|
|
26
|
-
"access": "public"
|
|
25
|
+
"registry": "https://registry.npmjs.org/"
|
|
27
26
|
},
|
|
28
27
|
"scripts": {
|
|
29
28
|
"prebuild": "rimraf dist",
|