From ce4cfb1ffdd608c96a085cb82275de653c45ddbc Mon Sep 17 00:00:00 2001 From: Adriaan Groenenboom Date: Tue, 18 Nov 2014 17:26:33 +0100 Subject: [PATCH] Fixed bugs in SIPml definition --- sipml/sipml.d.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sipml/sipml.d.ts b/sipml/sipml.d.ts index a4fe327842..84a6944548 100644 --- a/sipml/sipml.d.ts +++ b/sipml/sipml.d.ts @@ -19,7 +19,7 @@ declare module SIPml { public removeEventListener(type: any): void; } - class Session { + class Session extends EventTarget { public accept(configuration?: Session.Configuration): number; public getId(): number; public getRemoteFriendlyName(): string; @@ -30,14 +30,14 @@ declare module SIPml { export module Session { interface Configuration { - audio_remote?: HTMLAudioElement; + audio_remote?: HTMLElement; bandwidth?: Object; expires?: number; from?: string; sip_caps?: Object[]; sip_headers?: Object[]; - video_local?: HTMLVideoElement; - video_remote?: HTMLVideoElement; + video_local?: HTMLElement; + video_remote?: HTMLElement; video_size?: Object; } @@ -83,9 +83,9 @@ declare module SIPml { class Stack extends EventTarget { public constructor(configuration?: Stack.Configuration); public setConfiguration(configuration: Stack.Configuration): number; - public newSession(type: string, configuration: Stack.Configuration): any; + public newSession(type: string, configuration?: Session.Configuration): any; public start(): number; - public stop(timeout: number): number; + public stop(timeout?: number): number; } export module Stack { @@ -147,3 +147,4 @@ declare module SIPml { function setWebRtcType(type: string): boolean; } +