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:
@@ -61,7 +61,9 @@ let id = extractID(url)
|
|||||||
```js
|
```js
|
||||||
let info = await video_info("url")
|
let info = await video_info("url")
|
||||||
let source = await stream_from_info(info) // This will create a stream Class which contains type and stream to be played.
|
let source = await stream_from_info(info) // This will create a stream Class which contains type and stream to be played.
|
||||||
let source = await stream_from_info(info, cookie) // This will create a stream Class which contains type and stream to be played and also give cookies if retrying.
|
/* OR
|
||||||
|
let source = await stream_from_info(info, cookie) This will create a stream Class which contains type and stream to be played and also give cookies if retrying.
|
||||||
|
*/
|
||||||
let resource = createAudioResource(source.stream, {
|
let resource = createAudioResource(source.stream, {
|
||||||
inputType : source.type
|
inputType : source.type
|
||||||
}) // This creates resource for playing
|
}) // This creates resource for playing
|
||||||
|
|||||||
Reference in New Issue
Block a user