@voicenter-team/opensips-js 1.0.129 → 1.0.131
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 -91
- package/dist/opensips-js.cjs.js +131 -132
- package/dist/opensips-js.es.js +13156 -20843
- package/dist/opensips-js.iife.js +131 -132
- package/dist/opensips-js.umd.js +131 -132
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
@@ -304,13 +304,6 @@ declare type conferenceEndListener = (sessionId) => void
|
|
304
304
|
|
305
305
|
declare type conferenceStartListener = () => void
|
306
306
|
|
307
|
-
declare const CONFERENCING_MODE: {
|
308
|
-
WHITEBOARD: string;
|
309
|
-
IMAGE_WHITEBOARD: string;
|
310
|
-
};
|
311
|
-
|
312
|
-
declare type ConferencingModeType = typeof CONFERENCING_MODE[keyof typeof CONFERENCING_MODE];
|
313
|
-
|
314
307
|
declare type connectionListener = (value: boolean) => void
|
315
308
|
|
316
309
|
declare interface ConnectOptions {
|
@@ -444,12 +437,6 @@ declare interface JanusSessionEventMap {
|
|
444
437
|
'peerconnection:setremotedescriptionfailed': Listener_2;
|
445
438
|
}
|
446
439
|
|
447
|
-
declare type KonvaDrawerOptions = {
|
448
|
-
strokeWidth?: number
|
449
|
-
strokeColor?: string
|
450
|
-
emptyDrawerRectColor?: string
|
451
|
-
}
|
452
|
-
|
453
440
|
declare type Listener = (event: unknown) => void
|
454
441
|
|
455
442
|
declare type Listener_2 = (event: unknown) => void
|
@@ -853,54 +840,6 @@ declare interface RTCSessionExtended extends RTCSession {
|
|
853
840
|
init_icncoming(request: IncomingRequest): void
|
854
841
|
}
|
855
842
|
|
856
|
-
export declare class ScreenSharePlugin extends BaseNewStreamPlugin {
|
857
|
-
constructor();
|
858
|
-
generateStream(): Promise<MediaStream>;
|
859
|
-
kill(): Promise<void>;
|
860
|
-
}
|
861
|
-
|
862
|
-
declare interface ScreenShareWhiteboardOptions {
|
863
|
-
selectors: ScreenShareWhiteboardSelectors;
|
864
|
-
}
|
865
|
-
|
866
|
-
export declare class ScreenShareWhiteBoardPlugin extends BaseProcessStreamPlugin {
|
867
|
-
private video;
|
868
|
-
private wrapperEl;
|
869
|
-
private screenShareKonvaDrawer;
|
870
|
-
private initialStream;
|
871
|
-
private imageSrc;
|
872
|
-
private konvaDrawer;
|
873
|
-
mode: ConferencingModeType;
|
874
|
-
private screenSharePlugin;
|
875
|
-
private selectors;
|
876
|
-
constructor(screenSharePlugin: any, options?: Partial<ScreenShareWhiteboardOptions>);
|
877
|
-
private createVideoElement;
|
878
|
-
private getAspectRatioDimensions;
|
879
|
-
/**
|
880
|
-
* Starts stream processing to add mask effect for it
|
881
|
-
* This method is useful in cases like drawing over the screen share as we
|
882
|
-
* already have a screen share stream and there is no need to create another one
|
883
|
-
* @param {MediaStream} stream
|
884
|
-
* @return {MediaStream} processed stream with mask effect
|
885
|
-
*/
|
886
|
-
start(stream: any): Promise<MediaStream>;
|
887
|
-
/**
|
888
|
-
* Stops stream processing
|
889
|
-
*/
|
890
|
-
stop(): void;
|
891
|
-
setupScreenShareDrawerOptions(options: KonvaDrawerOptions): void;
|
892
|
-
}
|
893
|
-
|
894
|
-
declare interface ScreenShareWhiteboardSelectors {
|
895
|
-
container: string;
|
896
|
-
compositeCanvasContainer: string;
|
897
|
-
compositeCanvas: string;
|
898
|
-
drawerContainer: string;
|
899
|
-
videoElement: string;
|
900
|
-
videoElementContainer: string;
|
901
|
-
document: HTMLElement;
|
902
|
-
}
|
903
|
-
|
904
843
|
declare type startBlurListener = () => void
|
905
844
|
|
906
845
|
declare type startScreenShareListener = (event: MediaStream) => void
|
@@ -1042,34 +981,4 @@ declare interface WebrtcMetricsConfigType {
|
|
1042
981
|
ticket?: boolean
|
1043
982
|
}
|
1044
983
|
|
1045
|
-
declare interface WhiteboardElementSelectors {
|
1046
|
-
container: string;
|
1047
|
-
drawerContainer: string;
|
1048
|
-
konvaContainer: HTMLElement;
|
1049
|
-
document: HTMLElement;
|
1050
|
-
}
|
1051
|
-
|
1052
|
-
declare interface WhiteboardOptions {
|
1053
|
-
mode: ConferencingModeType;
|
1054
|
-
imageSrc?: string;
|
1055
|
-
selectors: Partial<WhiteboardElementSelectors>;
|
1056
|
-
}
|
1057
|
-
|
1058
|
-
export declare class WhiteBoardPlugin extends BaseNewStreamPlugin {
|
1059
|
-
private visualizationConfig;
|
1060
|
-
private rafId;
|
1061
|
-
private imageSrc;
|
1062
|
-
private konvaDrawer;
|
1063
|
-
private selectors;
|
1064
|
-
mode: ConferencingModeType;
|
1065
|
-
constructor(options: WhiteboardOptions);
|
1066
|
-
setupDrawerOptions(options: KonvaDrawerOptions): void;
|
1067
|
-
setMode(mode: ConferencingModeType, imageSrc?: string): void;
|
1068
|
-
setupDrawerImage(imageSrc: any): void;
|
1069
|
-
private drawEmptyWhiteboard;
|
1070
|
-
private drawImageWhiteboard;
|
1071
|
-
generateStream(): Promise<void>;
|
1072
|
-
kill(): Promise<void>;
|
1073
|
-
}
|
1074
|
-
|
1075
984
|
export { }
|