@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/cjs/index.js
CHANGED
|
@@ -6556,15 +6556,15 @@ class JmpSession extends events$3.EventEmitter {
|
|
|
6556
6556
|
}
|
|
6557
6557
|
receive(jmpMsg) {
|
|
6558
6558
|
if (jmpMsg.mediaContent !== this.mediaContent || jmpMsg.mediaFamily !== this.mediaFamily) {
|
|
6559
|
-
this.logger.error(`JmpMsg ${jmpMsg} sent to incorrect JmpSession`);
|
|
6559
|
+
this.logger.error(`JmpMsg ${JSON.stringify(jmpMsg)} sent to incorrect JmpSession`);
|
|
6560
6560
|
return;
|
|
6561
6561
|
}
|
|
6562
|
-
this.logger.debug(`Received JmpMsg`, jmpMsg);
|
|
6562
|
+
this.logger.debug(`Received JmpMsg`, JSON.stringify(jmpMsg));
|
|
6563
6563
|
const { payload } = jmpMsg;
|
|
6564
6564
|
if (payload.msgType === JmpMsgType.MediaRequest) {
|
|
6565
6565
|
const mediaRequestMsg = payload.payload;
|
|
6566
6566
|
if (!isValidMediaRequestMsg(mediaRequestMsg)) {
|
|
6567
|
-
this.logger.error(`Received invalid MediaRequest:`, mediaRequestMsg);
|
|
6567
|
+
this.logger.error(`Received invalid MediaRequest:`, JSON.stringify(mediaRequestMsg));
|
|
6568
6568
|
return;
|
|
6569
6569
|
}
|
|
6570
6570
|
this.handleIncomingMediaRequest(mediaRequestMsg);
|
|
@@ -6572,7 +6572,7 @@ class JmpSession extends events$3.EventEmitter {
|
|
|
6572
6572
|
else if (payload.msgType === JmpMsgType.MediaRequestAck) {
|
|
6573
6573
|
const mediaRequestAckMsg = payload.payload;
|
|
6574
6574
|
if (!isValidMediaRequestAckMsg(mediaRequestAckMsg)) {
|
|
6575
|
-
this.logger.error(`Received invalid MediaRequest ACK:`, mediaRequestAckMsg);
|
|
6575
|
+
this.logger.error(`Received invalid MediaRequest ACK:`, JSON.stringify(mediaRequestAckMsg));
|
|
6576
6576
|
return;
|
|
6577
6577
|
}
|
|
6578
6578
|
this.handleIncomingMediaRequestAck(mediaRequestAckMsg);
|
|
@@ -6580,7 +6580,7 @@ class JmpSession extends events$3.EventEmitter {
|
|
|
6580
6580
|
else if (payload.msgType === JmpMsgType.ActiveSpeakerNotification) {
|
|
6581
6581
|
const activeSpeakerNotification = payload.payload;
|
|
6582
6582
|
if (!isValidActiveSpeakerNotificationMsg(activeSpeakerNotification)) {
|
|
6583
|
-
this.logger.info(`Received invalid Active Speaker Notification:`, activeSpeakerNotification);
|
|
6583
|
+
this.logger.info(`Received invalid Active Speaker Notification:`, JSON.stringify(activeSpeakerNotification));
|
|
6584
6584
|
return;
|
|
6585
6585
|
}
|
|
6586
6586
|
this.handleIncomingActiveSpeakerNotification(activeSpeakerNotification);
|
|
@@ -6588,7 +6588,7 @@ class JmpSession extends events$3.EventEmitter {
|
|
|
6588
6588
|
else if (payload.msgType === JmpMsgType.SourceAdvertisement) {
|
|
6589
6589
|
const sourceAdvertisement = payload.payload;
|
|
6590
6590
|
if (!isValidSourceAdvertisementMsg(sourceAdvertisement)) {
|
|
6591
|
-
this.logger.error(`Received invalid SourceAdvertisementMsg
|
|
6591
|
+
this.logger.error(`Received invalid SourceAdvertisementMsg:`, JSON.stringify(sourceAdvertisement));
|
|
6592
6592
|
return;
|
|
6593
6593
|
}
|
|
6594
6594
|
this.handleIncomingSourceAdvertisement(sourceAdvertisement);
|
|
@@ -6596,7 +6596,7 @@ class JmpSession extends events$3.EventEmitter {
|
|
|
6596
6596
|
else if (payload.msgType === JmpMsgType.SourceAdvertisementAck) {
|
|
6597
6597
|
const sourceAdvertisementAck = payload.payload;
|
|
6598
6598
|
if (!isValidSourceAdvertisementAckMsg(sourceAdvertisementAck)) {
|
|
6599
|
-
this.logger.error(`Received invalid SourceAdvertisementAckMsg
|
|
6599
|
+
this.logger.error(`Received invalid SourceAdvertisementAckMsg:`, JSON.stringify(sourceAdvertisementAck));
|
|
6600
6600
|
return;
|
|
6601
6601
|
}
|
|
6602
6602
|
this.handleIncomingSourceAdvertisementAck(sourceAdvertisementAck);
|
|
@@ -6604,7 +6604,7 @@ class JmpSession extends events$3.EventEmitter {
|
|
|
6604
6604
|
else if (payload.msgType === JmpMsgType.MediaRequestStatus) {
|
|
6605
6605
|
const mediaRequestStatus = payload.payload;
|
|
6606
6606
|
if (!isValidMediaRequestStatusMsg(mediaRequestStatus)) {
|
|
6607
|
-
this.logger.error(`Received invalid MediaRequestStatusMsg
|
|
6607
|
+
this.logger.error(`Received invalid MediaRequestStatusMsg:`, JSON.stringify(mediaRequestStatus));
|
|
6608
6608
|
return;
|
|
6609
6609
|
}
|
|
6610
6610
|
this.handleIncomingMediaRequestStatus(mediaRequestStatus);
|
|
@@ -6612,7 +6612,7 @@ class JmpSession extends events$3.EventEmitter {
|
|
|
6612
6612
|
else if (payload.msgType === JmpMsgType.MediaRequestStatusAck) {
|
|
6613
6613
|
const mediaRequestStatusAck = payload.payload;
|
|
6614
6614
|
if (!isValidMediaRequestStatusAckMsg(mediaRequestStatusAck)) {
|
|
6615
|
-
this.logger.error(`Received invalid MediaRequestStatusAckMsg
|
|
6615
|
+
this.logger.error(`Received invalid MediaRequestStatusAckMsg:`, JSON.stringify(mediaRequestStatusAck));
|
|
6616
6616
|
return;
|
|
6617
6617
|
}
|
|
6618
6618
|
this.handleIncomingMediaRequestStatusAck(mediaRequestStatusAck);
|
|
@@ -14010,7 +14010,7 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14010
14010
|
logger.error(`Error parsing datachannel JSON: ${err}`);
|
|
14011
14011
|
return;
|
|
14012
14012
|
}
|
|
14013
|
-
logger.debug('DataChannel got msg:
|
|
14013
|
+
logger.debug('DataChannel got msg:', e.data);
|
|
14014
14014
|
const homerMsg = HomerMsg.fromJson(parsed);
|
|
14015
14015
|
if (!homerMsg) {
|
|
14016
14016
|
logger.error(`Received invalid datachannel message: ${e}`);
|
|
@@ -14018,7 +14018,7 @@ class MultistreamConnection extends EventEmitter$2 {
|
|
|
14018
14018
|
}
|
|
14019
14019
|
const jmpMsg = homerMsg.payload;
|
|
14020
14020
|
if (!isValidJmpMsg(jmpMsg)) {
|
|
14021
|
-
logger.error(`Received invalid JMP msg: ${jmpMsg}`);
|
|
14021
|
+
logger.error(`Received invalid JMP msg: ${JSON.stringify(jmpMsg)}`);
|
|
14022
14022
|
return;
|
|
14023
14023
|
}
|
|
14024
14024
|
const mediaType = getMediaType(jmpMsg.mediaFamily, jmpMsg.mediaContent);
|