-
I am developing a plugin for distube. The API of the service that I want to add to support returns links to tracks one by one, and therefore I have to wait until the end. Is there any way to make it so that when the first track is received, the music immediately turns on, while others are obtained in the background. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
PS: you need to take into account that you can't just include the first track using this.distube.emit(...), it won't be part of the entire playlist. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/distubejs/spotify/blob/main/src/index.ts#L80-L158 At the present, this is the best way to do it. Not a good solution but at least it should work as you said. I'm developing v5 for new plugin types, this feature should be added soon. |
Beta Was this translation helpful? Give feedback.
https://github.com/distubejs/spotify/blob/main/src/index.ts#L80-L158
At the present, this is the best way to do it. Not a good solution but at least it should work as you said.
I'm developing v5 for new plugin types, this feature should be added soon.