Renamed mode to seekMode

This commit is contained in:
killer069 2021-12-13 14:11:50 +05:30
parent 6bacf890fb
commit c1d8aedc5e
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ import { WebmSeeker, WebmSeekerState } from "./WebmSeeker";
video_url: string, video_url: string,
options: StreamOptions options: StreamOptions
) { ) {
this.stream = new WebmSeeker({ highWaterMark: 5 * 1000 * 1000, readableObjectMode : true, mode : options.mode }); this.stream = new WebmSeeker({ highWaterMark: 5 * 1000 * 1000, readableObjectMode : true, mode : options.seekMode });
this.url = url; this.url = url;
this.quality = options.quality as number; this.quality = options.quality as number;
this.type = StreamType.Opus; this.type = StreamType.Opus;

View File

@ -12,7 +12,7 @@ export enum StreamType {
} }
export interface StreamOptions { export interface StreamOptions {
mode? : "precise" | "granular" seekMode? : "precise" | "granular"
seek? : number seek? : number
quality?: number; quality?: number;
htmldata?: boolean; htmldata?: boolean;