Skip to content

Commit

Permalink
Add typescript definitions to both whip and whep (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronelliott committed Oct 3, 2023
1 parent d0cba4f commit fd5508e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions whep.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export declare class WHEPClient extends EventTarget {
constructor();
view(pc: RTCPeerConnection, url: string, token?: string): Promise<void>;
restart(): void;
trickle(): Promise<void>;
mute(muted: any): Promise<void>;
stop(): Promise<void>;
selectLayer(): Promise<void>;
unselectLayer(): Promise<void>;
}
8 changes: 8 additions & 0 deletions whip.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export declare class WHIPClient {
constructor();
publish(pc: RTCPeerConnection, url: string, token?: string): Promise<void>;
restart(): void;
trickle(): Promise<void>;
mute(muted: any): Promise<void>;
stop(): Promise<void>;
}

0 comments on commit fd5508e

Please sign in to comment.