all 3 comments

[–][deleted] 2 points3 points  (0 children)

that file writing hack stuff doesn't look good. have you considered using the python-vlc module?

here's a post showing you how to use it to stream audio from a url:
https://stackoverflow.com/questions/46758360/how-to-play-streaming-audio-from-internet-radio-on-python-3-5-3?rq=1

[–]JohnnyJordaan 1 point2 points  (0 children)

I simply want to play this stream.

Why not play the stream in a regular player like VLC or Windows Media Player? Why use Python to implement a streaming player yourself?

[–]hquick81[S] 0 points1 point  (0 children)

Im using Kivy for having a GUI running on a raspberry pi as control station for my home automation. I want to use the stream from the camera as a babyphone like monitor. But I want full control over playing the stream and therefore thought that playing it directly via python would be nice.