mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
More Docs Added
This commit is contained in:
@@ -71,7 +71,7 @@ export class LiveStream {
|
||||
* @param video_url Live Stream video url.
|
||||
*/
|
||||
constructor(dash_url: string, target_interval: number, video_url: string) {
|
||||
this.stream = new Readable({ highWaterMark: 10 * 1000 * 1000, read() {} });
|
||||
this.stream = new Readable({ highWaterMark: 5 * 1000 * 1000, read() {} });
|
||||
this.type = StreamType.Arbitrary;
|
||||
this.url = dash_url;
|
||||
this.base_url = '';
|
||||
@@ -258,7 +258,7 @@ export class Stream {
|
||||
video_url: string,
|
||||
options: StreamOptions
|
||||
) {
|
||||
this.stream = new Readable({ highWaterMark: 10 * 1000 * 1000, read() {} });
|
||||
this.stream = new Readable({ highWaterMark: 5 * 1000 * 1000, read() {} });
|
||||
this.url = url;
|
||||
this.quality = options.quality as number;
|
||||
this.proxy = options.proxy || undefined;
|
||||
|
||||
@@ -157,6 +157,8 @@ export class YouTubePlayList {
|
||||
}
|
||||
/**
|
||||
* Fetches remaining data from playlist
|
||||
*
|
||||
* For fetching and getting all songs data, see `total_pages` property.
|
||||
* @param max Max no of videos to fetch
|
||||
*
|
||||
* Default = Infinity
|
||||
@@ -183,7 +185,7 @@ export class YouTubePlayList {
|
||||
* For example, if you want to get 101 - 200 songs
|
||||
*
|
||||
* ```ts
|
||||
* const playlist = play.playlist_info('playlist url')
|
||||
* const playlist = await play.playlist_info('playlist url')
|
||||
*
|
||||
* await playlist.fetch()
|
||||
*
|
||||
@@ -203,13 +205,13 @@ export class YouTubePlayList {
|
||||
* For getting all songs in a playlist
|
||||
*
|
||||
* ```ts
|
||||
* const playlist = play.playlist_info('playlist url');
|
||||
* const playlist = await play.playlist_info('playlist url');
|
||||
*
|
||||
* await playlist.fetch();
|
||||
*
|
||||
* let result = [];
|
||||
*
|
||||
* for (let i = 0; i <= playlist.total_pages;i++) {
|
||||
* for (let i = 0; i <= playlist.total_pages; i++) {
|
||||
* result.push(playlist.page(i));
|
||||
* }
|
||||
* ```
|
||||
|
||||
Reference in New Issue
Block a user