mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-31 08:08:34 +00:00
27 lines
486 B
TypeScript
27 lines
486 B
TypeScript
import { MWEmbedStream } from "./streams";
|
|
|
|
export enum MWEmbedType {
|
|
M4UFREE = "m4ufree",
|
|
STREAMM4U = "streamm4u",
|
|
PLAYM4U = "playm4u",
|
|
}
|
|
|
|
export type MWEmbed = {
|
|
type: MWEmbedType;
|
|
url: string;
|
|
};
|
|
|
|
export type MWEmbedContext = {
|
|
progress(percentage: number): void;
|
|
url: string;
|
|
};
|
|
|
|
export type MWEmbedScraper = {
|
|
id: string;
|
|
displayName: string;
|
|
for: MWEmbedType;
|
|
rank: number;
|
|
disabled?: boolean;
|
|
|
|
getStream(ctx: MWEmbedContext): Promise<MWEmbedStream>;
|
|
};
|