How remote control and jams work
Remote control and jams use one way for devices to talk. One device plays the music and keeps the queue. The other devices send it commands and show what it plays.
How do my devices find each other?
Section titled “How do my devices find each other?”- On the same network, a device you can control announces itself with mDNS. The announcement carries a tag made from your account, so only your devices recognize it. Your devices then talk directly.
- Away from home, devices talk through the relay in nori’s fork of octo-fiesta, on your own server. Without it, only devices on the same network see each other.
Nothing goes through any other service. nori looks for nearby devices only while it is on screen or a device list is open.
A sync server of its own, which you run yourself, is planned. With it, remote control and jams will not need octo-fiesta.
Which device plays?
Section titled “Which device plays?”One device of your account plays at a time. When you move the music, the other device takes the queue, shuffle, repeat and your place in the song. The device you left pauses and follows the one playing.
The device playing has the last word. If its queue changed after you sent a command, it refuses the command, so it never removes or plays the wrong song.
What do devices send, and who can send it?
Section titled “What do devices send, and who can send it?”Devices send each other the song playing, the queue around it, the controls and the volume. In a jam they also send the songs asked for and each member’s name.
- On your network, each device signs every request with a key from your server account, so no other device can send commands. A request more than a minute old is refused, so nobody can replay it later. These requests are signed but not encrypted.
- YouTube Music and SoundCloud profiles have no server to sign with, so devices pair once. Pairing shares a random key, never your account.
How does a jam work?
Section titled “How does a jam work?”A jam is a queue that others join with a link or a QR code. Only the host’s device plays it, and the host and the admins control it. A guest’s requests wait until the host or an admin accepts them.
A guest’s play, pause and volume act only on their own listening. A guest who listens along plays the host’s queue on their own device, with their own equalizer and output. Their device follows the host’s place and the mixes the host planned.
How does a guest get the music?
Section titled “How does a guest get the music?”- From a server: the relay gives each guest a key for this jam only. With it, the guest’s device fetches the jam’s songs from your server, without an account.
- From YouTube Music or SoundCloud: the jam runs on the local network. The host’s device answers the guest’s searches with its own plugin, and the guest fetches each song itself. The guest needs neither the plugin nor an account. Each guest’s key comes from the invite and never travels over the network.
Remote control and Jams say how to use them.