community icon indicating copy to clipboard operation
community copied to clipboard

Adding the option to play a sound from a URL

Open zPy52 opened this issue 3 years ago • 1 comments

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.

zPy52 avatar Feb 27 '22 16:02 zPy52

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.

kuzeyron avatar Mar 01 '22 15:03 kuzeyron

👋 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.

github-actions[bot] avatar Oct 31 '23 13:10 github-actions[bot]

If this is to be a feature suggestion, please show it is worthwhile to a lot of people to save 5 lines of code.

Julian-O avatar Oct 31 '23 13:10 Julian-O

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?

baseplate-admin avatar Oct 31 '23 13:10 baseplate-admin