Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Question) What happened to the 'progress' event? #1255

Open
macfitzwool opened this issue Oct 12, 2023 · 0 comments
Open

(Question) What happened to the 'progress' event? #1255

macfitzwool opened this issue Oct 12, 2023 · 0 comments

Comments

@macfitzwool
Copy link

macfitzwool commented Oct 12, 2023

Hi there. I have been digging around to find where the event that is documented on both the repository's readme and relevant examples folders.
These examples simply do not work as these events never fire a response, neither does my IDE (vscode) does not autocomplete for 'progress' event anymore.
Any previous issues in this repo seem to point to older versions of the library or are quite old now. None seemed relevant to what I was trying to figure out.
Code where I was trying to use this event:

let audio = ytdl(url, { quality: 'highestaudio' });
audio.on('progress', (c, d, t) => { // <= this *never* fires or is recognised!
    let progress = (d / t * 100).toFixed(2);
    // ... (rest of progress monitoring code)
});

Has this event type been deprecated in a previous version or prior to v4 of this library?
I have not seen any mention of it in previous versions other than back in v3.3.0 so am mostly guessing support for this feature may have been removed or it somehow is not working anymore.

Version Information:
Windows 10 (64 bit)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant