Closed orewafuad closed 2 months ago
Thanks for the issue. I am currently creating a new example as Stream
in the example folder. Please wait.
We will let you know when it is completed.
Oke, I'll give that a try. Thanks for the help!
If you have any questions, send them here.
Is it for streaming or downloading?
For download. Maybe an example of stream response?
Yes, it's directly for streaming only.
I understand. Rename the one you just created to the download folder and create a new one as a new streamResponse. Do you want to use express?
Yes, I am using Express.
Yes, I am using Express.
ok
do you have an example for that?
I am creating it now. Possibly tomorrow, but as much as possible.
Thank you, I really appreciate that!
We are done, see the StreamResponse in the example folder. https://github.com/ybd-project/ytdl-core/tree/main/examples/StreamResponse
works in local, but in the server get this error
const FETCH_RES = await fetch(format.url, {
^
ReferenceError: fetch is not defined
I understand. We will release v5.1.3 tomorrow, so I will fix it there.
v5.1.3 has been released. Please check to see if the problem has been fixed.
Wow, it's working, bro! Thanks a lot!
This issue has been resolved and will be closed.
Hi, I have another question. How can I get the URL like in the image?
Use the getFullInfo
function to get information about the entire video. Pass it to the downloadFromInfo
function.
You can retrieve it from the information (formats
) retrieved from the getFullInfo
function.
Alternatively, you can implement the following to obtain only the format to be downloaded.
import { YtdlCore } from '@ybd-project/ytdl-core';
const ytdl = new YtdlCore();
// ↓ this
ytdl.download("URL").on('info', console.log).pipe(PIPE);
Describe the feature
How can I get audio-only streaming using this package?