LiveStream issues fixed

This commit is contained in:
killer069
2022-01-04 15:02:51 +05:30
parent ffbe882037
commit 59f3829e27
3 changed files with 111 additions and 99 deletions

View File

@@ -19,6 +19,7 @@ export interface StreamOptions {
quality?: number;
language?: string;
htmldata?: boolean;
precache?: number;
}
/**
@@ -71,7 +72,8 @@ export async function stream_from_info(
return new LiveStream(
info.LiveStreamData.dashManifestUrl,
info.format[info.format.length - 1].targetDurationSec as number,
info.video_details.url
info.video_details.url,
options.precache
);
}