Update README.md
This commit is contained in:
parent
2e12ca61d8
commit
f30399c0d8
@ -33,6 +33,7 @@ const results = await youtube.search('post malone sunflower', options);
|
||||
```
|
||||
|
||||
# Stream
|
||||
|
||||
### stream(url : `string`, error_check? : `boolean`)
|
||||
*This is basic to create a youtube stream from a url.*
|
||||
```js
|
||||
@ -45,6 +46,7 @@ let source = await stream(<url>, true) //This will check for 404 error if any
|
||||
```
|
||||
 `Note : enabling error_check will take more time to start streaming`
|
||||
|
||||
|
||||
### stream_from_info(info : `infoData`, error_check? : `boolean`)
|
||||
*This is basic to create a youtube stream from a info [ from video_info function ].*
|
||||
```js
|
||||
@ -58,6 +60,7 @@ let source = await stream_from_info(info, true) //This will check for 404 error
|
||||
```
|
||||
 `Note : enabling error_check will take more time to start streaming`
|
||||
|
||||
|
||||
# Search
|
||||
|
||||
### search(url : `string`, options? : [SearchOptions](https://github.com/play-dl/play-dl/tree/main/play-dl/YouTube#searchoptions))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user