This commit is contained in:
2023-06-27 15:06:20 +01:00
parent f4ea779b0f
commit 5653a6b027
18 changed files with 307 additions and 15 deletions

26
src/providers/index.ts Normal file
View File

@ -0,0 +1,26 @@
import { StreamState } from "index"
export interface StreamProvider {
/**
* Get general info about connected provider to test everything is working
*/
info(): Promise<StreamProviderInfo>
/**
* Create a config object to save in localStorage
*/
createConfig(): any & { type: StreamProviders }
}
export enum StreamProviders {
Owncast = "owncast",
Cloudflare = "cloudflare"
}
export interface StreamProviderInfo {
name: string
summary?: string
version?: string
state: StreamState
viewers: number
}