@webex/internal-media-core 1.34.1 → 1.35.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
CHANGED
|
@@ -4911,7 +4911,7 @@ function eventTargetAgnosticAddListener$1(emitter, name, listener, flags) {
|
|
|
4911
4911
|
* Typed event emitter class.
|
|
4912
4912
|
*/
|
|
4913
4913
|
class EventEmitter$2 extends events$1.exports.EventEmitter {}
|
|
4914
|
-
|
|
4914
|
+
exports.LocalTrackEvents = void 0;
|
|
4915
4915
|
(function (LocalTrackEvents) {
|
|
4916
4916
|
LocalTrackEvents["Ended"] = "ended";
|
|
4917
4917
|
LocalTrackEvents["Muted"] = "muted";
|
|
@@ -4926,7 +4926,7 @@ var LocalTrackEvents;
|
|
|
4926
4926
|
* Fires when there has been a change in the underlying track.
|
|
4927
4927
|
*/
|
|
4928
4928
|
LocalTrackEvents["UnderlyingTrackChange"] = "underlying-track-change";
|
|
4929
|
-
})(LocalTrackEvents || (LocalTrackEvents = {}));
|
|
4929
|
+
})(exports.LocalTrackEvents || (exports.LocalTrackEvents = {}));
|
|
4930
4930
|
// TBD: Fix this once types are published separately
|
|
4931
4931
|
// export type TrackEffect = BaseMicrophoneEffect | BaseCameraEffect;
|
|
4932
4932
|
/**
|
|
@@ -4950,7 +4950,7 @@ class LocalTrack extends EventEmitter$2 {
|
|
|
4950
4950
|
* Emit ended event when the underlying track ends.
|
|
4951
4951
|
*/
|
|
4952
4952
|
this.underlyingTrack.onended = () => {
|
|
4953
|
-
this.emit(LocalTrackEvents.Ended, {
|
|
4953
|
+
this.emit(exports.LocalTrackEvents.Ended, {
|
|
4954
4954
|
trackState: this.trackState
|
|
4955
4955
|
});
|
|
4956
4956
|
};
|
|
@@ -5045,7 +5045,7 @@ class LocalTrack extends EventEmitter$2 {
|
|
|
5045
5045
|
if (this.underlyingTrack.enabled === muted) {
|
|
5046
5046
|
this.originalTrack.enabled = !muted;
|
|
5047
5047
|
this.underlyingTrack.enabled = !muted;
|
|
5048
|
-
this.emit(LocalTrackEvents.Muted, {
|
|
5048
|
+
this.emit(exports.LocalTrackEvents.Muted, {
|
|
5049
5049
|
trackState: this.trackState
|
|
5050
5050
|
});
|
|
5051
5051
|
logger$3.log("Local track ".concat(muted ? 'muted' : 'unmuted', ":"), {
|
|
@@ -5062,7 +5062,7 @@ class LocalTrack extends EventEmitter$2 {
|
|
|
5062
5062
|
setPublished(isPublished) {
|
|
5063
5063
|
if (this.isPublished !== isPublished) {
|
|
5064
5064
|
this.isPublished = isPublished;
|
|
5065
|
-
this.emit(LocalTrackEvents.PublishedStateUpdate, {
|
|
5065
|
+
this.emit(exports.LocalTrackEvents.PublishedStateUpdate, {
|
|
5066
5066
|
trackState: this.trackState,
|
|
5067
5067
|
isPublished
|
|
5068
5068
|
});
|
|
@@ -5079,7 +5079,7 @@ class LocalTrack extends EventEmitter$2 {
|
|
|
5079
5079
|
stop() {
|
|
5080
5080
|
this.originalTrack.stop();
|
|
5081
5081
|
this.underlyingTrack.stop();
|
|
5082
|
-
this.emit(LocalTrackEvents.Ended, {
|
|
5082
|
+
this.emit(exports.LocalTrackEvents.Ended, {
|
|
5083
5083
|
trackState: this.trackState
|
|
5084
5084
|
});
|
|
5085
5085
|
logger$3.log("Local track stopped:", {
|
|
@@ -5097,7 +5097,7 @@ class LocalTrack extends EventEmitter$2 {
|
|
|
5097
5097
|
yield effect.load(this.underlyingStream);
|
|
5098
5098
|
this.underlyingStream = effect.getUnderlyingStream();
|
|
5099
5099
|
this.effects.set(name, effect);
|
|
5100
|
-
this.emit(LocalTrackEvents.UnderlyingTrackChange);
|
|
5100
|
+
this.emit(exports.LocalTrackEvents.UnderlyingTrackChange);
|
|
5101
5101
|
});
|
|
5102
5102
|
}
|
|
5103
5103
|
/**
|
|
@@ -5121,11 +5121,11 @@ class LocalTrack extends EventEmitter$2 {
|
|
|
5121
5121
|
this.effects.forEach(effect => effect.dispose());
|
|
5122
5122
|
this.effects.clear();
|
|
5123
5123
|
this.underlyingStream = this.originalStream;
|
|
5124
|
-
this.emit(LocalTrackEvents.UnderlyingTrackChange);
|
|
5124
|
+
this.emit(exports.LocalTrackEvents.UnderlyingTrackChange);
|
|
5125
5125
|
}
|
|
5126
5126
|
}
|
|
5127
5127
|
}
|
|
5128
|
-
LocalTrack.Events = LocalTrackEvents;
|
|
5128
|
+
LocalTrack.Events = exports.LocalTrackEvents;
|
|
5129
5129
|
|
|
5130
5130
|
/**
|
|
5131
5131
|
* Represents a local track for a camera source.
|
|
@@ -9262,7 +9262,7 @@ class JmpSession extends EventEmitter$4 {
|
|
|
9262
9262
|
this.logger.info("Received invalid Active Speaker Notification:", activeSpeakerNotification);
|
|
9263
9263
|
return;
|
|
9264
9264
|
}
|
|
9265
|
-
this.logger.
|
|
9265
|
+
this.logger.debug("Received Active Speaker Notification:", activeSpeakerNotification);
|
|
9266
9266
|
this.emit(JmpSessionEvents$1.ActiveSpeaker, activeSpeakerNotification);
|
|
9267
9267
|
} else if (payload.msgType === JmpMsgType$1.SourceIndication) {
|
|
9268
9268
|
var sourceIndication = payload.payload;
|
|
@@ -12181,13 +12181,13 @@ class SendOnlyTransceiver extends Transceiver {
|
|
|
12181
12181
|
replacePublishedTrack(newTrack) {
|
|
12182
12182
|
var _a, _b;
|
|
12183
12183
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12184
|
-
(_a = this.publishedTrack) === null || _a === void 0 ? void 0 : _a.off(LocalTrackEvents.UnderlyingTrackChange, this.handleTrackChange);
|
|
12184
|
+
(_a = this.publishedTrack) === null || _a === void 0 ? void 0 : _a.off(exports.LocalTrackEvents.UnderlyingTrackChange, this.handleTrackChange);
|
|
12185
12185
|
(_b = this.publishedTrack) === null || _b === void 0 ? void 0 : _b.setPublished(false);
|
|
12186
12186
|
if (this.requested) {
|
|
12187
12187
|
yield this.sender.replaceTrack((newTrack === null || newTrack === void 0 ? void 0 : newTrack.underlyingTrack) || null);
|
|
12188
12188
|
}
|
|
12189
12189
|
this.publishedTrack = newTrack;
|
|
12190
|
-
newTrack === null || newTrack === void 0 ? void 0 : newTrack.on(LocalTrackEvents.UnderlyingTrackChange, this.handleTrackChange);
|
|
12190
|
+
newTrack === null || newTrack === void 0 ? void 0 : newTrack.on(exports.LocalTrackEvents.UnderlyingTrackChange, this.handleTrackChange);
|
|
12191
12191
|
newTrack === null || newTrack === void 0 ? void 0 : newTrack.setPublished(true);
|
|
12192
12192
|
});
|
|
12193
12193
|
}
|
|
@@ -12356,6 +12356,7 @@ class SsrcEgressStreamSignaler {
|
|
|
12356
12356
|
mLine.simulcast = undefined;
|
|
12357
12357
|
mLine.ssrcs = [];
|
|
12358
12358
|
mLine.ssrcGroups = [];
|
|
12359
|
+
mLine.extMaps = mLine.extMaps.filter(extMapLine => !/^urn:ietf:params:rtp-hdrext:sdes:(?:mid|rtp-stream-id|repaired-rtp-stream-id)$/.test(extMapLine.uri));
|
|
12359
12360
|
if (this.streamIds.length === 0) {
|
|
12360
12361
|
var numStreams = simulcastEnabled ? 3 : 1;
|
|
12361
12362
|
[...Array(numStreams).keys()].forEach(() => {
|
|
@@ -14115,6 +14116,10 @@ var Logger$3 = logger$1.exports;
|
|
|
14115
14116
|
var DEFAULT_LOGGER_NAME = 'web-client-media-engine';
|
|
14116
14117
|
var logger$4 = Logger$3.get(DEFAULT_LOGGER_NAME);
|
|
14117
14118
|
logger$4.setLevel(Logger$3.DEBUG);
|
|
14119
|
+
function setLogHandler(logHandler) {
|
|
14120
|
+
Logger$3.setHandler(logHandler);
|
|
14121
|
+
Logger$1.setHandler(logHandler);
|
|
14122
|
+
}
|
|
14118
14123
|
function toMediaStreamTrackKind(mediaType) {
|
|
14119
14124
|
return [MediaType.VideoMain, MediaType.VideoSlides].includes(mediaType) ? MediaStreamTrackKind.Video : MediaStreamTrackKind.Audio;
|
|
14120
14125
|
}
|
|
@@ -14398,7 +14403,7 @@ class MultistreamConnection extends EventEmitter {
|
|
|
14398
14403
|
logger$4.error("Error parsing datachannel JSON: ".concat(err));
|
|
14399
14404
|
return;
|
|
14400
14405
|
}
|
|
14401
|
-
logger$4.
|
|
14406
|
+
logger$4.debug('DataChannel got msg: ', parsed);
|
|
14402
14407
|
var homerMsg = HomerMsg.fromJson(parsed);
|
|
14403
14408
|
if (!homerMsg) {
|
|
14404
14409
|
logger$4.error("Received invalid datachannel message: ".concat(e));
|
|
@@ -23770,13 +23775,34 @@ class MultistreamRoapMediaConnection extends EventEmitter$4 {
|
|
|
23770
23775
|
_defineProperty__default["default"](this, "sdpNegotiationStarted", false);
|
|
23771
23776
|
this.debugId = debugId;
|
|
23772
23777
|
this.id = debugId || 'MultistreamRoapMediaConnection';
|
|
23773
|
-
this.configureWcmeLogger();
|
|
23778
|
+
this.configureWcmeLogger(debugId);
|
|
23774
23779
|
this.log('constructor()', "config: ".concat(JSON.stringify(mediaConnectionConfig)));
|
|
23775
23780
|
this.multistreamConnection = this.createMultistreamConnection(mediaConnectionConfig);
|
|
23776
23781
|
this.roap = this.createRoap(debugId);
|
|
23777
23782
|
}
|
|
23778
|
-
configureWcmeLogger() {
|
|
23779
|
-
|
|
23783
|
+
configureWcmeLogger(debugId) {
|
|
23784
|
+
var logger = getLogger();
|
|
23785
|
+
setLogHandler((messages, context) => {
|
|
23786
|
+
var logMessages = Array.from(messages).map(message => typeof message === 'object' ? JSON.stringify(message) : message);
|
|
23787
|
+
logMessages.unshift("".concat(debugId || '', ":[").concat(context.name, "]"));
|
|
23788
|
+
switch (context.level.name) {
|
|
23789
|
+
case 'TRACE':
|
|
23790
|
+
logger.trace(...logMessages);
|
|
23791
|
+
break;
|
|
23792
|
+
case 'DEBUG':
|
|
23793
|
+
logger.debug(...logMessages);
|
|
23794
|
+
break;
|
|
23795
|
+
case 'INFO':
|
|
23796
|
+
logger.info(...logMessages);
|
|
23797
|
+
break;
|
|
23798
|
+
case 'WARN':
|
|
23799
|
+
logger.warn(...logMessages);
|
|
23800
|
+
break;
|
|
23801
|
+
case 'ERROR':
|
|
23802
|
+
logger.error(...logMessages);
|
|
23803
|
+
break;
|
|
23804
|
+
}
|
|
23805
|
+
});
|
|
23780
23806
|
}
|
|
23781
23807
|
log(action, description) {
|
|
23782
23808
|
getLogger().info("".concat(this.id, ":").concat(action, " ").concat(description));
|
|
@@ -23870,43 +23896,13 @@ class MultistreamRoapMediaConnection extends EventEmitter$4 {
|
|
|
23870
23896
|
}
|
|
23871
23897
|
this.roap.roapMessageReceived(roapMessage);
|
|
23872
23898
|
}
|
|
23873
|
-
publishTrack(track
|
|
23874
|
-
|
|
23875
|
-
return
|
|
23876
|
-
_this.log('publishTrack()', "called with track.kind=".concat(track.kind, ", mediaContent=").concat(mediaContent));
|
|
23877
|
-
if (track.kind === 'audio') {
|
|
23878
|
-
if (mediaContent === 'main') {
|
|
23879
|
-
yield _this.multistreamConnection.publishTrack(new LocalMicrophoneTrack(new MediaStream([track])));
|
|
23880
|
-
} else {
|
|
23881
|
-
yield _this.multistreamConnection.publishTrack(new LocalDisplayTrack(new MediaStream([track])));
|
|
23882
|
-
}
|
|
23883
|
-
} else if (track.kind === 'video') {
|
|
23884
|
-
if (mediaContent === 'main') {
|
|
23885
|
-
yield _this.multistreamConnection.publishTrack(new LocalCameraTrack(new MediaStream([track])));
|
|
23886
|
-
} else {
|
|
23887
|
-
yield _this.multistreamConnection.publishTrack(new LocalDisplayTrack(new MediaStream([track])));
|
|
23888
|
-
}
|
|
23889
|
-
}
|
|
23890
|
-
})();
|
|
23899
|
+
publishTrack(track) {
|
|
23900
|
+
this.log('publishTrack()', 'called');
|
|
23901
|
+
return this.multistreamConnection.publishTrack(track);
|
|
23891
23902
|
}
|
|
23892
|
-
unpublishTrack(track
|
|
23893
|
-
|
|
23894
|
-
return
|
|
23895
|
-
_this2.log('unpublishTrack()', "called with track.kind=".concat(track.kind, ", mediaContent=").concat(mediaContent));
|
|
23896
|
-
if (track.kind === 'audio') {
|
|
23897
|
-
if (mediaContent === 'main') {
|
|
23898
|
-
yield _this2.multistreamConnection.unpublishTrack(new LocalMicrophoneTrack(new MediaStream([track])));
|
|
23899
|
-
} else {
|
|
23900
|
-
yield _this2.multistreamConnection.unpublishTrack(new LocalDisplayTrack(new MediaStream([track])));
|
|
23901
|
-
}
|
|
23902
|
-
} else if (track.kind === 'video') {
|
|
23903
|
-
if (mediaContent === 'main') {
|
|
23904
|
-
yield _this2.multistreamConnection.unpublishTrack(new LocalCameraTrack(new MediaStream([track])));
|
|
23905
|
-
} else {
|
|
23906
|
-
yield _this2.multistreamConnection.unpublishTrack(new LocalDisplayTrack(new MediaStream([track])));
|
|
23907
|
-
}
|
|
23908
|
-
}
|
|
23909
|
-
})();
|
|
23903
|
+
unpublishTrack(track) {
|
|
23904
|
+
this.log('unpublishTrack()', 'called');
|
|
23905
|
+
return this.multistreamConnection.unpublishTrack(track);
|
|
23910
23906
|
}
|
|
23911
23907
|
createReceiveSlot(mediaType) {
|
|
23912
23908
|
this.log('createReceiveSlot()', "called");
|
|
@@ -23983,6 +23979,10 @@ exports.ActiveSpeakerInfo = ActiveSpeakerInfo;
|
|
|
23983
23979
|
exports.CodecInfo = CodecInfo;
|
|
23984
23980
|
exports.Errors = Errors;
|
|
23985
23981
|
exports.H264Codec = H264Codec;
|
|
23982
|
+
exports.LocalCameraTrack = LocalCameraTrack;
|
|
23983
|
+
exports.LocalDisplayTrack = LocalDisplayTrack;
|
|
23984
|
+
exports.LocalMicrophoneTrack = LocalMicrophoneTrack;
|
|
23985
|
+
exports.LocalTrack = LocalTrack;
|
|
23986
23986
|
exports.Media = Media;
|
|
23987
23987
|
exports.MediaRequest = MediaRequest;
|
|
23988
23988
|
exports.MultistreamRoapMediaConnection = MultistreamRoapMediaConnection;
|
package/dist/esm/index.js
CHANGED
|
@@ -9251,7 +9251,7 @@ class JmpSession extends EventEmitter$4 {
|
|
|
9251
9251
|
this.logger.info("Received invalid Active Speaker Notification:", activeSpeakerNotification);
|
|
9252
9252
|
return;
|
|
9253
9253
|
}
|
|
9254
|
-
this.logger.
|
|
9254
|
+
this.logger.debug("Received Active Speaker Notification:", activeSpeakerNotification);
|
|
9255
9255
|
this.emit(JmpSessionEvents$1.ActiveSpeaker, activeSpeakerNotification);
|
|
9256
9256
|
} else if (payload.msgType === JmpMsgType$1.SourceIndication) {
|
|
9257
9257
|
var sourceIndication = payload.payload;
|
|
@@ -12345,6 +12345,7 @@ class SsrcEgressStreamSignaler {
|
|
|
12345
12345
|
mLine.simulcast = undefined;
|
|
12346
12346
|
mLine.ssrcs = [];
|
|
12347
12347
|
mLine.ssrcGroups = [];
|
|
12348
|
+
mLine.extMaps = mLine.extMaps.filter(extMapLine => !/^urn:ietf:params:rtp-hdrext:sdes:(?:mid|rtp-stream-id|repaired-rtp-stream-id)$/.test(extMapLine.uri));
|
|
12348
12349
|
if (this.streamIds.length === 0) {
|
|
12349
12350
|
var numStreams = simulcastEnabled ? 3 : 1;
|
|
12350
12351
|
[...Array(numStreams).keys()].forEach(() => {
|
|
@@ -14104,6 +14105,10 @@ var Logger$3 = logger$1.exports;
|
|
|
14104
14105
|
var DEFAULT_LOGGER_NAME = 'web-client-media-engine';
|
|
14105
14106
|
var logger$4 = Logger$3.get(DEFAULT_LOGGER_NAME);
|
|
14106
14107
|
logger$4.setLevel(Logger$3.DEBUG);
|
|
14108
|
+
function setLogHandler(logHandler) {
|
|
14109
|
+
Logger$3.setHandler(logHandler);
|
|
14110
|
+
Logger$1.setHandler(logHandler);
|
|
14111
|
+
}
|
|
14107
14112
|
function toMediaStreamTrackKind(mediaType) {
|
|
14108
14113
|
return [MediaType$1.VideoMain, MediaType$1.VideoSlides].includes(mediaType) ? MediaStreamTrackKind.Video : MediaStreamTrackKind.Audio;
|
|
14109
14114
|
}
|
|
@@ -14387,7 +14392,7 @@ class MultistreamConnection extends EventEmitter {
|
|
|
14387
14392
|
logger$4.error("Error parsing datachannel JSON: ".concat(err));
|
|
14388
14393
|
return;
|
|
14389
14394
|
}
|
|
14390
|
-
logger$4.
|
|
14395
|
+
logger$4.debug('DataChannel got msg: ', parsed);
|
|
14391
14396
|
var homerMsg = HomerMsg.fromJson(parsed);
|
|
14392
14397
|
if (!homerMsg) {
|
|
14393
14398
|
logger$4.error("Received invalid datachannel message: ".concat(e));
|
|
@@ -23759,13 +23764,34 @@ class MultistreamRoapMediaConnection extends EventEmitter$4 {
|
|
|
23759
23764
|
_defineProperty(this, "sdpNegotiationStarted", false);
|
|
23760
23765
|
this.debugId = debugId;
|
|
23761
23766
|
this.id = debugId || 'MultistreamRoapMediaConnection';
|
|
23762
|
-
this.configureWcmeLogger();
|
|
23767
|
+
this.configureWcmeLogger(debugId);
|
|
23763
23768
|
this.log('constructor()', "config: ".concat(JSON.stringify(mediaConnectionConfig)));
|
|
23764
23769
|
this.multistreamConnection = this.createMultistreamConnection(mediaConnectionConfig);
|
|
23765
23770
|
this.roap = this.createRoap(debugId);
|
|
23766
23771
|
}
|
|
23767
|
-
configureWcmeLogger() {
|
|
23768
|
-
|
|
23772
|
+
configureWcmeLogger(debugId) {
|
|
23773
|
+
var logger = getLogger();
|
|
23774
|
+
setLogHandler((messages, context) => {
|
|
23775
|
+
var logMessages = Array.from(messages).map(message => typeof message === 'object' ? JSON.stringify(message) : message);
|
|
23776
|
+
logMessages.unshift("".concat(debugId || '', ":[").concat(context.name, "]"));
|
|
23777
|
+
switch (context.level.name) {
|
|
23778
|
+
case 'TRACE':
|
|
23779
|
+
logger.trace(...logMessages);
|
|
23780
|
+
break;
|
|
23781
|
+
case 'DEBUG':
|
|
23782
|
+
logger.debug(...logMessages);
|
|
23783
|
+
break;
|
|
23784
|
+
case 'INFO':
|
|
23785
|
+
logger.info(...logMessages);
|
|
23786
|
+
break;
|
|
23787
|
+
case 'WARN':
|
|
23788
|
+
logger.warn(...logMessages);
|
|
23789
|
+
break;
|
|
23790
|
+
case 'ERROR':
|
|
23791
|
+
logger.error(...logMessages);
|
|
23792
|
+
break;
|
|
23793
|
+
}
|
|
23794
|
+
});
|
|
23769
23795
|
}
|
|
23770
23796
|
log(action, description) {
|
|
23771
23797
|
getLogger().info("".concat(this.id, ":").concat(action, " ").concat(description));
|
|
@@ -23859,43 +23885,13 @@ class MultistreamRoapMediaConnection extends EventEmitter$4 {
|
|
|
23859
23885
|
}
|
|
23860
23886
|
this.roap.roapMessageReceived(roapMessage);
|
|
23861
23887
|
}
|
|
23862
|
-
publishTrack(track
|
|
23863
|
-
|
|
23864
|
-
return
|
|
23865
|
-
_this.log('publishTrack()', "called with track.kind=".concat(track.kind, ", mediaContent=").concat(mediaContent));
|
|
23866
|
-
if (track.kind === 'audio') {
|
|
23867
|
-
if (mediaContent === 'main') {
|
|
23868
|
-
yield _this.multistreamConnection.publishTrack(new LocalMicrophoneTrack(new MediaStream([track])));
|
|
23869
|
-
} else {
|
|
23870
|
-
yield _this.multistreamConnection.publishTrack(new LocalDisplayTrack(new MediaStream([track])));
|
|
23871
|
-
}
|
|
23872
|
-
} else if (track.kind === 'video') {
|
|
23873
|
-
if (mediaContent === 'main') {
|
|
23874
|
-
yield _this.multistreamConnection.publishTrack(new LocalCameraTrack(new MediaStream([track])));
|
|
23875
|
-
} else {
|
|
23876
|
-
yield _this.multistreamConnection.publishTrack(new LocalDisplayTrack(new MediaStream([track])));
|
|
23877
|
-
}
|
|
23878
|
-
}
|
|
23879
|
-
})();
|
|
23888
|
+
publishTrack(track) {
|
|
23889
|
+
this.log('publishTrack()', 'called');
|
|
23890
|
+
return this.multistreamConnection.publishTrack(track);
|
|
23880
23891
|
}
|
|
23881
|
-
unpublishTrack(track
|
|
23882
|
-
|
|
23883
|
-
return
|
|
23884
|
-
_this2.log('unpublishTrack()', "called with track.kind=".concat(track.kind, ", mediaContent=").concat(mediaContent));
|
|
23885
|
-
if (track.kind === 'audio') {
|
|
23886
|
-
if (mediaContent === 'main') {
|
|
23887
|
-
yield _this2.multistreamConnection.unpublishTrack(new LocalMicrophoneTrack(new MediaStream([track])));
|
|
23888
|
-
} else {
|
|
23889
|
-
yield _this2.multistreamConnection.unpublishTrack(new LocalDisplayTrack(new MediaStream([track])));
|
|
23890
|
-
}
|
|
23891
|
-
} else if (track.kind === 'video') {
|
|
23892
|
-
if (mediaContent === 'main') {
|
|
23893
|
-
yield _this2.multistreamConnection.unpublishTrack(new LocalCameraTrack(new MediaStream([track])));
|
|
23894
|
-
} else {
|
|
23895
|
-
yield _this2.multistreamConnection.unpublishTrack(new LocalDisplayTrack(new MediaStream([track])));
|
|
23896
|
-
}
|
|
23897
|
-
}
|
|
23898
|
-
})();
|
|
23892
|
+
unpublishTrack(track) {
|
|
23893
|
+
this.log('unpublishTrack()', 'called');
|
|
23894
|
+
return this.multistreamConnection.unpublishTrack(track);
|
|
23899
23895
|
}
|
|
23900
23896
|
createReceiveSlot(mediaType) {
|
|
23901
23897
|
this.log('createReceiveSlot()', "called");
|
|
@@ -23968,4 +23964,4 @@ var Media = {
|
|
|
23968
23964
|
isBrowserSupported
|
|
23969
23965
|
};
|
|
23970
23966
|
|
|
23971
|
-
export { ActiveSpeakerInfo, CodecInfo, ConnectionState, ErrorType, Errors, Event$1 as Event, H264Codec, Media, MediaFamily, MediaRequest, MediaType, MultistreamRoapMediaConnection, Policy, ReceiveSlot, ReceiveSlotEvents, ReceiverSelectedInfo, RemoteTrackType, RoapMediaConnection, getErrorDescription, getLogger, getMediaFamily, isBrowserSupported, setLogger };
|
|
23967
|
+
export { ActiveSpeakerInfo, CodecInfo, ConnectionState, ErrorType, Errors, Event$1 as Event, H264Codec, LocalCameraTrack, LocalDisplayTrack, LocalMicrophoneTrack, LocalTrack, LocalTrackEvents, Media, MediaFamily, MediaRequest, MediaType, MultistreamRoapMediaConnection, Policy, ReceiveSlot, ReceiveSlotEvents, ReceiverSelectedInfo, RemoteTrackType, RoapMediaConnection, getErrorDescription, getLogger, getMediaFamily, isBrowserSupported, setLogger };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import EventEmitter from 'events';
|
|
3
|
-
import { MediaRequest, ReceiveSlot, TransceiverStats } from '@webex/web-client-media-engine';
|
|
3
|
+
import { LocalTrack, MediaRequest, ReceiveSlot, TransceiverStats } from '@webex/web-client-media-engine';
|
|
4
4
|
import { MediaType } from '@webex/json-multistream';
|
|
5
5
|
import { ConnectionState, RoapMessage } from './eventTypes';
|
|
6
6
|
import { MultistreamConnectionConfig } from './config';
|
|
7
|
-
export { MediaRequest, ReceiveSlot, ReceiveSlotEvents } from '@webex/web-client-media-engine';
|
|
7
|
+
export { LocalCameraTrack, LocalDisplayTrack, LocalMicrophoneTrack, LocalTrack, LocalTrackEvents, MediaRequest, ReceiveSlot, ReceiveSlotEvents, } from '@webex/web-client-media-engine';
|
|
8
8
|
export { ActiveSpeakerInfo, CodecInfo, getMediaFamily, H264Codec, MediaFamily, MediaType, SourceState, Policy, PolicySpecificInfo, ReceiverSelectedInfo, } from '@webex/json-multistream';
|
|
9
9
|
export declare class MultistreamRoapMediaConnection extends EventEmitter {
|
|
10
10
|
private id?;
|
|
@@ -27,8 +27,8 @@ export declare class MultistreamRoapMediaConnection extends EventEmitter {
|
|
|
27
27
|
getStats(): Promise<RTCStatsReport>;
|
|
28
28
|
getTransceiverStats(): Promise<TransceiverStats>;
|
|
29
29
|
roapMessageReceived(roapMessage: RoapMessage): void;
|
|
30
|
-
publishTrack(track:
|
|
31
|
-
unpublishTrack(track:
|
|
30
|
+
publishTrack(track: LocalTrack): Promise<void>;
|
|
31
|
+
unpublishTrack(track: LocalTrack): Promise<void>;
|
|
32
32
|
createReceiveSlot(mediaType: MediaType): Promise<ReceiveSlot>;
|
|
33
33
|
requestMedia(mediaType: MediaType, mediaRequests: MediaRequest[]): void;
|
|
34
34
|
private createLocalOffer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultistreamRoapMediaConnection.d.ts","sourceRoot":"","sources":["../../../src/MediaConnection/MultistreamRoapMediaConnection.ts"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAElC,OAAO,
|
|
1
|
+
{"version":3,"file":"MultistreamRoapMediaConnection.d.ts","sourceRoot":"","sources":["../../../src/MediaConnection/MultistreamRoapMediaConnection.ts"],"names":[],"mappings":";AAAA,OAAO,YAAY,MAAM,QAAQ,CAAC;AAElC,OAAO,EAEL,UAAU,EACV,YAAY,EAGZ,WAAW,EACX,gBAAgB,EACjB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAA6C,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAG9F,OAAO,EAAQ,eAAe,EAAE,WAAW,EAAmB,MAAM,cAAc,CAAC;AAKnF,OAAO,EAAC,2BAA2B,EAAC,MAAM,UAAU,CAAC;AAGrD,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,MAAM,EACN,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAGjC,qBAAa,8BAA+B,SAAQ,YAAY;IAC9D,OAAO,CAAC,EAAE,CAAC,CAAS;IAEpB,OAAO,CAAC,OAAO,CAAC,CAAS;IAEzB,OAAO,CAAC,qBAAqB,CAAwB;IAErD,OAAO,CAAC,IAAI,CAAO;IAEnB,OAAO,CAAC,qBAAqB,CAAS;gBAS1B,qBAAqB,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,MAAM;IAehF,OAAO,CAAC,mBAAmB;IAqC3B,OAAO,CAAC,GAAG;IAIX,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,2BAA2B;IAyCnC,OAAO,CAAC,UAAU;IA4BX,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAiB9B,KAAK,IAAI,IAAI;IAOpB,OAAO,CAAC,oBAAoB;IAK5B,OAAO,CAAC,eAAe;IAiBhB,SAAS,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,aAAa,UAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IA2B1E,kBAAkB,IAAI,eAAe;IAWrC,QAAQ,IAAI,OAAO,CAAC,cAAc,CAAC;IAOnC,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAShD,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI;IAanD,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAM9C,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAMhD,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC;IAM7D,YAAY,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,GAAG,IAAI;IAM9E,OAAO,CAAC,gBAAgB;IAkBxB,OAAO,CAAC,iBAAiB;IAKzB,OAAO,CAAC,kBAAkB;CAkB3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/internal-media-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/cjs",
|
|
6
6
|
"dist/esm",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@babel/runtime": "^7.18.9",
|
|
48
|
-
"@webex/json-multistream": "1.20.
|
|
48
|
+
"@webex/json-multistream": "1.20.2",
|
|
49
49
|
"@webex/ts-sdp": "1.3.0",
|
|
50
|
-
"@webex/web-client-media-engine": "1.
|
|
50
|
+
"@webex/web-client-media-engine": "1.38.1",
|
|
51
51
|
"detectrtc": "^1.4.1",
|
|
52
52
|
"events": "^3.3.0",
|
|
53
53
|
"typed-emitter": "^2.1.0",
|