community
community copied to clipboard
Adding the option to play a sound from a URL
Is your feature request related to a problem? Please describe There is not a direct way to play a sound given a URL, instead of a path. If I can suggest so, it would be great to have that option, since the inability to do it affects some of us.
Describe the solution you'd like Similar to the playsound module in Python. Look at this GitHub Gist.
Describe alternatives you've considered I am currently using the requests module to download the file, immediately play and then remove it with the Path/os module. I have seen you have a UrlRequest module that can do the work, but I am not familiarised with it (that would be the point of this feature: a common, straightforward function that will be used by plenty of developers).
Additional context I think it's not necessary.
If you set ffpyplayer
to be the provider instead of Gstreamer it will work just fine.
I was working on a prototype which is using ffpyplayer, Youtube_dl and pafy for streaming videos with Kivy. Demo app that is not running on my end at the moment because I have packages that is failing to install: My Gist I hope it's useful with your own research.
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
If you're having trouble installing Kivy, make sure to check out the installation docs for Windows, Linux and macOS.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.
If this is to be a feature suggestion, please show it is worthwhile to a lot of people to save 5 lines of code.
If this is to be a feature suggestion, please show it is worthwhile to a lot of people to save 5 lines of code.
maybe it should be documented somewhere, no?