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
ffmpeg Not played in loop #100
Comments
Try this: voice = yield from client.join_voice_channel(hard_coded_channel)
player = voice.create_ffmpeg_player('music.mp3')
player.start()
while not player.is_done():
yield from asyncio.sleep(1)
yield from client.voice.disconnect() |
Works now, Thanks! |
3 tasks
3 tasks
IAmTomahawkx
pushed a commit
to iDevision/enhanced-discord.py
that referenced
this issue
Apr 3, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Creating a function for client to disconnect after file is done playing. The client stays connected for the length of time to play file, but no audio is transited. If loop is removed stream plays fine
voice = yield from client.join_voice_channel(hard_coded_channel) player = voice.create_ffmpeg_player('music.mp3') player.start() while player.is_done() is False: if player.is_done() is True: exit= yield from disconnect(voice)
The text was updated successfully, but these errors were encountered: