kokarare1212 / librespot-python

Open Source Spotify Client
http://librespot-python.rtfd.io
Apache License 2.0
232 stars 44 forks source link

[BUG] ffplay playback #165

Open 112cxyz opened 1 year ago

112cxyz commented 1 year ago

Describe the bug Im trying to make a simple spotify player but when ever i use the example ffplay example i get this error

Traceback (most recent call last): File "/home/toby/SpotifyPlayer/main.py", line 61, in <module> ffplay.stdin.write(byte) BrokenPipeError: [Errno 32] Broken pipe

To Reproduce Use while True: byte = stream.input_stream.stream().read(1) if byte == -1: break ffplay.stdin.write(byte)

Expected behavior It should play the song via ffplay

Client Information (please complete the following information):

Additional context Add any other context about the problem here.

112cxyz commented 1 year ago

I have found out this is because its using SDL to show and play the music