-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
568 additions
and
698 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,6 @@ | |
/.cache | ||
# Packaged module. | ||
*.tgz | ||
|
||
## Text editors' config files. | ||
/.zed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { EnhancedEventEmitter } from './enhancedEvents'; | ||
import type { Worker, WorkerSettings } from './WorkerTypes'; | ||
import type { RtpCapabilities } from './rtpParametersTypes'; | ||
import type { parseScalabilityMode } from './scalabilityModesUtils'; | ||
import type { AppData } from './types'; | ||
|
||
export type ObserverEvents = { | ||
newworker: [Worker]; | ||
}; | ||
|
||
export type Observer = EnhancedEventEmitter<ObserverEvents>; | ||
|
||
/** | ||
* Event listeners for mediasoup generated logs. | ||
*/ | ||
export type LogEventListeners = { | ||
ondebug?: (namespace: string, log: string) => void; | ||
onwarn?: (namespace: string, log: string) => void; | ||
onerror?: (namespace: string, log: string, error?: Error) => void; | ||
}; | ||
|
||
export interface Index { | ||
version: string; | ||
observer: EnhancedEventEmitter<ObserverEvents>; | ||
workerBin: string; | ||
setLogEventListeners: (listeners?: LogEventListeners) => void; | ||
createWorker: <WorkerAppData extends AppData = AppData>( | ||
options?: WorkerSettings<WorkerAppData> | ||
) => Promise<Worker<WorkerAppData>>; | ||
getSupportedRtpCapabilities: () => RtpCapabilities; | ||
parseScalabilityMode: typeof parseScalabilityMode; | ||
} |
Oops, something went wrong.