UNPKG

@bililive-tools/huya-recorder

Version:
40 lines (39 loc) 1.06 kB
import { Recorder } from "@bililive-tools/manager"; import type { SourceProfile, StreamProfile } from "./types.js"; export declare function getInfo(channelId: string): Promise<{ living: boolean; owner: string; title: string; roomId: number; avatar: string; cover: string; liveStartTime: Date; liveId: string; recordStartTime: Date; }>; export declare function getStream(opts: Pick<Recorder, "channelId" | "quality" | "streamPriorities" | "sourcePriorities" | "api" | "formatPriorities"> & { strictQuality?: boolean; api?: "web" | "mp" | "auto" | "wup"; }): Promise<{ currentStream: { ua: string; name: string; source: string; uid: number; subChannelId: number; channelId: number; url: string; }; living: boolean; api: string; id: number; owner: string; title: string; roomId: number; avatar: string; cover: string; streams: StreamProfile[]; sources: SourceProfile[]; startTime: Date; liveId: string; }>;