Elapsed audio resource duration
Hello everyone,
I'm currently trying to implement a proper progress bar which displays the playback of the current song.
According to a few questions online, it seems like discord.js used to have a
- Why has this been removed?
- Is there any replacement or other way to get the current position in millis? I saw https://discord.js.org/#/docs/voice/main/class/AudioResource?scrollTo=playbackDuration, but this seems to be something different.
I am playing the resource using this method:
https://github.com/manuel-rw/jellyfin-discord-music-bot/blob/92021dd94e824af91a559d161df11b2898812595/src/clients/discord/discord.voice.service.ts#L87
I'm currently trying to implement a proper progress bar which displays the playback of the current song.
According to a few questions online, it seems like discord.js used to have a
streamTime property. It looks like this has been removed for some reason in the next release.- Why has this been removed?
- Is there any replacement or other way to get the current position in millis? I saw https://discord.js.org/#/docs/voice/main/class/AudioResource?scrollTo=playbackDuration, but this seems to be something different.
I am playing the resource using this method:
https://github.com/manuel-rw/jellyfin-discord-music-bot/blob/92021dd94e824af91a559d161df11b2898812595/src/clients/discord/discord.voice.service.ts#L87
