mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Video Info bug fixes and stream improvements
This commit is contained in:
@@ -71,6 +71,7 @@ export class SeekStream {
|
||||
duration: number,
|
||||
headerLength: number,
|
||||
contentLength: number,
|
||||
bitrate: number,
|
||||
video_url: string,
|
||||
options: StreamOptions
|
||||
) {
|
||||
@@ -83,7 +84,7 @@ export class SeekStream {
|
||||
this.type = StreamType.Opus;
|
||||
this.bytes_count = 0;
|
||||
this.video_url = video_url;
|
||||
this.per_sec_bytes = Math.ceil(contentLength / duration);
|
||||
this.per_sec_bytes = bitrate ? Math.ceil(bitrate / 8) : Math.ceil(contentLength / duration);
|
||||
this.header_length = headerLength;
|
||||
this.content_length = contentLength;
|
||||
this.request = null;
|
||||
|
||||
Reference in New Issue
Block a user