@voicenter-team/opensips-js 1.0.128 → 1.0.130
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/index.d.ts +0 -77
- package/dist/opensips-js.cjs.js +119 -18317
- package/dist/opensips-js.es.js +14712 -69024
- package/dist/opensips-js.iife.js +119 -18317
- package/dist/opensips-js.umd.js +119 -18317
- package/package.json +1 -10
package/dist/index.d.ts
CHANGED
@@ -462,8 +462,6 @@ declare type ListenerEventType = EndEvent | IncomingEvent | OutgoingEvent | Inco
|
|
462
462
|
|
463
463
|
declare type ListenersKeyType = keyof OpenSIPSEventMap
|
464
464
|
|
465
|
-
declare type MaskEffectTypeConfigType = 'bokehEffect' | 'backgroundImageEffect';
|
466
|
-
|
467
465
|
declare type memberHangupListener = (event: object) => void
|
468
466
|
|
469
467
|
declare type memberJoinListener = (event: object) => void
|
@@ -795,10 +793,6 @@ declare interface OutgoingMSRPSessionEvent {
|
|
795
793
|
|
796
794
|
declare type OutgoingMSRPSessionListener = (event: OutgoingMSRPSessionEvent) => void;
|
797
795
|
|
798
|
-
declare interface PluginConfig {
|
799
|
-
immediate: boolean;
|
800
|
-
}
|
801
|
-
|
802
796
|
declare type readyListener = (value: boolean) => void
|
803
797
|
|
804
798
|
declare interface RemoteIdentityCallType {
|
@@ -915,68 +909,6 @@ declare type stopBlurListener = () => void
|
|
915
909
|
|
916
910
|
declare type stopScreenShareListener = () => void
|
917
911
|
|
918
|
-
declare interface StreamMaskOptions {
|
919
|
-
effect: MaskEffectTypeConfigType;
|
920
|
-
base64Image?: string;
|
921
|
-
visualizationConfig?: VisualizationConfigType;
|
922
|
-
}
|
923
|
-
|
924
|
-
export declare class StreamMaskPlugin extends BaseProcessStreamPlugin {
|
925
|
-
private visualizationConfig;
|
926
|
-
private maskEffectType;
|
927
|
-
private base64ImageMask;
|
928
|
-
private rafId;
|
929
|
-
private timeoutId;
|
930
|
-
private segmenter;
|
931
|
-
private camera;
|
932
|
-
private canvas;
|
933
|
-
private ctx;
|
934
|
-
private visibilityState;
|
935
|
-
constructor(options: StreamMaskOptions, pluginConfig?: PluginConfig);
|
936
|
-
/**
|
937
|
-
* Starts stream processing to add mask effect for it
|
938
|
-
* @param {MediaStream} stream
|
939
|
-
* @param {'bokehEffect' | 'backgroundImageEffect'} effect - defines the mask effect type
|
940
|
-
* @param {MediaStreamConstraints} options - media stream constraints
|
941
|
-
* @param {object} options - (optional) additional mask effect options
|
942
|
-
* @return {MediaStream} processed stream with mask effect
|
943
|
-
*/
|
944
|
-
start(stream: any): Promise<MediaStream>;
|
945
|
-
/**
|
946
|
-
* Listens to visibility change (like switching active tab)
|
947
|
-
* and switches between different kinds of requestAnimationFrame
|
948
|
-
*/
|
949
|
-
private processVisibilityChange;
|
950
|
-
/**
|
951
|
-
* Adds audio tracks to MediaStream which contains only video tracks
|
952
|
-
* @param {MediaStream} stream - stream with only video tracks
|
953
|
-
* @param {MediaStreamConstraints} options - media stream constraints
|
954
|
-
* @return {MediaStream} combined stream with both audio and video tracks
|
955
|
-
*/
|
956
|
-
private populateWithAudioTracks;
|
957
|
-
/**
|
958
|
-
* Stops stream processing
|
959
|
-
*/
|
960
|
-
stop(): void;
|
961
|
-
setupVisualizationConfig(config: VisualizationConfigType): void;
|
962
|
-
/**
|
963
|
-
* Starts rendering process by calling itself recursively.
|
964
|
-
* Uses requestAnimationFrame method for recursive invoking.
|
965
|
-
*/
|
966
|
-
private renderPrediction;
|
967
|
-
/**
|
968
|
-
* Creates Body Segmenter which is used for people segmentation and poses estimation
|
969
|
-
* @return {segmenter} segmenter instance
|
970
|
-
*/
|
971
|
-
private createSegmenter;
|
972
|
-
/**
|
973
|
-
* Render function which draws masked effect to canvas.
|
974
|
-
*/
|
975
|
-
private renderResult;
|
976
|
-
private applyBokehEffect;
|
977
|
-
private applyBackgroundImageEffect;
|
978
|
-
}
|
979
|
-
|
980
912
|
declare interface StreamMediaType extends HTMLAudioElement {
|
981
913
|
className: string
|
982
914
|
setSinkId (id: string): Promise<void>
|
@@ -1098,15 +1030,6 @@ declare class VideoModule {
|
|
1098
1030
|
|
1099
1031
|
declare type VideoModuleName = typeof MODULES.VIDEO
|
1100
1032
|
|
1101
|
-
declare type VisualizationConfigType = {
|
1102
|
-
foregroundThreshold?: number;
|
1103
|
-
maskOpacity?: number;
|
1104
|
-
maskBlur?: number;
|
1105
|
-
pixelCellWidth?: number;
|
1106
|
-
backgroundBlur?: number;
|
1107
|
-
edgeBlur?: number;
|
1108
|
-
};
|
1109
|
-
|
1110
1033
|
declare interface WebrtcMetricsConfigType {
|
1111
1034
|
refreshEvery?: number
|
1112
1035
|
startAfter?: number
|