How to Listen to Music Together with TA—Let's Build Your Own Playlist
This article introduces how to build a multi-device synchronized music listening system on a Linux server, supported by Spotify as the music source, to address the incomplete library issue with the "Listen Together" feature on domestic music platforms. The core solution uses Mopidy as the audio control engine, paired with the Mopidy-Spotify extension for retrieving Spotify music, Mopidy-Iris to provide a modern web-based playback interface, and Snapserver to stream local audio to other devices. The article details the deployment process in an Ubuntu 20.04 environment, including installing Mopidy and configuring global listening, manually compiling and installing gst-plugins-spotify and the Mopidy-Spotify plugin (requiring handling of Python version compatibility issues), configuring Spotify Premium account credentials, installing the Iris frontend, and deploying the Snapserver service. By configuring Mopidy's audio output to the Snapcast FIFO file and setting the Snapcast service parameters in Iris, real-time monitoring and playback of the audio stream via the browser is ultimately achieved. Although this solution primarily addresses local multi-device synchronization, and remote access still requires additional network configuration, it provides enthusiasts with a flexible, open-source, and quality-controlled guide for building a private music server.