@webex/web-client-media-engine 3.5.0 → 3.5.1
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 +11 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +11 -11
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -6552,15 +6552,15 @@ class JmpSession extends EventEmitter$5 {
|
|
|
6552
6552
|
}
|
|
6553
6553
|
receive(jmpMsg) {
|
|
6554
6554
|
if (jmpMsg.mediaContent !== this.mediaContent || jmpMsg.mediaFamily !== this.mediaFamily) {
|
|
6555
|
-
this.logger.error(`JmpMsg ${jmpMsg} sent to incorrect JmpSession`);
|
|
6555
|
+
this.logger.error(`JmpMsg ${JSON.stringify(jmpMsg)} sent to incorrect JmpSession`);
|
|
6556
6556
|
return;
|
|
6557
6557
|
}
|
|
6558
|
-
this.logger.debug(`Received JmpMsg`, jmpMsg);
|
|
6558
|
+
this.logger.debug(`Received JmpMsg`, JSON.stringify(jmpMsg));
|
|
6559
6559
|
const { payload } = jmpMsg;
|
|
6560
6560
|
if (payload.msgType === JmpMsgType.MediaRequest) {
|
|
6561
6561
|
const mediaRequestMsg = payload.payload;
|
|
6562
6562
|
if (!isValidMediaRequestMsg(mediaRequestMsg)) {
|
|
6563
|
-
this.logger.error(`Received invalid MediaRequest:`, mediaRequestMsg);
|
|
6563
|
+
this.logger.error(`Received invalid MediaRequest:`, JSON.stringify(mediaRequestMsg));
|
|
6564
6564
|
return;
|
|
6565
6565
|
}
|
|
6566
6566
|
this.handleIncomingMediaRequest(mediaRequestMsg);
|
|
@@ -6568,7 +6568,7 @@ class JmpSession extends EventEmitter$5 {
|
|
|
6568
6568
|
else if (payload.msgType === JmpMsgType.MediaRequestAck) {
|
|
6569
6569
|
const mediaRequestAckMsg = payload.payload;
|
|
6570
6570
|
if (!isValidMediaRequestAckMsg(mediaRequestAckMsg)) {
|
|
6571
|
-
this.logger.error(`Received invalid MediaRequest ACK:`, mediaRequestAckMsg);
|
|
6571
|
+
this.logger.error(`Received invalid MediaRequest ACK:`, JSON.stringify(mediaRequestAckMsg));
|
|
6572
6572
|
return;
|
|
6573
6573
|
}
|
|
6574
6574
|
this.handleIncomingMediaRequestAck(mediaRequestAckMsg);
|
|
@@ -6576,7 +6576,7 @@ class JmpSession extends EventEmitter$5 {
|
|
|
6576
6576
|
else if (payload.msgType === JmpMsgType.ActiveSpeakerNotification) {
|
|
6577
6577
|
const activeSpeakerNotification = payload.payload;
|
|
6578
6578
|
if (!isValidActiveSpeakerNotificationMsg(activeSpeakerNotification)) {
|
|
6579
|
-
this.logger.info(`Received invalid Active Speaker Notification:`, activeSpeakerNotification);
|
|
6579
|
+
this.logger.info(`Received invalid Active Speaker Notification:`, JSON.stringify(activeSpeakerNotification));
|
|
6580
6580
|
return;
|
|
6581
6581
|
}
|
|
6582
6582
|
this.handleIncomingActiveSpeakerNotification(activeSpeakerNotification);
|
|
@@ -6584,7 +6584,7 @@ class JmpSession extends EventEmitter$5 {
|
|
|
6584
6584
|
else if (payload.msgType === JmpMsgType.SourceAdvertisement) {
|
|
6585
6585
|
const sourceAdvertisement = payload.payload;
|
|
6586
6586
|
if (!isValidSourceAdvertisementMsg(sourceAdvertisement)) {
|
|
6587
|
-
this.logger.error(`Received invalid SourceAdvertisementMsg
|
|
6587
|
+
this.logger.error(`Received invalid SourceAdvertisementMsg:`, JSON.stringify(sourceAdvertisement));
|
|
6588
6588
|
return;
|
|
6589
6589
|
}
|
|
6590
6590
|
this.handleIncomingSourceAdvertisement(sourceAdvertisement);
|
|
@@ -6592,7 +6592,7 @@ class JmpSession extends EventEmitter$5 {
|
|
|
6592
6592
|
else if (payload.msgType === JmpMsgType.SourceAdvertisementAck) {
|
|
6593
6593
|
const sourceAdvertisementAck = payload.payload;
|
|
6594
6594
|
if (!isValidSourceAdvertisementAckMsg(sourceAdvertisementAck)) {
|
|
6595
|
-
this.logger.error(`Received invalid SourceAdvertisementAckMsg
|
|
6595
|
+
this.logger.error(`Received invalid SourceAdvertisementAckMsg:`, JSON.stringify(sourceAdvertisementAck));
|
|
6596
6596
|
return;
|
|
6597
6597
|
}
|
|
6598
6598
|
this.handleIncomingSourceAdvertisementAck(sourceAdvertisementAck);
|
|
@@ -6600,7 +6600,7 @@ class JmpSession extends EventEmitter$5 {
|
|
|
6600
6600
|
else if (payload.msgType === JmpMsgType.MediaRequestStatus) {
|
|
6601
6601
|
const mediaRequestStatus = payload.payload;
|
|
6602
6602
|
if (!isValidMediaRequestStatusMsg(mediaRequestStatus)) {
|
|
6603
|
-
this.logger.error(`Received invalid MediaRequestStatusMsg
|
|
6603
|
+
this.logger.error(`Received invalid MediaRequestStatusMsg:`, JSON.stringify(mediaRequestStatus));
|
|
6604
6604
|
return;
|
|
6605
6605
|
}
|
|
6606
6606
|
this.handleIncomingMediaRequestStatus(mediaRequestStatus);
|
|
@@ -6608,7 +6608,7 @@ class JmpSession extends EventEmitter$5 {
|
|
|
6608
6608
|
else if (payload.msgType === JmpMsgType.MediaRequestStatusAck) {
|
|
6609
6609
|
const mediaRequestStatusAck = payload.payload;
|
|
6610
6610
|
if (!isValidMediaRequestStatusAckMsg(mediaRequestStatusAck)) {
|
|
6611
|
-
this.logger.error(`Received invalid MediaRequestStatusAckMsg
|
|
6611
|
+
this.logger.error(`Received invalid MediaRequestStatusAckMsg:`, JSON.stringify(mediaRequestStatusAck));
|
|
6612
6612
|
return;
|
|
6613
6613
|
}
|
|
6614
6614
|
this.handleIncomingMediaRequestStatusAck(mediaRequestStatusAck);
|
|
@@ -14006,7 +14006,7 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14006
14006
|
logger.error(`Error parsing datachannel JSON: ${err}`);
|
|
14007
14007
|
return;
|
|
14008
14008
|
}
|
|
14009
|
-
logger.debug('DataChannel got msg:
|
|
14009
|
+
logger.debug('DataChannel got msg:', e.data);
|
|
14010
14010
|
const homerMsg = HomerMsg.fromJson(parsed);
|
|
14011
14011
|
if (!homerMsg) {
|
|
14012
14012
|
logger.error(`Received invalid datachannel message: ${e}`);
|
|
@@ -14014,7 +14014,7 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14014
14014
|
}
|
|
14015
14015
|
const jmpMsg = homerMsg.payload;
|
|
14016
14016
|
if (!isValidJmpMsg(jmpMsg)) {
|
|
14017
|
-
logger.error(`Received invalid JMP msg: ${jmpMsg}`);
|
|
14017
|
+
logger.error(`Received invalid JMP msg: ${JSON.stringify(jmpMsg)}`);
|
|
14018
14018
|
return;
|
|
14019
14019
|
}
|
|
14020
14020
|
const mediaType = getMediaType(jmpMsg.mediaFamily, jmpMsg.mediaContent);
|