Use wavelane on several devices
After this page you can pair several devices with one server so that they share your favourites, your place on each station and your Recents, and you know what each device keeps to itself.
What the devices share
Your server keeps the lists your devices share, and every device paired with it shows them, whether it signed in with a Google account the server lists or paired with the token. The lists do not belong to an account: two accounts the server lists see the same favourites. These are shared:
- your favourites, in the order you give them and with the names you gave them (Name and order your favourites), each with its "Time shift for this station" switch (The chip's menu);
- your place on each favourite you play from the recording, the point you had reached, so that it starts where you left it, on whichever device you heard it last (Where you left a station);
- your Recents, newest first, one entry per station, up to 20.
Everything else stays on the device it was set on:
- the "Time shift" settings, buffer ahead and start (Time shift settings);
- the "Library" settings, its hours, its schedule and its network rules, and the recordings the device has downloaded (The library);
- whether a station is playing or paused: stopping the radio on one device never stops another;
- the pairing itself, the address and the sign-in (Pair with your server).
"Clear recents" in Settings empties Recents on every device, not only the one you tapped it on. A station you play afterwards, on any device, appears in Recents again as usual.
A name or a place you give a favourite on one device shows on the others, as any other change does (How soon a change shows up).
Add a device
Pair the new device as in Pair with your server.
Joining the server does not replace what the device already has: its favourites are added to the shared ones, so nothing is lost, and its Recents join the shared Recents at the top, in the order the device had them. Then the device shows the shared lists, its own stations among them, and the other devices show the additions within about a minute (How soon a change shows up). A favourite the server already has stays as the server has it, its time shift switch included, except that a detail the server lacks for it, its picture, country, tags or bitrate, is taken from the device: a server that started from the stations it was recording knows only their names and addresses. A favourite the device brings starts with the device's own switch.
Pairing again with the address a device is already paired with keeps the device's copy of the shared lists and any change it had not yet sent, which it then sends. "Sign in again", which the Server dialog offers while the server refuses a Google sign-in, is such a pairing (Sign out).
A server that lost its shared lists, its library.json lost with its data or unreadable, starts new ones that hold only the favourites it was recording, or none (Troubleshoot your server). A device that had the old lists does not take the new ones as they are: it adds what it shows to them, as when it joins, its favourites with their time shift switches, its Recents and its places, together with any change it had not yet sent, and goes on showing them. So the lists come back the first time such a device asks the server, when wavelane comes to the screen or a station starts. The same holds for a server replaced by a new one at the same address. To remove favourites from the shared lists, remove them on a device: deleting the server's library.json does not, the devices bring them back.
How soon a change shows up
A device sends what you change, a favourite you add, a station you play, a switch you turn, to the server straight away. A device asks the server for news when wavelane comes to the screen, when a station starts, and about every minute while wavelane is on the screen or a station is playing. So while you use the second device, you see a change made on the first within about a minute, and at once when you open wavelane or start a station. A device that is not on the screen and plays nothing does not ask: it catches up the next time you open wavelane or start a station.
A change made with no network, in a tunnel, shows at once in the lists of the device you made it on, and the device keeps it, even if wavelane is closed meanwhile, until it can send it. It tries again after 5 seconds and then after longer waits, up to 5 minutes between tries, and a wait ends as soon as the phone's network comes back, or when you change something else, open wavelane or start a station: once the network is back, the change is sent. Meanwhile the "Server" row in Settings reads <address> · unreachable: <reason>, since a push that fails for want of a network marks the server unreachable. Once the server answers again, and for as long as a change is still waiting to be sent, it reads <address> · changes not yet synced (The Server row).
A device starts from the lists it last had from the server, with or without a network, so Favourites and Recents are there when you open wavelane in a tunnel.
Where you left a station
While a favourite plays from the recording, the device tells the server where you are, at most every 30 seconds, and again when you pause, stop or change station.
When you play a favourite, wavelane starts where you left it, as What time shift does says. With several devices there are two places to choose from: the one this device remembers and the one the server holds. wavelane takes the one you heard most recently, so a favourite starts where you were on whichever device you listened to it last.
A station you left paused or stopped starts where you listened to it last, on any device, whether you choose it again, in a list or in the car, or press the play button: where you left it on another device if you listened to it there after you paused it here, otherwise where you paused it. The play button starts the audio at once, from where you paused it here, and moves it to the other device's place within a few seconds, once your server has answered, or not at all: it stays where you paused it if the answer takes longer, if this device cannot fetch the audio at that place, or if that place is only a few seconds from yours. If in those seconds you pause or stop, press "−30 s" or "+30 s", drag the bar, tap "Live" or "Play live from the station now", or change station, from a list or with next or previous, it does not move: your own choice stands, and the seconds you heard meanwhile do not count as where you listened last. With no connection, the play button goes by the places this device last fetched, and moves only to audio it holds itself.
So a favourite you left 20 minutes behind live on one device starts where you left it on the other. When you start a favourite, the device asks the server for the newest places together with the server's status, and waits for both under the same limit of 5 seconds, so it goes to the place another device left even when nothing had asked the server since.
wavelane goes to that place only while the audio is still held, on the phone or on your server, which keeps the newest hours it records (How much it keeps). Otherwise the favourite starts the distance behind live you set in Buffer ahead and start, as when wavelane has no place of yours to go back to.
A place on a station that is neither a favourite nor in Recents is forgotten after 30 days.
Sign out or pair another server
"Sign out" (Sign out), or pairing the device with another server, makes the device stop sharing. It keeps the favourites and the Recents it shows, as its own, and what it changes from then on stays on it. A change it had made but not yet sent is kept in those lists and is not sent. Pairing with a server joins it as in Add a device, so the lists the device kept are added to what that server shares.
So when the server refuses the sign-in and the same account is to sign in again, tap "Sign in again" in the Server dialog, not "Sign out". "Sign in again" keeps sharing: the changes not yet sent are sent. Signing out and in would drop them, and joining again would add back a favourite another device removed meanwhile.
The limits
The shared lists hold at most 500 favourites and 20 Recents. A device that joins with more favourites than fit adds as many as fit, in the order it has them. A change the server refuses outright, such as a favourite past the 500th, is dropped: the favourite you just added disappears from the list again, with no notice, and so do the changes that were sent with it, and the lists go back to the server's.
An older server or an older wavelane
A server that has not been updated to let devices share their lists answers its status without "library": true (What it reports). With such a server wavelane works as it did before: it sends the server the list of favourites with time shift on whenever they change, and nothing else is sent. Places and Recents stay on each device, and the "Server" row reads <address> · favourites not yet pushed while the server has not confirmed the list. Each device then sends its own list and the server records the last one it received, so two devices can undo each other's: update the server before you pair a second device (Upgrades).
A device with an older wavelane keeps working with a server that shares lists, but it does not see what the other devices share: it still sends its list of stations, and the server adds each station on it to the shared favourites with time shift on, switches time shift off for any time-shifted favourite the list leaves out, and removes none. Update the older wavelane from Google Play so that its lists are shared.