Update README.md
This commit is contained in:
parent
d3c14e0138
commit
f8f5416869
@ -55,12 +55,9 @@ if(validate(url) || validate_playlist(url)) // This will check both and if anyon
|
|||||||
|
|
||||||
### stream(url : `string`, cookie? : `string`)
|
### stream(url : `string`, cookie? : `string`)
|
||||||
*This is basic to create a youtube stream from a url.*
|
*This is basic to create a youtube stream from a url.*
|
||||||
<<<<<<< HEAD
|
|
||||||
**Cookies are optional and are required for playing age restricted videos.**
|
|
||||||
=======
|
|
||||||
|
|
||||||
**[Cookies](https://github.com/play-dl/play-dl/discussions/34) are optional and are required for playing age restricted videos.**
|
**[Cookies](https://github.com/play-dl/play-dl/discussions/34) are optional and are required for playing age restricted videos.**
|
||||||
>>>>>>> 4487ef38a991af12fb1660bc7ffe3cf7418433ca
|
|
||||||
```js
|
```js
|
||||||
let source = await stream("url") // This will create a stream Class which contains type and stream to be played.
|
let source = await stream("url") // This will create a stream Class which contains type and stream to be played.
|
||||||
let resource = createAudioResource(source.stream, {
|
let resource = createAudioResource(source.stream, {
|
||||||
@ -102,7 +99,6 @@ console.log(results[0].url);
|
|||||||
|
|
||||||
### video_basic_info(url : `string`, cookie? : `string`)
|
### video_basic_info(url : `string`, cookie? : `string`)
|
||||||
*The basic video details `play-dl` fetches at first.*
|
*The basic video details `play-dl` fetches at first.*
|
||||||
**Cookies are optional and are required for playing age restricted videos.**
|
|
||||||
|
|
||||||
**[Cookies](https://github.com/play-dl/play-dl/discussions/34) are optional and are required for playing age restricted videos.**
|
**[Cookies](https://github.com/play-dl/play-dl/discussions/34) are optional and are required for playing age restricted videos.**
|
||||||
|
|
||||||
@ -111,7 +107,6 @@ const video = await video_basic_info(url)
|
|||||||
```
|
```
|
||||||
### video_info(url : `string`, cookie? : `string`)
|
### video_info(url : `string`, cookie? : `string`)
|
||||||
*This contains everything with deciphered formats along with `video_details`.*
|
*This contains everything with deciphered formats along with `video_details`.*
|
||||||
**Cookies are optional and are required for playing age restricted videos.**
|
|
||||||
|
|
||||||
**[Cookies](https://github.com/play-dl/play-dl/discussions/34) are optional and are required for playing age restricted videos.**
|
**[Cookies](https://github.com/play-dl/play-dl/discussions/34) are optional and are required for playing age restricted videos.**
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user