Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

How to use '.on' events when using .exec? #347

Open
rzfzr opened this issue Feb 13, 2021 · 0 comments
Open

How to use '.on' events when using .exec? #347

rzfzr opened this issue Feb 13, 2021 · 0 comments

Comments

@rzfzr
Copy link

rzfzr commented Feb 13, 2021

Hello,
I wrote all my code using

const video = youtube(url...
video.on('error',...  
video.on('data',...

Now I'm migrating to .exec because as somebody figured out I also notice much much longer download times when specifying the video format inside the constructor, when compared to .exec
But the .on gave errors
Of course error, end, complete all resolve into the exec's callback, allright, but there is no info for when download starts and data for progress checking.
I had a lot of logic inside info....
Thanks for the help

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

No branches or pull requests

1 participant