@voicenter-team/opensips-js 1.0.85 → 1.0.87

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.ts CHANGED
@@ -230,6 +230,8 @@ declare type changeIsDNDListener = (value: boolean) => void
230
230
 
231
231
  declare type changeIsMutedListener = (value: boolean) => void
232
232
 
233
+ declare type changeMainVideoStreamListener = (event: { name: string, event: MediaStream }) => void
234
+
233
235
  declare type changeMuteWhenJoinListener = (value: boolean) => void
234
236
 
235
237
  declare type ChangeVolumeEventType = {
@@ -373,6 +375,8 @@ declare type ListenerEventType = EndEvent | IncomingEvent | OutgoingEvent | Inco
373
375
 
374
376
  declare type ListenersKeyType = keyof OpenSIPSEventMap
375
377
 
378
+ declare type memberJoinListener = (event: object) => void
379
+
376
380
  declare const MODULES: {
377
381
  readonly AUDIO: "audio";
378
382
  readonly VIDEO: "video";
@@ -641,6 +645,8 @@ declare interface OpenSIPSEventMap extends UAEventMap {
641
645
  changeCallVolume: changeCallVolumeListener
642
646
  newMSRPMessage: MSRPMessageListener
643
647
  newMSRPSession: MSRPSessionListener
648
+ changeMainVideoStream: changeMainVideoStreamListener
649
+ memberJoin: memberJoinListener
644
650
  }
645
651
 
646
652
  declare class OpenSIPSJS extends UAExtended {
@@ -767,7 +773,8 @@ declare class UAExtended extends UAConstructor implements UAExtendedInterface {
767
773
  _janus_sessions: any[];
768
774
  constructor(configuration: UAConfiguration);
769
775
  call(target: string, options?: CallOptionsExtended): RTCSession;
770
- joinVideoCall(target: any, options: any): any;
776
+ joinVideoCall(target: any, displayName: any, options: any): any;
777
+ _loadConfig(configuration: any): void;
771
778
  /**
772
779
  * new MSRPSession
773
780
  */
@@ -828,7 +835,8 @@ declare class VideoModule {
828
835
  private context;
829
836
  constructor(context: any);
830
837
  get sipOptions(): any;
831
- initCall(target: string): void;
838
+ initCall(target: string, displayName: string): void;
839
+ stop(options?: {}): void;
832
840
  }
833
841
 
834
842
  declare type VideoModuleName = typeof MODULES.VIDEO