Update README.md

This commit is contained in:
Killer069 2021-08-30 18:47:44 +05:30 committed by GitHub
parent 2e12ca61d8
commit f30399c0d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```
![#f03c15](https://via.placeholder.com/15/f03c15/000000?text=+) `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
```
![#f03c15](https://via.placeholder.com/15/f03c15/000000?text=+) `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))