Wavelink icon indicating copy to clipboard operation
Wavelink copied to clipboard

Player running endless (without sound)

Open Luc1412 opened this issue 2 years ago • 0 comments

I currently play an MP3 on the lavalink server in a loop. The loop has been accomplished by following code.

@commands.Cog.listener(name="on_wavelink_track_end")
    async def _on_track_end(self, player: RadioPlayer, track: wavelink.Track, reason: str):
        if reason != 'FINISHED':
            return
        await player.play(track)

This transition works fine so far. I also added on_wavelink_track_exception and on_wavelink_track_stuck for debug reasons, but both won't get triggered.

I experience that the player randomly stops playing. The client is still connected. The player got is_connected() and is_playing() set to True. But when checking the position it got an inappropriate high number set.

My track is about an hour long, but postion is set to 21h in seconds.

Pausing and resuming resumes the playback.

Luc1412 avatar May 27 '22 23:05 Luc1412