librespot-python icon indicating copy to clipboard operation
librespot-python copied to clipboard

[BUG] ffplay playback

Open 112cxyz opened this issue 3 years ago • 1 comments

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):

  • OS: [Ubuntu 20.04]
  • Python Version [3.8.10]
  • Library Version [0.7.1]

Additional context Add any other context about the problem here.

112cxyz avatar Nov 23 '22 11:11 112cxyz

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

112cxyz avatar Nov 23 '22 11:11 112cxyz