Update README.md
This commit is contained in:
parent
d7a725d7ca
commit
a854657338
@ -53,8 +53,9 @@ if(validate(url) || validate_playlist(url)) // This will check both and if anyon
|
||||
|
||||
# Stream
|
||||
|
||||
### stream(url : `string`)
|
||||
### stream(url : `string`, cookie? : `string`)
|
||||
*This is basic to create a youtube stream from a url.*
|
||||
**Cookies are optional and are required for playing age restricted videos.**
|
||||
```js
|
||||
let source = await stream("url") // This will create a stream Class which contains type and stream to be played.
|
||||
let resource = createAudioResource(source.stream, {
|
||||
@ -94,14 +95,16 @@ console.log(results[0].url);
|
||||
|
||||
# Video
|
||||
|
||||
### video_basic_info(url : `string`)
|
||||
### video_basic_info(url : `string`, cookie? : `string`)
|
||||
*The basic video details `play-dl` fetches at first.*
|
||||
**Cookies are optional and are required for playing age restricted videos.**
|
||||
|
||||
```js
|
||||
const video = await video_basic_info(url)
|
||||
```
|
||||
### video_info(url : `string`)
|
||||
### video_info(url : `string`, cookie? : `string`)
|
||||
*This contains everything with deciphered formats along with `video_details`.*
|
||||
**Cookies are optional and are required for playing age restricted videos.**
|
||||
|
||||
```js
|
||||
const video = await video_info(url)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user