Skip to content

Commit

Permalink
Janus npm types upgrade (meetecho#2528)
Browse files Browse the repository at this point in the history
  • Loading branch information
agonza1 committed Jan 23, 2021
1 parent 78434aa commit 3edb780
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions npm/janus.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,32 @@ declare namespace JanusJS {
[otherProps: string]: any;
};
jsep?: JSEP;
success?: Function;
error?: (error: any) => void;
}

interface PluginHandle {
plugin: string;
id: string;
token?: string;
detached : boolean;
webrtcStuff: {
started: boolean,
myStream: MediaStream,
streamExternal: boolean,
remoteStream: MediaStream,
mySdp: any,
mediaConstraints: any,
pc: RTCPeerConnection,
dataChannel: Array<RTCDataChannel>,
dtmfSender: any,
trickle: boolean,
iceDone: boolean,
volume: {
value: number,
timer: number
}
};
getId(): string;
getPlugin(): string;
send(message: PluginMessage): void;
Expand All @@ -139,6 +162,8 @@ declare namespace JanusJS {
}

class Janus {
static webRTCAdapter: any;
static safariVp8: boolean;
static useDefaultDependencies(deps: Partial<Dependencies>): DependenciesResult;
static useOldDependencies(deps: Partial<Dependencies>): DependenciesResult;
static init(options: InitOptions): void;
Expand Down

0 comments on commit 3edb780

Please sign in to comment.