@webex/internal-media-core 2.12.4 → 2.14.0
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
|
@@ -2342,10 +2342,11 @@ if(module.exports){module.exports=Logger;}else {Logger._prevLogger=global.Logger
|
|
|
2342
2342
|
* media has successfully been obtained.
|
|
2343
2343
|
*/function getUserMedia(constraints){return __awaiter$2(this,void 0,void 0,function*(){return navigator.mediaDevices.getUserMedia(constraints);});}/**
|
|
2344
2344
|
* Prompts the user for permission to use a user's display media and audio. If a video track is
|
|
2345
|
-
* absent from the constraints argument, one will still be provided.
|
|
2345
|
+
* absent from the constraints argument, one will still be provided. Includes experimental options
|
|
2346
|
+
* found in https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#options.
|
|
2346
2347
|
*
|
|
2347
2348
|
* @param constraints - A MediaStreamConstraints object specifying the types of media to request,
|
|
2348
|
-
* along with any requirements for each type.
|
|
2349
|
+
* along with any requirements for each type, as well as experimental options.
|
|
2349
2350
|
* @returns A Promise whose fulfillment handler receives a MediaStream object when the requested
|
|
2350
2351
|
* media has successfully been obtained.
|
|
2351
2352
|
*/function getDisplayMedia(constraints){return navigator.mediaDevices.getDisplayMedia(constraints);}/**
|
|
@@ -2398,22 +2399,62 @@ stream.getTracks().forEach(track=>track.stop());return callbackRes;}return callb
|
|
|
2398
2399
|
* 1. Previous captured video stream from the same device is not stopped.
|
|
2399
2400
|
* 2. Previous createCameraStream() call for the same device is in progress.
|
|
2400
2401
|
*
|
|
2401
|
-
* @param
|
|
2402
|
+
* @param cameraStreamConstructor - Constructor for the local camera stream.
|
|
2402
2403
|
* @param constraints - Video device constraints.
|
|
2403
2404
|
* @returns A LocalCameraStream object or an error.
|
|
2404
|
-
*/function createCameraStream(
|
|
2405
|
+
*/function createCameraStream(cameraStreamConstructor,constraints){return __awaiter$2(this,void 0,void 0,function*(){var stream;try{stream=yield getUserMedia({video:Object.assign({},constraints)});}catch(error){throw new WebrtcCoreError(WebrtcCoreErrorType.CREATE_STREAM_FAILED,"Failed to create camera stream: ".concat(error));}// eslint-disable-next-line new-cap
|
|
2406
|
+
return new cameraStreamConstructor(stream);});}/**
|
|
2405
2407
|
* Creates a LocalMicrophoneStream with the given constraints.
|
|
2406
2408
|
*
|
|
2407
|
-
* @param
|
|
2409
|
+
* @param microphoneStreamConstructor - Constructor for the local microphone stream.
|
|
2408
2410
|
* @param constraints - Audio device constraints.
|
|
2409
2411
|
* @returns A LocalMicrophoneStream object or an error.
|
|
2410
|
-
*/function createMicrophoneStream(
|
|
2412
|
+
*/function createMicrophoneStream(microphoneStreamConstructor,constraints){return __awaiter$2(this,void 0,void 0,function*(){var stream;try{stream=yield getUserMedia({audio:Object.assign({},constraints)});}catch(error){throw new WebrtcCoreError(WebrtcCoreErrorType.CREATE_STREAM_FAILED,"Failed to create microphone stream: ".concat(error));}// eslint-disable-next-line new-cap
|
|
2413
|
+
return new microphoneStreamConstructor(stream);});}/**
|
|
2414
|
+
* Creates a LocalCameraStream and a LocalMicrophoneStream with the given constraints.
|
|
2415
|
+
*
|
|
2416
|
+
* @param cameraStreamConstructor - Constructor for the local camera stream.
|
|
2417
|
+
* @param microphoneStreamConstructor - Constructor for the local microphone stream.
|
|
2418
|
+
* @param constraints - Object containing video and audio device constraints.
|
|
2419
|
+
* @param constraints.video - Video device constraints.
|
|
2420
|
+
* @param constraints.audio - Audio device constraints.
|
|
2421
|
+
* @returns A Promise that resolves to a LocalCameraStream and a LocalMicrophoneStream or an error.
|
|
2422
|
+
*/function createCameraAndMicrophoneStreams(cameraStreamConstructor,microphoneStreamConstructor,constraints){return __awaiter$2(this,void 0,void 0,function*(){var stream;try{stream=yield getUserMedia({video:Object.assign({},constraints===null||constraints===void 0?void 0:constraints.video),audio:Object.assign({},constraints===null||constraints===void 0?void 0:constraints.audio)});}catch(error){throw new WebrtcCoreError(WebrtcCoreErrorType.CREATE_STREAM_FAILED,"Failed to create camera and microphone streams: ".concat(error));}// eslint-disable-next-line new-cap
|
|
2423
|
+
var localCameraStream=new cameraStreamConstructor(new MediaStream(stream.getVideoTracks()));// eslint-disable-next-line new-cap
|
|
2424
|
+
var localMicrophoneStream=new microphoneStreamConstructor(new MediaStream(stream.getAudioTracks()));return [localCameraStream,localMicrophoneStream];});}/**
|
|
2425
|
+
* Creates a LocalDisplayStream and a LocalSystemAudioStream with the given parameters.
|
|
2426
|
+
*
|
|
2427
|
+
* This is a more advanced version of createDisplayStreamWithAudio that allows the user to specify
|
|
2428
|
+
* additional display media options and constraints.
|
|
2429
|
+
*
|
|
2430
|
+
* See https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#options.
|
|
2431
|
+
*
|
|
2432
|
+
* @param options - An object containing the options for creating the display and system audio streams.
|
|
2433
|
+
* @param options.video - An object containing the video stream options.
|
|
2434
|
+
* @param options.video.displayStreamConstructor - Constructor for the local display stream.
|
|
2435
|
+
* @param options.video.constraints - Video device constraints.
|
|
2436
|
+
* @param options.video.videoContentHint - A hint for the content of the stream.
|
|
2437
|
+
* @param options.video.preferCurrentTab - Whether to offer the current tab as the most prominent capture source.
|
|
2438
|
+
* @param options.video.selfBrowserSurface - Whether to allow the user to select the current tab for capture.
|
|
2439
|
+
* @param options.video.surfaceSwitching - Whether to allow the user to dynamically switch the shared tab during screen-sharing.
|
|
2440
|
+
* @param options.video.monitorTypeSurfaces - Whether to offer the user the option to choose display surfaces whose type is monitor.
|
|
2441
|
+
* @param options.audio - An object containing the audio stream options. If present, a system audio stream will be created.
|
|
2442
|
+
* @param options.audio.systemAudioStreamConstructor - Constructor for the local system audio stream.
|
|
2443
|
+
* @param options.audio.constraints - Audio device constraints.
|
|
2444
|
+
* @param options.audio.systemAudio - Whether to include the system audio among the possible audio sources offered to the user.
|
|
2445
|
+
* @param options.controller - CaptureController to further manipulate the capture session.
|
|
2446
|
+
* @returns A Promise that resolves to a LocalDisplayStream and a LocalSystemAudioStream or an
|
|
2447
|
+
* error. If no system audio is available, the LocalSystemAudioStream will be resolved as null
|
|
2448
|
+
* instead.
|
|
2449
|
+
*/function createDisplayMedia(options){return __awaiter$2(this,void 0,void 0,function*(){var _a,_b;var stream;var videoConstraints=options.video.constraints||true;var audioConstraints=((_a=options.audio)===null||_a===void 0?void 0:_a.constraints)||!!options.audio;try{stream=yield getDisplayMedia({video:videoConstraints,audio:audioConstraints,controller:options.controller,preferCurrentTab:options.video.preferCurrentTab,selfBrowserSurface:options.video.selfBrowserSurface,surfaceSwitching:options.video.surfaceSwitching,systemAudio:(_b=options.audio)===null||_b===void 0?void 0:_b.systemAudio,monitorTypeSurfaces:options.video.monitorTypeSurfaces});}catch(error){throw new WebrtcCoreError(WebrtcCoreErrorType.CREATE_STREAM_FAILED,"Failed to create display and/or system audio streams: ".concat(error));}// eslint-disable-next-line new-cap
|
|
2450
|
+
var localDisplayStream=new options.video.displayStreamConstructor(new MediaStream(stream.getVideoTracks()));if(options.video.videoContentHint){localDisplayStream.contentHint=options.video.videoContentHint;}var localSystemAudioStream=null;if(options.audio&&stream.getAudioTracks().length>0){// eslint-disable-next-line new-cap
|
|
2451
|
+
localSystemAudioStream=new options.audio.systemAudioStreamConstructor(new MediaStream(stream.getAudioTracks()));}return [localDisplayStream,localSystemAudioStream];});}/**
|
|
2411
2452
|
* Creates a LocalDisplayStream with the given parameters.
|
|
2412
2453
|
*
|
|
2413
|
-
* @param
|
|
2454
|
+
* @param displayStreamConstructor - Constructor for the local display stream.
|
|
2414
2455
|
* @param videoContentHint - An optional parameter to give a hint for the content of the stream.
|
|
2415
2456
|
* @returns A Promise that resolves to a LocalDisplayStream or an error.
|
|
2416
|
-
*/function createDisplayStream(
|
|
2457
|
+
*/function createDisplayStream(displayStreamConstructor,videoContentHint){return __awaiter$2(this,void 0,void 0,function*(){var[localDisplayStream]=yield createDisplayMedia({video:{displayStreamConstructor,videoContentHint}});return localDisplayStream;});}/**
|
|
2417
2458
|
* Creates a LocalDisplayStream and a LocalSystemAudioStream with the given parameters.
|
|
2418
2459
|
*
|
|
2419
2460
|
* @param displayStreamConstructor - Constructor for the local display stream.
|
|
@@ -2422,9 +2463,7 @@ stream.getTracks().forEach(track=>track.stop());return callbackRes;}return callb
|
|
|
2422
2463
|
* @returns A Promise that resolves to a LocalDisplayStream and a LocalSystemAudioStream or an
|
|
2423
2464
|
* error. If no system audio is available, the LocalSystemAudioStream will be resolved as null
|
|
2424
2465
|
* instead.
|
|
2425
|
-
*/function createDisplayStreamWithAudio(displayStreamConstructor,systemAudioStreamConstructor,videoContentHint){return __awaiter$2(this,void 0,void 0,function*(){
|
|
2426
|
-
var localDisplayStream=new displayStreamConstructor(new MediaStream(stream.getVideoTracks()));if(videoContentHint){localDisplayStream.contentHint=videoContentHint;}var localSystemAudioStream=null;if(stream.getAudioTracks().length>0){// eslint-disable-next-line new-cap
|
|
2427
|
-
localSystemAudioStream=new systemAudioStreamConstructor(new MediaStream(stream.getAudioTracks()));}return [localDisplayStream,localSystemAudioStream];});}/**
|
|
2466
|
+
*/function createDisplayStreamWithAudio(displayStreamConstructor,systemAudioStreamConstructor,videoContentHint){return __awaiter$2(this,void 0,void 0,function*(){return createDisplayMedia({video:{displayStreamConstructor,videoContentHint},audio:{systemAudioStreamConstructor}});});}/**
|
|
2428
2467
|
* Enumerates the media input and output devices available.
|
|
2429
2468
|
*
|
|
2430
2469
|
* @param deviceKind - Optional filter to return a specific device kind.
|
|
@@ -19052,7 +19091,9 @@ exports.StatsAnalyzer = StatsAnalyzer;
|
|
|
19052
19091
|
exports.StreamRequest = StreamRequest;
|
|
19053
19092
|
exports.WcmeError = WcmeError;
|
|
19054
19093
|
exports.configureWcmeLogger = configureWcmeLogger;
|
|
19094
|
+
exports.createCameraAndMicrophoneStreams = createCameraAndMicrophoneStreams;
|
|
19055
19095
|
exports.createCameraStream = createCameraStream;
|
|
19096
|
+
exports.createDisplayMedia = createDisplayMedia;
|
|
19056
19097
|
exports.createDisplayStream = createDisplayStream;
|
|
19057
19098
|
exports.createDisplayStreamWithAudio = createDisplayStreamWithAudio;
|
|
19058
19099
|
exports.createMicrophoneStream = createMicrophoneStream;
|
package/dist/esm/index.js
CHANGED
|
@@ -2331,10 +2331,11 @@ if(module.exports){module.exports=Logger;}else {Logger._prevLogger=global.Logger
|
|
|
2331
2331
|
* media has successfully been obtained.
|
|
2332
2332
|
*/function getUserMedia(constraints){return __awaiter$2(this,void 0,void 0,function*(){return navigator.mediaDevices.getUserMedia(constraints);});}/**
|
|
2333
2333
|
* Prompts the user for permission to use a user's display media and audio. If a video track is
|
|
2334
|
-
* absent from the constraints argument, one will still be provided.
|
|
2334
|
+
* absent from the constraints argument, one will still be provided. Includes experimental options
|
|
2335
|
+
* found in https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#options.
|
|
2335
2336
|
*
|
|
2336
2337
|
* @param constraints - A MediaStreamConstraints object specifying the types of media to request,
|
|
2337
|
-
* along with any requirements for each type.
|
|
2338
|
+
* along with any requirements for each type, as well as experimental options.
|
|
2338
2339
|
* @returns A Promise whose fulfillment handler receives a MediaStream object when the requested
|
|
2339
2340
|
* media has successfully been obtained.
|
|
2340
2341
|
*/function getDisplayMedia(constraints){return navigator.mediaDevices.getDisplayMedia(constraints);}/**
|
|
@@ -2387,22 +2388,62 @@ stream.getTracks().forEach(track=>track.stop());return callbackRes;}return callb
|
|
|
2387
2388
|
* 1. Previous captured video stream from the same device is not stopped.
|
|
2388
2389
|
* 2. Previous createCameraStream() call for the same device is in progress.
|
|
2389
2390
|
*
|
|
2390
|
-
* @param
|
|
2391
|
+
* @param cameraStreamConstructor - Constructor for the local camera stream.
|
|
2391
2392
|
* @param constraints - Video device constraints.
|
|
2392
2393
|
* @returns A LocalCameraStream object or an error.
|
|
2393
|
-
*/function createCameraStream(
|
|
2394
|
+
*/function createCameraStream(cameraStreamConstructor,constraints){return __awaiter$2(this,void 0,void 0,function*(){var stream;try{stream=yield getUserMedia({video:Object.assign({},constraints)});}catch(error){throw new WebrtcCoreError(WebrtcCoreErrorType.CREATE_STREAM_FAILED,"Failed to create camera stream: ".concat(error));}// eslint-disable-next-line new-cap
|
|
2395
|
+
return new cameraStreamConstructor(stream);});}/**
|
|
2394
2396
|
* Creates a LocalMicrophoneStream with the given constraints.
|
|
2395
2397
|
*
|
|
2396
|
-
* @param
|
|
2398
|
+
* @param microphoneStreamConstructor - Constructor for the local microphone stream.
|
|
2397
2399
|
* @param constraints - Audio device constraints.
|
|
2398
2400
|
* @returns A LocalMicrophoneStream object or an error.
|
|
2399
|
-
*/function createMicrophoneStream(
|
|
2401
|
+
*/function createMicrophoneStream(microphoneStreamConstructor,constraints){return __awaiter$2(this,void 0,void 0,function*(){var stream;try{stream=yield getUserMedia({audio:Object.assign({},constraints)});}catch(error){throw new WebrtcCoreError(WebrtcCoreErrorType.CREATE_STREAM_FAILED,"Failed to create microphone stream: ".concat(error));}// eslint-disable-next-line new-cap
|
|
2402
|
+
return new microphoneStreamConstructor(stream);});}/**
|
|
2403
|
+
* Creates a LocalCameraStream and a LocalMicrophoneStream with the given constraints.
|
|
2404
|
+
*
|
|
2405
|
+
* @param cameraStreamConstructor - Constructor for the local camera stream.
|
|
2406
|
+
* @param microphoneStreamConstructor - Constructor for the local microphone stream.
|
|
2407
|
+
* @param constraints - Object containing video and audio device constraints.
|
|
2408
|
+
* @param constraints.video - Video device constraints.
|
|
2409
|
+
* @param constraints.audio - Audio device constraints.
|
|
2410
|
+
* @returns A Promise that resolves to a LocalCameraStream and a LocalMicrophoneStream or an error.
|
|
2411
|
+
*/function createCameraAndMicrophoneStreams(cameraStreamConstructor,microphoneStreamConstructor,constraints){return __awaiter$2(this,void 0,void 0,function*(){var stream;try{stream=yield getUserMedia({video:Object.assign({},constraints===null||constraints===void 0?void 0:constraints.video),audio:Object.assign({},constraints===null||constraints===void 0?void 0:constraints.audio)});}catch(error){throw new WebrtcCoreError(WebrtcCoreErrorType.CREATE_STREAM_FAILED,"Failed to create camera and microphone streams: ".concat(error));}// eslint-disable-next-line new-cap
|
|
2412
|
+
var localCameraStream=new cameraStreamConstructor(new MediaStream(stream.getVideoTracks()));// eslint-disable-next-line new-cap
|
|
2413
|
+
var localMicrophoneStream=new microphoneStreamConstructor(new MediaStream(stream.getAudioTracks()));return [localCameraStream,localMicrophoneStream];});}/**
|
|
2414
|
+
* Creates a LocalDisplayStream and a LocalSystemAudioStream with the given parameters.
|
|
2415
|
+
*
|
|
2416
|
+
* This is a more advanced version of createDisplayStreamWithAudio that allows the user to specify
|
|
2417
|
+
* additional display media options and constraints.
|
|
2418
|
+
*
|
|
2419
|
+
* See https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#options.
|
|
2420
|
+
*
|
|
2421
|
+
* @param options - An object containing the options for creating the display and system audio streams.
|
|
2422
|
+
* @param options.video - An object containing the video stream options.
|
|
2423
|
+
* @param options.video.displayStreamConstructor - Constructor for the local display stream.
|
|
2424
|
+
* @param options.video.constraints - Video device constraints.
|
|
2425
|
+
* @param options.video.videoContentHint - A hint for the content of the stream.
|
|
2426
|
+
* @param options.video.preferCurrentTab - Whether to offer the current tab as the most prominent capture source.
|
|
2427
|
+
* @param options.video.selfBrowserSurface - Whether to allow the user to select the current tab for capture.
|
|
2428
|
+
* @param options.video.surfaceSwitching - Whether to allow the user to dynamically switch the shared tab during screen-sharing.
|
|
2429
|
+
* @param options.video.monitorTypeSurfaces - Whether to offer the user the option to choose display surfaces whose type is monitor.
|
|
2430
|
+
* @param options.audio - An object containing the audio stream options. If present, a system audio stream will be created.
|
|
2431
|
+
* @param options.audio.systemAudioStreamConstructor - Constructor for the local system audio stream.
|
|
2432
|
+
* @param options.audio.constraints - Audio device constraints.
|
|
2433
|
+
* @param options.audio.systemAudio - Whether to include the system audio among the possible audio sources offered to the user.
|
|
2434
|
+
* @param options.controller - CaptureController to further manipulate the capture session.
|
|
2435
|
+
* @returns A Promise that resolves to a LocalDisplayStream and a LocalSystemAudioStream or an
|
|
2436
|
+
* error. If no system audio is available, the LocalSystemAudioStream will be resolved as null
|
|
2437
|
+
* instead.
|
|
2438
|
+
*/function createDisplayMedia(options){return __awaiter$2(this,void 0,void 0,function*(){var _a,_b;var stream;var videoConstraints=options.video.constraints||true;var audioConstraints=((_a=options.audio)===null||_a===void 0?void 0:_a.constraints)||!!options.audio;try{stream=yield getDisplayMedia({video:videoConstraints,audio:audioConstraints,controller:options.controller,preferCurrentTab:options.video.preferCurrentTab,selfBrowserSurface:options.video.selfBrowserSurface,surfaceSwitching:options.video.surfaceSwitching,systemAudio:(_b=options.audio)===null||_b===void 0?void 0:_b.systemAudio,monitorTypeSurfaces:options.video.monitorTypeSurfaces});}catch(error){throw new WebrtcCoreError(WebrtcCoreErrorType.CREATE_STREAM_FAILED,"Failed to create display and/or system audio streams: ".concat(error));}// eslint-disable-next-line new-cap
|
|
2439
|
+
var localDisplayStream=new options.video.displayStreamConstructor(new MediaStream(stream.getVideoTracks()));if(options.video.videoContentHint){localDisplayStream.contentHint=options.video.videoContentHint;}var localSystemAudioStream=null;if(options.audio&&stream.getAudioTracks().length>0){// eslint-disable-next-line new-cap
|
|
2440
|
+
localSystemAudioStream=new options.audio.systemAudioStreamConstructor(new MediaStream(stream.getAudioTracks()));}return [localDisplayStream,localSystemAudioStream];});}/**
|
|
2400
2441
|
* Creates a LocalDisplayStream with the given parameters.
|
|
2401
2442
|
*
|
|
2402
|
-
* @param
|
|
2443
|
+
* @param displayStreamConstructor - Constructor for the local display stream.
|
|
2403
2444
|
* @param videoContentHint - An optional parameter to give a hint for the content of the stream.
|
|
2404
2445
|
* @returns A Promise that resolves to a LocalDisplayStream or an error.
|
|
2405
|
-
*/function createDisplayStream(
|
|
2446
|
+
*/function createDisplayStream(displayStreamConstructor,videoContentHint){return __awaiter$2(this,void 0,void 0,function*(){var[localDisplayStream]=yield createDisplayMedia({video:{displayStreamConstructor,videoContentHint}});return localDisplayStream;});}/**
|
|
2406
2447
|
* Creates a LocalDisplayStream and a LocalSystemAudioStream with the given parameters.
|
|
2407
2448
|
*
|
|
2408
2449
|
* @param displayStreamConstructor - Constructor for the local display stream.
|
|
@@ -2411,9 +2452,7 @@ stream.getTracks().forEach(track=>track.stop());return callbackRes;}return callb
|
|
|
2411
2452
|
* @returns A Promise that resolves to a LocalDisplayStream and a LocalSystemAudioStream or an
|
|
2412
2453
|
* error. If no system audio is available, the LocalSystemAudioStream will be resolved as null
|
|
2413
2454
|
* instead.
|
|
2414
|
-
*/function createDisplayStreamWithAudio(displayStreamConstructor,systemAudioStreamConstructor,videoContentHint){return __awaiter$2(this,void 0,void 0,function*(){
|
|
2415
|
-
var localDisplayStream=new displayStreamConstructor(new MediaStream(stream.getVideoTracks()));if(videoContentHint){localDisplayStream.contentHint=videoContentHint;}var localSystemAudioStream=null;if(stream.getAudioTracks().length>0){// eslint-disable-next-line new-cap
|
|
2416
|
-
localSystemAudioStream=new systemAudioStreamConstructor(new MediaStream(stream.getAudioTracks()));}return [localDisplayStream,localSystemAudioStream];});}/**
|
|
2455
|
+
*/function createDisplayStreamWithAudio(displayStreamConstructor,systemAudioStreamConstructor,videoContentHint){return __awaiter$2(this,void 0,void 0,function*(){return createDisplayMedia({video:{displayStreamConstructor,videoContentHint},audio:{systemAudioStreamConstructor}});});}/**
|
|
2417
2456
|
* Enumerates the media input and output devices available.
|
|
2418
2457
|
*
|
|
2419
2458
|
* @param deviceKind - Optional filter to return a specific device kind.
|
|
@@ -19019,4 +19058,4 @@ var Media = {
|
|
|
19019
19058
|
}
|
|
19020
19059
|
};
|
|
19021
19060
|
|
|
19022
|
-
export { ActiveSpeakerInfo, CodecInfo$1 as CodecInfo, ConnectionState, ErrorType, Errors, H264Codec, LocalCameraStream, LocalDisplayStream, LocalMicrophoneStream, LocalStream, LocalStreamEventNames, LocalSystemAudioStream, Media, MediaConnectionEventNames, MediaContent, MediaFamily, MediaStreamTrackKind, MediaType, MultistreamRoapMediaConnection, NetworkQualityEventNames, NetworkQualityMonitor, PeerConnection, Policy, ReceiveSlot, ReceiveSlotEvents, ReceiverSelectedInfo, RecommendedOpusBitrates, RemoteStream, RemoteStreamEventNames, RemoteTrackType, RoapMediaConnection, SendSlot, StatsAnalyzer, StatsAnalyzerEventNames, StreamEventNames, StreamRequest, WcmeError, WcmeErrorType, configureWcmeLogger, createCameraStream, createDisplayStream, createDisplayStreamWithAudio, createMicrophoneStream, getAudioInputDevices, getAudioOutputDevices, getDevices, getErrorDescription, getLogger, getMediaFamily, getRecommendedMaxBitrateForFrameSize, getVideoInputDevices, setLogger, setOnDeviceChangeHandler };
|
|
19061
|
+
export { ActiveSpeakerInfo, CodecInfo$1 as CodecInfo, ConnectionState, ErrorType, Errors, H264Codec, LocalCameraStream, LocalDisplayStream, LocalMicrophoneStream, LocalStream, LocalStreamEventNames, LocalSystemAudioStream, Media, MediaConnectionEventNames, MediaContent, MediaFamily, MediaStreamTrackKind, MediaType, MultistreamRoapMediaConnection, NetworkQualityEventNames, NetworkQualityMonitor, PeerConnection, Policy, ReceiveSlot, ReceiveSlotEvents, ReceiverSelectedInfo, RecommendedOpusBitrates, RemoteStream, RemoteStreamEventNames, RemoteTrackType, RoapMediaConnection, SendSlot, StatsAnalyzer, StatsAnalyzerEventNames, StreamEventNames, StreamRequest, WcmeError, WcmeErrorType, configureWcmeLogger, createCameraAndMicrophoneStreams, createCameraStream, createDisplayMedia, createDisplayStream, createDisplayStreamWithAudio, createMicrophoneStream, getAudioInputDevices, getAudioOutputDevices, getDevices, getErrorDescription, getLogger, getMediaFamily, getRecommendedMaxBitrateForFrameSize, getVideoInputDevices, setLogger, setOnDeviceChangeHandler };
|
|
@@ -3,7 +3,7 @@ import { EventEmitter } from '../EventEmitter';
|
|
|
3
3
|
import { ConnectionState, RoapMessage, MultistreamConnectionEvents, RoapEvents } from './eventTypes';
|
|
4
4
|
import { MultistreamConnectionConfig } from './config';
|
|
5
5
|
import { CloseCallback, SendMetricsCallback } from './types';
|
|
6
|
-
export { ReceiveSlot, ReceiveSlotEvents, SendSlot, StreamRequest, MetricsCallback, getAudioOutputDevices, getVideoInputDevices, setOnDeviceChangeHandler, WcmeError, WcmeErrorType, AudioDeviceConstraints, VideoDeviceConstraints, StreamEventNames, LocalStreamEventNames, LocalCameraStream, LocalDisplayStream, LocalSystemAudioStream, LocalMicrophoneStream, LocalStream, MediaStreamTrackKind, PeerConnection, RemoteStream, RemoteStreamEventNames, VideoContentHint, createCameraStream, createDisplayStream, createDisplayStreamWithAudio, createMicrophoneStream, getDevices, getAudioInputDevices, ActiveSpeakerInfo, CodecInfo, getMediaFamily, H264Codec, MediaFamily, MediaType, NamedMediaGroup, StreamState, Policy, PolicySpecificInfo, ReceiverSelectedInfo, getRecommendedMaxBitrateForFrameSize, RecommendedOpusBitrates, } from '@webex/web-client-media-engine';
|
|
6
|
+
export { ReceiveSlot, ReceiveSlotEvents, SendSlot, StreamRequest, MetricsCallback, getAudioOutputDevices, getVideoInputDevices, setOnDeviceChangeHandler, WcmeError, WcmeErrorType, AudioDeviceConstraints, VideoDeviceConstraints, StreamEventNames, LocalStreamEventNames, LocalCameraStream, LocalDisplayStream, LocalSystemAudioStream, LocalMicrophoneStream, LocalStream, MediaStreamTrackKind, PeerConnection, RemoteStream, RemoteStreamEventNames, VideoContentHint, createCameraAndMicrophoneStreams, createCameraStream, createDisplayMedia, createDisplayStream, createDisplayStreamWithAudio, createMicrophoneStream, getDevices, getAudioInputDevices, ActiveSpeakerInfo, CodecInfo, getMediaFamily, H264Codec, MediaFamily, MediaType, NamedMediaGroup, StreamState, Policy, PolicySpecificInfo, ReceiverSelectedInfo, getRecommendedMaxBitrateForFrameSize, RecommendedOpusBitrates, } from '@webex/web-client-media-engine';
|
|
7
7
|
export declare class MultistreamRoapMediaConnection extends EventEmitter<MultistreamConnectionEvents | RoapEvents> {
|
|
8
8
|
private id?;
|
|
9
9
|
private debugId?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultistreamRoapMediaConnection.d.ts","sourceRoot":"","sources":["../../../src/MediaConnection/MultistreamR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{"version":3,"file":"MultistreamRoapMediaConnection.d.ts","sourceRoot":"","sources":["../../../src/MediaConnection/MultistreamRoapMediaConnection.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EACX,gBAAgB,EAChB,QAAQ,EACR,aAAa,EAEb,SAAS,EACT,eAAe,EAChB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAEL,eAAe,EACf,WAAW,EAEX,2BAA2B,EAC3B,UAAU,EACX,MAAM,cAAc,CAAC;AAKtB,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE7D,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,QAAQ,EACR,aAAa,EACb,eAAe,EAEf,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,SAAS,EACT,aAAa,EACb,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,gBAAgB,EAChB,gCAAgC,EAChC,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,UAAU,EACV,oBAAoB,EAEpB,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,SAAS,EACT,WAAW,EACX,SAAS,EACT,eAAe,EACf,WAAW,EACX,MAAM,EACN,kBAAkB,EAClB,oBAAoB,EAEpB,oCAAoC,EACpC,uBAAuB,GACxB,MAAM,gCAAgC,CAAC;AAGxC,qBAAa,8BAA+B,SAAQ,YAAY,CAC9D,2BAA2B,GAAG,UAAU,CACzC;IACC,OAAO,CAAC,EAAE,CAAC,CAAS;IAEpB,OAAO,CAAC,OAAO,CAAC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AAiB;IAKzB,OAAO,CAAC,oBAAoB;YAwCd,kBAAkB;IAqCzB,oBAAoB,IAAI,oBAAoB;CAGpD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/internal-media-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/cjs",
|
|
6
6
|
"dist/esm",
|
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
"license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)",
|
|
20
20
|
"author": "devsupport@webex.com",
|
|
21
21
|
"engines": {
|
|
22
|
-
"node": ">=
|
|
22
|
+
"node": ">=22.0.0",
|
|
23
|
+
"npm": "please-use-yarn",
|
|
24
|
+
"yarn": ">=1.22.0"
|
|
23
25
|
},
|
|
24
26
|
"publishConfig": {
|
|
25
27
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
"@webex/rtcstats": "^1.5.0",
|
|
59
61
|
"@webex/ts-sdp": "1.7.0",
|
|
60
62
|
"@webex/web-capabilities": "^1.4.1",
|
|
61
|
-
"@webex/web-client-media-engine": "3.
|
|
63
|
+
"@webex/web-client-media-engine": "3.28.0",
|
|
62
64
|
"events": "^3.3.0",
|
|
63
65
|
"typed-emitter": "^2.1.0",
|
|
64
66
|
"uuid": "^8.3.2",
|
|
@@ -168,5 +170,6 @@
|
|
|
168
170
|
}
|
|
169
171
|
]
|
|
170
172
|
]
|
|
171
|
-
}
|
|
173
|
+
},
|
|
174
|
+
"packageManager": "yarn@1.22.22"
|
|
172
175
|
}
|