mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Update README.md
This commit is contained in:
@@ -50,7 +50,8 @@ _This is basic to create a stream from a youtube or soundcloud url._
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
let source = await stream("url") // This will create a stream Class.
|
let source = await stream("url") // This will create a stream Class.
|
||||||
let resource = createAudioResource(source, {
|
|
||||||
|
let resource = createAudioResource(source, {
|
||||||
inputType : source.type
|
inputType : source.type
|
||||||
}) // This creates resource for playing
|
}) // This creates resource for playing
|
||||||
```
|
```
|
||||||
@@ -65,9 +66,11 @@ _This is basic to create a stream from a info [ from [video_info](https://github
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
let source = await stream_from_info(info) // This will create a stream Class from video_info or SoundCoudTrack Class.
|
let source = await stream_from_info(info) // This will create a stream Class from video_info or SoundCoudTrack Class.
|
||||||
|
|
||||||
/* OR
|
/* OR
|
||||||
let source = await stream_from_info(info, cookie) This will create a stream Class and also give cookies if retrying.
|
let source = await stream_from_info(info, cookie) This will create a stream Class and also give cookies if retrying.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
let resource = createAudioResource(source, {
|
let resource = createAudioResource(source, {
|
||||||
inputType : source.type
|
inputType : source.type
|
||||||
}) // This creates resource for playing
|
}) // This creates resource for playing
|
||||||
|
|||||||
Reference in New Issue
Block a user