badaix / snapcast

Synchronous multiroom audio player
GNU General Public License v3.0
6.13k stars 454 forks source link

Snapweb is not playing audio, but Snapserver logs reports pipe as playing #1048

Closed kerta1n closed 2 years ago

kerta1n commented 2 years ago

If I need to move this to Librespot, please let me know and I will close this issue. Describe the bug Snapserver logs report that the pipe (shared between librespot container) is playing audio, but snapweb doesn't produce sound for any client.

Steps to Reproduce

  1. Install containers listed below
  2. Set the shared pipe between the two as owned by root on the host (it is owned by root on the containers by default)
  3. Try playing audio through the Spotify device that was created by librespot

Environment details

Log:

2022-09-02 00-24-52.260 [Info] (ControlServer) Removing 1 inactive session(s), active sessions: 10
2022-09-02 00-24-52.275 [Info] (Server) Hello from f8ed3427-d0f6-4efb-ab51-b5b48868015d, host: Snapweb client, v0.1.0, ClientName: Snapweb, OS: Win32, Arch: web, Protocol version: 2
2022-09-02 00-24-52.276 [Info] (ControlServer) Removing 1 inactive session(s), active sessions: 9
2022-09-02 00-25-31.648 [Info] (StreamServer) onDisconnect: f8ed3427-d0f6-4efb-ab51-b5b48868015d
2022-09-02 00-27-14.156 [Info] (PcmStream) State changed: [spotipipe], state: playing => idle
2022-09-02 00-27-14.156 [Info] (Server) onStateChanged ([spotipipe]): idle
2022-09-02 00-28-45.284 [Info] (PcmStream) State changed: [spotipipe], state: idle => playing
2022-09-02 00-28-45.284 [Info] (Server) onStateChanged ([spotipipe]): playing
2022-09-02 00-29-08.548 [Notice] (ControlServer) ControlServer::NewConnection: 192.168.0.195
2022-09-02 00-29-08.548 [Info] (ControlServer) Removing 1 inactive session(s), active sessions: 9
2022-09-02 00-29-09.556 [Notice] (ControlServer) ControlServer::NewConnection: 192.168.0.195
2022-09-02 00-29-09.556 [Info] (ControlServer) Removing 2 inactive session(s), active sessions: 9
2022-09-02 00-29-26.809 [Notice] (ControlServer) ControlServer::NewConnection: 192.168.0.195
2022-09-02 00-29-26.809 [Info] (ControlServer) Removing 2 inactive session(s), active sessions: 9
2022-09-02 00-30-22.650 [Info] (PcmStream) State changed: [spotipipe], state: playing => idle
2022-09-02 00-30-22.650 [Info] (Server) onStateChanged ([spotipipe]): idle
2022-09-02 00-30-22.651 [Info] (ControlServer) Removing 1 inactive session(s), active sessions: 9
2022-09-02 00-30-23.692 [Info] (PcmStream) State changed: [spotipipe], state: idle => playing
2022-09-02 00-30-23.692 [Info] (Server) onStateChanged ([spotipipe]): playing
2022-09-02 00-30-25.774 [Info] (PcmStream) State changed: [spotipipe], state: playing => idle
2022-09-02 00-30-25.774 [Info] (Server) onStateChanged ([spotipipe]): idle
kerta1n commented 2 years ago

Closing issue, ivdata container was faulty, saiyato/snapserver is a suitable replacement