@voicenter-team/opensips-js 1.0.130 → 1.0.132

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 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
@@ -712,6 +699,7 @@ declare type MSRPSessionListener = IncomingMSRPSessionListener | OutgoingMSRPSes
712
699
  declare interface OpenSIPSEventMap extends UAEventMap {
713
700
  ready: readyListener
714
701
  connection: connectionListener
702
+ reconnecting: reconnectionListener
715
703
  // JSSIP
716
704
  changeActiveCalls: changeActiveCallsListener
717
705
  changeActiveMessages: changeActiveMessagesListener
@@ -782,6 +770,7 @@ declare class OpenSIPSJS extends UAExtended {
782
770
  triggerListener({ listenerType, session, event }: TriggerListenerOptions): void;
783
771
  private setInitialized;
784
772
  private setConnected;
773
+ private setReconnecting;
785
774
  }
786
775
  export default OpenSIPSJS;
787
776
 
@@ -795,6 +784,8 @@ declare type OutgoingMSRPSessionListener = (event: OutgoingMSRPSessionEvent) =>
795
784
 
796
785
  declare type readyListener = (value: boolean) => void
797
786
 
787
+ declare type reconnectionListener = (value: boolean) => void
788
+
798
789
  declare interface RemoteIdentityCallType {
799
790
  _display_name: string
800
791
  _uri: {
@@ -853,54 +844,6 @@ declare interface RTCSessionExtended extends RTCSession {
853
844
  init_icncoming(request: IncomingRequest): void
854
845
  }
855
846
 
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
847
  declare type startBlurListener = () => void
905
848
 
906
849
  declare type startScreenShareListener = (event: MediaStream) => void
@@ -1042,34 +985,4 @@ declare interface WebrtcMetricsConfigType {
1042
985
  ticket?: boolean
1043
986
  }
1044
987
 
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
988
  export { }