View on GitHub

YAACC - Android UPnP/DLNA Client and Server

Play media from UPnP/DLNA devices in your network on your android device or any capable UPnP/DLNA device in your network. It is also possible to start an UPnP/DLNA server on your device and play media from your device on any UPnP/DLNA renderer in your network.

Features

Usage

YAACC has two layouts. A fresh install and an installation updated from a version without this setting start in the new layout; a layout you chose before stays. You switch in the settings under Appearance > Layout: choose “Classic (tabs)” or “New (single screen)”. The change takes effect when you return from the settings to the app screen; running players keep playing. This page describes the classic layout first, see New layout for the single screen.

In the classic layout all UPnP/DLNA servers in your network are listed on the first screen. Select one and the app will automatically switch to the content tab. It allows to browse the content provided by the selected server.

browse_servers

Before playing content make sure you have chosen a receiver. In the classic layout you tick receivers on the receiver tab. In the new layout there is no persistent selection: every time you play, the “Play on…” list asks for the receivers, see Choosing receivers and Receiver controls. Receivers are either UPnP/DLNA media renderers in your network or the android device itself.

browse_receiver

Normally senders and receivers will appear automatically. If not you can use the refresh button at the bottom of the sender and receiver tab to trigger a new search for devices (in the new layout: the refresh button in the “Servers” header).

New layout (single screen)

Switch to it with Settings > Appearance > Layout > “New (single screen)”. Switching back to “Classic (tabs)” works the same way. A fresh install starts in the new layout (also on Android TV, where it has not been checked with a TV remote yet); an updated installation without a stored layout starts in the new layout. There are no tabs. The screen shows one level at a time:

Content browsing

The content browsing has a bread crumb on the top. Behind each content entry different symbols are showing the possible actions:

The bread crumb starts with the name of the selected server. The arrow in front of it goes up one folder (in the new layout it also leaves the server at its root folder).

In the classic layout the bottom of the screen shows two lines: the name of the selected server and the names of the selected receivers (separated by “; “), each with its icon. They only display the current selection; choose the receivers on the receiver tab. Playing while no receiver is selected shows a message asking you to select one there.

In the new layout the receiver bar at the bottom of the content shows the receivers that are playing; tap it to open the device sheet. Playing does not use a stored selection: play, play all, tapping an item, and add to playlist first open the “Play on…” list, see Choosing receivers.

A button in the folder header switches between a list and a grid of cards (the same entries and the same buttons); the cards are the default of a fresh install and your choice is remembered. In landscape the cards are laid out in several columns.

A toggle in the folder header lets you sort the current folder by name or date, ascending or descending. yaacc uses the server’s own sort support when browsing a UPnP/DLNA server that offers it, falling back to sorting the results itself otherwise. The chosen sort order is remembered across app restarts.

browse_music_folder

Choosing receivers (new layout)

In the new layout the receiver is chosen for each action:

  1. Tap play, play all, an item row, or add to playlist. A sheet titled “Play on…” opens with every receiver, including this device, and a checkbox per row. The receivers of your last confirmed choice are ticked, so the usual receiver is one tap away; on the very first use nothing is ticked.
  2. Tick one or more receivers and tap “OK”. With nothing ticked “OK” only shows “Choose at least one receiver.” and the list stays open.
  3. YAACC starts the playback on exactly those receivers. Afterwards nothing is selected again, so the next action asks again. The receiver bar shows the receivers that are playing.

“Cancel”, the back button, a tap outside the list or dragging it down close it and change nothing: nothing starts. While a previous action is still starting, a short message says so and the list does not open.

“Add to playlist” adds the item to the playlists of the chosen receivers that already have a player. Only if none of the chosen receivers has a player yet, YAACC starts a new player on each chosen receiver. A chosen receiver without a player is skipped while another chosen receiver already plays.

The classic layout keeps its way: tick receivers on the receiver tab, they stay selected, and the bottom of the content tab shows two read-only lines (the selected server and the selected receivers).

Playing content

YAACC is able to control multiple players at the same time. For example you are able to stream an image show with background music on your device, starting a movie on a TV or play music on a smart speaker at the same time.

Each player is displayed in the player tab (classic layout). The new layout has no player tab: every running player has a row in the mini-player (on the top level: in the Players section) and is listed in the device sheet under the receiver it plays on. Depending on the content type and if the content is played by YAACC itself or a network device, the player ui differs.

browse_player

YAACC includes a player for music and image shows. Videos are played using a third parties app on the device. The video app will start automatically, if video content is selected for playing

music_player

image_player_show_menu

Receiver controls

The receiver tab shows all available UPnP/DLNA renderers in your network, including your device. Each renderer displays:

browse_receiver

You can control playback directly from the receiver tab without opening the player view. The controls work for both local playback and remote UPnP devices.

In the new layout there is no receiver tab: the top level lists the receivers below the servers, and the receiver bar below the content of a server (or selected with the D-pad) opens the device sheet. The classic layout does not have the sheet; use the receiver tab and the player tab there. The sheet is titled “Receivers”. It lists every receiver with its status, play/pause/stop, volume and mute controls, and under each receiver the YAACC players currently running on it, in the order they were started. It has no selection checkboxes: receivers are chosen when you start something, see Choosing receivers. Players on a device that is no longer in the receiver list are shown at the end. Tap a player to open its player view.

Repeat and shuffle

Every player has its own repeat and shuffle buttons: the music player, the player of a receiver (AVTransport) and the player for videos and mixed content have them next to the previous/next buttons (the image viewer in its menu bar).

With shuffle on, the playlist dialog lists the items in the order they will play, with the playing item marked at its place; dragging an item changes the play order and leaves your list as it is, deleting removes the item from both. Without shuffle it shows the list as before.

The settings Repeat for new players and Shuffle for new players (see Settings; they were called replay playlist and shuffle music) only give the mode a new player starts with. They are not a switch for all players: every player, also one that Home Assistant controls, has its own mode. A change with the buttons belongs to that player only: it is not written to the settings and ends with the player. The mode of the player of YAACC’s own media renderer can also be changed by a control point (UPnP SetPlayMode, for example the repeat and shuffle services of Home Assistant), and a change with the buttons is reported back to the control point.

Lock screen controls

When playing media locally, YAACC provides lock screen controls:

Live streaming (Android 10+)

YAACC can stream your device’s screen and system audio to UPnP/DLNA renderers in your network.

System audio streaming

Stream all audio playing on your device to network speakers or receivers:

Note: Some apps may block audio capture (DRM-protected content like Spotify, YouTube Premium).

Screen casting

Stream your device’s screen to TVs or displays:

Enabling live streaming

  1. Go to the Server tab (in the new layout: the Servers screen)
  2. Find your local device in the list
  3. Tap the audio or video button
  4. Grant the microphone permission (needed to capture the device audio; the app records no microphone sound) and then the screen capture permission when prompted. If you deny either, the stream buttons stay off
  5. The stream appears in the “Live Streams” folder

Access streams via UPnP or directly:

Storage Access Framework (SAF)

YAACC supports browsing files from external storage, USB drives, and SD cards using Android’s Storage Access Framework. This allows sharing media from any storage location accessible on your device.

Configuring SAF folders

In the server control view, you can add SAF folders to share:

  1. Tap “Add SAF folder”
  2. Select the folder using Android’s file picker
  3. Grant permission when prompted
  4. The folder appears in the server content directory

server_control

New files and folders

New files and folders inside an added SAF folder appear by themselves; you do not have to add the folder again. While the local server runs, YAACC looks at the added folders (and at the folders your control points opened lately) every 30 seconds and tells the connected control points when something changed, at most once every 15 seconds, so a download that is still running does not flood them. A new file or folder is therefore shown after about 30 to 45 seconds. If a control point (media player, Home Assistant …) still shows the old content after that, refresh the folder there or open it again; not every control point reacts to the message. Changing which folders are ticked in the server settings is not announced; refresh the control point after that.

Performance optimization

YAACC caches metadata (duration, MIME type, file size) for faster browsing:

The cache significantly improves browsing performance, especially for large media collections.

Battery optimization

YAACC includes several battery-saving features:

Smart WiFi lock management

The WiFi lock is only held when actually needed:

Smart foreground service

The player service intelligently manages foreground state:

Modern architecture

YAACC uses modern Android APIs for better performance and system integration:

MusicCast devices

YAACC recognizes receivers that are Yamaha MusicCast devices and offers a few extra controls on their rows (in the device sheet of the new layout and on the receiver tab of the classic layout). Other receivers are not changed in any way. A device counts as a MusicCast device when its UPnP description announces the address of the Yamaha Extended Control (YXC) interface; nothing is configured by hand. YAACC only works with devices that are already set up in your network (with the manufacturer’s app); it does not add a device to the network or remove one.

The row

Besides the usual status and controls, the row of a MusicCast device shows whether it is on, in standby or not reachable, its current input, and, while it is in a group, “Linked with " (a group leader shows the names of its members). The row follows the device within a moment, also when you change something with another app or the remote control: the devices report changes by themselves, and YAACC reads them completely every 30 seconds in addition.

The power button. A device that offers power (the main zone lists power in its features; the captured devices all do) has a power button in the title line of its card, next to the check box. The symbol is full when the device is on and dimmed in standby or when its state is not known, and it says its state aloud (“Power: Kitchen”, “On”, “Standby” or “State unknown”). A tap reads the state of the device again first and then does the opposite of what the device says now (so a card that was a moment behind does not switch the wrong way), waits a moment and reads it once more; the card follows the device’s own events. While the change runs the button is disabled; a second tap is ignored. If the device does not answer, does not say whether it is on, or does not accept the change, a message says so and nothing is changed. Devices that do not list power, and a device that has not told its features yet, show no button. The same button is on the cards of OpenHome devices (see OpenHome).

The device’s own sources

While a MusicCast device plays something of its own (net radio, a streaming service, a server on the network, the FM or DAB tuner) and YAACC plays nothing on it, the row shows a second line with what is playing (station, title, artist, or the frequency or service of the tuner) and adds controls for that source. Only what the device reports for the current source is shown:

The controls act on the device only after YAACC has read its current state again, so a stale display does not send a wrong command.

Linking devices

The link button on the row opens a list of the other MusicCast devices in the same style as the receiver picker.

Playing on a group

When you play on a device that is a member of a group, YAACC sends the media to the leader of the group instead and tells you so (“Kitchen is linked with Living room. Playing on Living room.”); the members play in sync with the leader. This also applies to files and folders picked with Playing files from this device. In the receiver picker such a member is marked “plays via ". If the leader of a group cannot be determined clearly, YAACC does not guess and asks you to play on the leader.

Volume

The volume slider and the mute button of a MusicCast device use the device’s own interface, because the generic UPnP volume control does not work for devices that are in a group. Every device keeps its own volume. The devices do not pass the volume of the leader on to the members by themselves. A leader therefore has an additional slider “Group volume”: it shows the average of all members and moves every member by the same number of percentage points while you drag (each member stays within 0 to 100 %; dragging back restores every member’s own level).

Device settings

The settings button on the row opens a sheet with what the device reports as changeable: power, input, sound program, sleep timer, a three-band equalizer, the brightness of the display, the automatic standby and the link settings (audio delay, audio quality). Entries a device does not offer are not shown, and the sheet only offers the values the device reports. The sheet says so when the settings cannot be read or changed.

Limits

Yamaha and MusicCast are trademarks or registered trademarks of Yamaha Corporation. OpenHome is the name of an open specification for networked music players and is used only to describe compatibility. YAACC is an independent project and is not affiliated with, authorized or endorsed by Yamaha.

Snapcast

Snapcast is an open source multi-room audio system: a server (snapserver) sends audio streams with a common buffer to any number of clients (snapclients) that play them in sync. The clients are organised in groups, and a group plays one stream. YAACC works with a Snapcast server that already runs in your network, in four ways:

YAACC is never a Snapcast server. Unless you switch on the client, the phone does not play a Snapcast stream and the clients of a group are other devices. One receiver is one Snapcast group, and a group always lives on one server: YAACC has no way to move a client to another server (the phone’s own client is the one exception, it can connect to another server, see below).

The Snapcast support was tested by the author on his devices with a snapserver, and in automated tests and the test rig. Other devices, servers and networks have not been tested. How well the phone’s own client holds the sync depends on the phone and on the Wi-Fi, see Snapcast limits. Audio and control are not encrypted and not authenticated, see Snapcast security.

What you need

Adding servers

Open Settings > Snapcast:

If the search does not find your server. The search looks for the service that a snapserver announces for its control port: _snapcast-ctrl._tcp (Snapcast 0.33 and newer) and _snapcast-tcp._tcp (0.32 and older, which many distribution packages still have). It also listens for _snapcast._tcp (the stream port, every version), only to tell in the report below that a server announces itself but not its control port; such a server is never listed from that announcement. A server that does not announce itself at all can not be found: that is the case when mDNS or Avahi is off on the server (the Docker test rig has it compiled out) or when the router or access point does not pass multicast between the phone and the server. Then add the server by address.

Below the list of servers, Snapcast servers shows the discovery report: the state of the switch, of the Wi-Fi, of the multicast permission and lock, what is browsed and how many services each type reported (with the names of the system’s failure codes), the servers listed, and the last events with their time. Copy report puts it on the clipboard, to paste into a report. It names the servers found and their addresses in your network and carries the manufacturer, model and Android API level of the phone; look at it before you paste it somewhere. On Android 13 and newer the copy is marked as sensitive, so the system keeps it out of the preview of the pasted text. While the window is open and the checkbox is on, the network is searched, so the report is live. Its last line, reading, says what the facts mean: for example that the switch is off, that the phone is not on Wi-Fi, that the system reports no Snapcast service at all (the server does not announce itself, or its announcements do not reach the phone), or that a server was found.

A server that holds a receiver you selected is remembered (its address only) so that the selection survives an app restart; it is listed again without a scan, also when the discovery is off. With the discovery on, a remembered server that is not announced any more disappears after the receivers have been shown for about half a minute.

Groups as receivers

Each group appears in the receivers (the top-level page, the device sheet and the receiver tab of the classic layout) as group name (Snapcast); a group without a name takes the name of its first client (its host name if that has no name either, and the label “Snapcast group” if there is nothing to take), and a group of a server that is not reachable gets (Snapcast, offline). The row works like the other receiver rows, with these differences:

The rows follow changes that another controller makes on the server (the Snapcast web app, another phone): YAACC keeps one connection to the server open while the receivers are shown, and closes it about 30 seconds after they were hidden. Names that a server sends are shown as plain text, cleaned of control and invisible characters and cut to a length that fits.

Playing music to a group

Settings > Snapcast > Play to Snapcast groups is on by default (an installation that stored “off” keeps it off). Choose a group as a receiver like any other (the “Play on…” list, or the selection in the classic layout) and play music. With the option off, a group is listed and controlled but playing to it only shows “Playing to Snapcast groups is not available yet”. Only music is played to a group: when the content you play holds an image or a video, the “Play on…” list does not offer a Snapcast group (a folder or an item whose type is not known offers it, and video and images are left out with a message when the play starts). Playlist files (.m3u, .pls, .asx) in an album are not played (the other tracks are; if nothing playable is left, a message says so); streams in the HLS format (.m3u8) are not playlist files and still play. A track that cannot be read is skipped with a message that names it and the next one starts; after three unreadable tracks in a row, or when the last one fails, the play stops with a message. The same holds for music played on this phone.

What YAACC does when you play:

  1. It asks the server, at runtime, to add a stream named YAACC <phone name> <marker>: a tcp source in server mode on the first free port from 4953 to 4962 that takes raw PCM (48000 Hz, 16 bit, stereo, no header). Nothing has to be configured on the server. It adds only this one stream per server, whichever group plays.
  2. It puts the group on that stream and remembers the stream the group played before.
  3. The phone decodes the music with the player of the app and sends the PCM, in real time, to that port of the server (the address of the control connection). The speaker of the phone stays silent and the volume of the phone is not touched; the volume slider of the row is the group volume.
  4. When the play ends or you stop it, the group gets its previous stream back (if it is still on YAACC’s stream; a group that somebody moved elsewhere in the meantime is left alone). YAACC removes its stream when you close the player, and after 10 minutes without audio (stopping only gives the group back its stream), as long as no group plays it. It removes only streams that carry its own name or marker: the stream it added, a stream with exactly that name that it found (also one that was there before it started), a stream of that name with another configuration when no group plays it, and tcp streams that carry its marker and that no group plays (leftovers of an earlier run). It never touches any other stream.

What to know about it:

Snapcast as the output of the renderer

This makes the YAACC renderer a flexible UPnP wrapper for a Snapcast server: any app or controller that plays to the YAACC renderer (a UPnP/DLNA controller, Home Assistant, an OpenHome control point) is heard on a Snapcast group.

  1. Settings > UPnP server: switch on the media receiver service, set Output to Snapcast group. If no group is chosen yet the chooser opens.
  2. The chooser first lists the servers of the Snapcast servers list (typed in, remembered, found on the network; the address comes first, the name the network gave is shown after it). Choose one: YAACC connects to it, reads its groups (up to six seconds) and lists them with their member counts. Choose the group. What is stored is the id of the group, never its name; the server is remembered like the server of a selected group, so it is known after a restart.
  3. Play to the YAACC renderer from any controller. The renderer feeds the group exactly like a group chosen in the app (see Playing to a group): the stream, the delay of about a second, the unencrypted audio. The connection for the audio is opened only when a play is requested.

This phone as a Snapcast client

With the option Snapcast client checked (Settings > Snapcast, off by default) this phone can play as a Snapcast client of a server: a foreground service plays the stream in sync with the other clients of its group. Audio and control are not encrypted, and the server and its controllers see the name of this phone, the name of your YAACC server with the app version (Yaacc 6.1.0) and a generated id that is the same on all servers (see Snapcast security). How well the sync holds depends on the device.

What it plays. The client connects to the stream port (1704) of a server and plays the codecs PCM and FLAC (FLAC is the codec Snapcast uses by default). A server that sends Opus or Vorbis (opus, ogg) is refused with a message that names the reason; those codecs are a possible future enhancement, not built. PCM is decoded in the app, FLAC by the phone’s own decoder (a phone without a FLAC decoder gives a message). The server’s volume and mute for the client are applied as a gain on the phone (the sliders of the group sheet and the card change them); there is no ramp, so a volume or mute change is a step. The latency of the client (the group sheet’s Latency, and a field in the Snapcast client details) shifts the phone against the other clients, which is what a Bluetooth speaker needs: the delay of the route to a Bluetooth speaker is not measured.

Which group it plays. When a client connects, a snapserver puts it in a group of its own on its default stream (or keeps the group it had there). Nothing is heard on the phone until the group plays a stream that has audio: put the phone into the group you want with the link sheet and the stream picker of the group (or Move my group to a stream in the Snapcast client details, which asks before it changes the server), and again after the phone reconnected. YAACC does not do this by itself, also not for the renderer output (which does not add the phone to a group).

How it keeps the sync. The phone estimates the difference between its clock and the server’s clock from time messages, places every chunk of audio at the time the server stamped it plus the server’s buffer (one second by default) minus the latency, and keeps the output at that time: it pads or skips exactly at the start and after a gap in the stream, and while playing it drops or repeats single frames (at most one in 400, no change of pitch). A phone that is more than 300 ms late for several position reports in a row rebuilds its output queue (a short gap you can hear). The phone keeps about 250 ms of audio queued in front of the speaker (the field write-ahead in the details, 40 to 350 ms); a phone whose audio output needs more raises it by itself in steps of 40 ms (up to 350) when the platform reports that the output ran short. A stream that stops and starts again, a lost connection and a change of the server’s clock make the phone place the audio anew. The Snapcast client details show the state, the numbers of the sync and a trace of events that you can copy for a report; a report names the server’s streams and the group id and carries the phone model.

Limits. How well the sync holds depends on the device and the Wi-Fi. It was tried on one phone (Android 16) with a snapserver and gave continuous playback with the default write-ahead; how closely it stays with another client over a long time, and how it behaves on other phones, routes and networks has not been measured. What is known to matter:

One switch, one state. Whether the client is switched on is one stored choice that survives the end of the app. It is set from four places, and all of them show the same state:

Which server the client uses. The client has no server setting of its own. It connects to the server it was last connected to (remembered when a session first reaches the connected state, also when you choose a server on the card or start the client in the Snapcast client details with an address); if it was connected to none, or that server is not known any more, to the first known server (the order of Choose server: the address the Snapcast client details used last, the typed-in servers, the remembered ones, the found ones). Known servers are the ones of the Snapcast server list, so the client is offered as soon as one server is known, and an address typed in the Snapcast client details counts as known. There is no automatic failover: when the server does not answer the client keeps trying it, and you choose another server on the card of the phone (Server in the menu of its row in the group sheet), which restarts the session on it while the client is on. Only the host is used; the client connects to the stream port 1704 (a server on another stream port is typed in the Snapcast client details).

One client id for all servers. The id in the Hello of the client (yaacc- and 16 hexadecimal characters) is a one-way function of a random secret of this installation and of nothing else: it is the same for every server, also for a public address, and it does not change when a server is reached under another name, port or address. It is not a hardware id and does not contain one (the MAC in the Hello is the fixed 00:00:00:00:00:00). The consequence: any server and its controllers can recognise that the same phone connected, and two servers can tell that they saw the same phone; the name sent as the host name is still the name of the phone for a local address and the generic YAACC for a public one. The version in the Hello, which a server shows in its client list, is the name of your YAACC server (Settings > UPnP server, default Yaacc) and the app version, for example Yaacc 6.1.0; for a public address it is YAACC 6.1.0 without your server name. The text is cleaned (no control characters, at most 40 characters). The app uses the id to recognise its own client in the status of a server (the label This phone, the power button on its card, the removal rule above). Migration: earlier builds gave every server an id of its own (derived from the secret and the address the client connected to), so those builds left an offline entry of this phone on each server (one per address used). The app computes these old ids again from the secret of this installation (for every known server with the ports 1704, 1705 and the one of its list entry, and for the address of the Snapcast client details) and treats them as this phone: the lists show the phone once (connected wins, else the last seen), the other copies, also on the same server, are left out of the cards, the counts and the member lists, and a card that held only an old entry is gone. In the sheet an old entry that is still the one shown reads This phone, old entry. They can be deleted for good: the menu of the phone’s own row has Remove old entries of this phone when the server has offline ones (a confirmation says how many; connected entries and the current one are never touched, nor are entries of other YAACC installations or of other devices). An old entry whose address the app can not reproduce (for example a host name that you typed in the Snapcast client details for a server the list knows by number) stays a normal client; Remove from server clears it. A reinstall or cleared app data makes a new id, and the old entries of the earlier installation are then no longer recognised.

On saves the choice first and then starts the client. The option and the server are checked again at every start; if the start is refused (the option is off, no server is known or its address is wrong, or the system did not allow the start) a message gives the reason, the choice stays on, and the state shows Stopped with the reason of the last end. There is no retry loop. Off clears the choice and stops the session (the end is recorded as a stop by you; the wake lock and the Wi-Fi lock are released as before; they are held only while the client plays).

What a restart does. Only your own off clears the choice: the exit button, the shutdown timer, the idle close, a crash or the end of the process do not. When the app starts, YAACC starts the client again if the choice is on, the option is checked, a server is known, no session runs and the last end is not a failure you have not seen yet (the state text or the Snapcast client details shows it, which counts as seen). This happens once per process, at the end of the normal startup (also when the system or a reboot created the process: with autostart server on boot checked the device start wakes YAACC and the same startup runs; with it unchecked nothing starts at the boot, and the client comes back when you open the app). Right after the exit button (the first two minutes) nothing is started until you open the app yourself. Android 12 and later may refuse to start a foreground service while the app is in the background; the start is then not retried in a loop, but once more when you open a screen of the app. A running client session keeps the app from closing itself (see the idle close above).

What it does not do. It does not start the client when you did not switch it on, after a force stop (the system sends no boot message to a force-stopped app), while the option is off, or when no server is known. It does not change anything on the server beyond what a client does (connect, play, report its volume). Not verified on a phone yet: the switch on the first page, the restore at the start and after a reboot with autostart server on boot checked on Android 16, and a start the system refuses in the background.

Snapcast limits

Troubleshooting Snapcast

Snapcast security

The connections YAACC uses to a snapserver (the raw TCP control port 1705, the TCP ports 4953 to 4962 that YAACC feeds, and the stream port 1704 that the phone’s own client plays) are neither encrypted nor authenticated (a server can offer an encrypted web interface, which YAACC does not use, and it can require a login on the control port, which YAACC does not support). What that means for you:

The Snapcast test rig

For development there is a Docker setup with one snapserver and two snapclients (no sound output) in tools/snapcast-rig/, see its README. Start it with cd tools/snapcast-rig && docker compose up --build; its ports are published on 127.0.0.1 only, so a phone reaches it through adb reverse or an emulator address. It is for trusted machines and testing only (no authentication) and is not part of the app.

Snapcast is free software under the GNU General Public License version 3 or, at your option, any later version. YAACC contains no Snapcast code: the control client is written from Snapcast’s published documentation and behaviour, and the test rig builds the upstream sources at a fixed version when you start it. Snapcast is the name of an open source project of its authors; YAACC is an independent project and is not affiliated with, authorized or endorsed by the Snapcast project or its authors. The name is used only to say which servers YAACC works with, as plain text: YAACC does not show the Snapcast logo or icon, because it is not settled whether third-party apps may use it.

Media server

YAACC includes a media server service, which has to be enabled separately. A switch for this is located at the bottom of the server list tab (in the new layout: at the bottom of the Servers screen).

browse_servers

Depending on the configurations for the server in the settings, the server service is used as media provider, media renderer or proxy. The icons behind the server switch are showing which service is activated.

Media provider

If the device is used as media provider, media files stored on the device are accessible for other UPnP/DLNA devices in you network.

The shareable folders have to be configured using the server control view. All included files and folders are accessible for other devices in your network.

The media of the phone are listed in the folders Images, Videos and Music. Images and Videos both offer All images / All videos and Galleries: a gallery is one directory of the phone that holds images or videos (for example Camera, Download, Movies), named like the directory. In the galleries, two directories with the same name are told apart by a number (Camera (2)), files directly in the root of a storage volume are listed in a gallery named (root folder) (in the language of the app), and the media paths of the server settings apply to the list of galleries and to the images or videos in a gallery. The list of galleries is sorted by name without regard to the case, and a client that asks for it page by page gets the same galleries as one that asks for all of them. The media paths apply to everything the server answers: a client that guesses the id of an image, a video, an album or a gallery outside them gets “no such object” (and no thumbnail or cover), and a media path is matched literally (a _ or % in the name is no wildcard). A folder you deselect in SAF content is no longer listed or sent, also not to a client that remembers its ids.

server_control

The server control view is accessible through the settings button next to the server switch at the bottom of the server list, or the YAACC server service notification.

Media renderer

This service allows your device acting as an media renderer. Therefore the device can be controlled by other UPnP/DLNA controllers in your network and receive and play media from UPnP/DLNA servers. Control points can set the play mode (SetPlayMode: NORMAL, REPEAT_ONE, REPEAT_ALL, SHUFFLE, RANDOM; DIRECT_1 and INTRO are accepted and played as normal) and read it (GetTransportSettings, the CurrentPlayMode event). It is the repeat and shuffle mode of the player the renderer plays on, see Repeat and shuffle.

Output. Settings > UPnP server > Output (below the receiver switch) says where the renderer plays what other apps and controllers send to it: This device (the default, nothing changes) or Snapcast group. With Snapcast group the renderer only feeds the group chosen under Snapcast group (see Snapcast as the output of the renderer); the speaker of the phone stays silent. This works for the UPnP renderer (AVTransport and RenderingControl) and the OpenHome renderer alike. The volume and mute that a controller sets (SetVolume, SetMute, the OpenHome volume) are the volume and mute of the group, and the volume and mute it reads and is told about are the group’s. If the play can not go to the group (no group chosen, the server is not in the list, does not answer, the group is gone, or the content is video or an image) the phone shows a message, nothing plays on the phone, and the controller sees the transport STOPPED.

Sharing to YAACC

Use the share menu of another app (gallery, files, browser, music player) and choose YAACC to play something on the receivers in your network. Two kinds of items are accepted:

What happens next depends on the layout:

A shared file is not copied when the sending app lets YAACC read it directly: YAACC keeps it open and the built-in HTTP server hands it to the receivers, with support for seeking. If the sending app provides the file only as a stream that cannot seek, YAACC copies it into its private cache first (up to 512 MiB, and only while enough free storage remains; the copy is deleted when the share ends and leftovers are removed at the next start). Copying a big file can take a while. If the file cannot be opened, the message “Could not play the shared file.” appears; “Another shared file is still being processed. Try again in a moment.” means the previous share has not finished.

A shared item (not files picked in YAACC, see below) is available to the receivers while a player is playing it and for 10 minutes after that player ended (renderers may still buffer or seek), but at most 6 hours. Up to 8 shares can be active at once; if more are tried, “Too many active shares. Try again in a moment.” appears. Quitting YAACC ends all shares. YAACC does not start or stop anything for a share and does not change your settings: the built-in HTTP server runs whenever the app runs, whatever the “local server state” setting says.

The address a receiver is given contains a random key. It is kept in memory only and is never written to the settings. Who may use it is decided by the setting restrict the media proxy to the chosen receivers (on by default).

Playing files from this device

To play files or a folder of your phone on receivers without serving them constantly, use the card “Play from this device” (with the phone icon) directly below the servers in the server list. Tapping the card (or pressing the centre key of a D-pad on it) opens the file picker; the card also has two icon buttons:

Then the “Play on…” list opens (see Choosing receivers; in the classic layout the receivers selected on the receiver tab are ticked) and “OK” starts the playback on exactly the ticked receivers. There is nothing to browse: YAACC does not list the content of your phone, and the local server does not have to run.

Media proxy

The proxy service is used in the context of sharing URLs with YAACC and playing the URL on a UPnP/DLNA device in your network. Normally the URL will directly passed to the rendering device. Sometimes the rendering device is not able to play https URLs. Therefore we need to get rid of the encryption and provide the content with an unencrypted http URL. For this the proxy service can be used. In that case the URL shared with YAACC will not directly passed to the rendering device. YAACC generates a new http based URL which points to YAACC and send the to the receiver. When the content is played YAACC fetches the data from the origin through the encrypted https connection an passed the content unencrypted through the http connection to the rendering device. Because the content then travels unencrypted to the rendering device, enable the proxy only on a network you trust.

The proxy address of a shared link is random, belongs to that one share, lives in memory only and expires as described in Sharing to YAACC. Earlier versions stored the shared links in the settings; YAACC removes those entries when it starts. Shared files always use this mechanism, whether or not the “media proxy service” setting is on; the setting only decides whether a shared link is proxied or handed to the receiver directly.

The proxy is the SSL offload during sharing, and it needs the UPnP server switch on the first page to be on: the proxy is the app’s own http server, and with the switch off the app does not serve a proxied link (its http server answers “403” for it). A shared link with the proxy checked and the UPnP server switch off is therefore refused, and the app shows a message that names the switch; switch the UPnP server on or uncheck the proxy in the settings. With the proxy not checked a shared link is handed to the receiver directly, whatever the switch says. Normal sharing works without the switch: a file shared from another app or from the device is handed out with its short-lived address whether or not the UPnP server switch is on.

By default only the receivers you chose may fetch a shared item from the proxy (setting “restrict the media proxy to the chosen receivers”). If a receiver is refused, see Settings for when to switch this off.

For renderers with “enable server-side seeking for external URLs” switched on (settings, per renderer), a shared link that is proxied also supports seeking through the proxy, see Settings.

Appearance and log

Settings > Appearance > Theme offers “System” (follow the system setting), “Dark” and “Light”; a fresh install starts with “Dark”. The app is gray scale in Material 3 style: check boxes, switches, sliders and progress bars are gray in both themes. The dark theme has a pure black page with slightly lighter bars, cards and sheets; the light theme has a light gray page and a light title bar.

The log opens from the overflow menu (“log”). It shows the entries of the level chosen in the settings (Appearance > Log level), refreshes every two seconds while it is open and scrolls down by itself only while you are at the end. The clear button hides all entries from before the moment you pressed it. The pause button stops the automatic refresh, so you can select and copy text; it starts again when you press it again.

Permissions

YAACC asks for the permissions that this Android version can grant (the media permissions, on Android 13 and newer also the notification permission, on older versions the storage permission), and only for those that are missing. It asks once: a permission you declined is not asked again at the next start, and the partial photo and video access of Android 14 counts as an answer. You can grant a permission at any time in the system settings of the app. The request to exempt YAACC from battery optimization (the server and the players have to run with the screen off) is shown once, not at every start; if you declined, you can still exempt the app in the system settings.

Shutdown timer

The shutdown timer stops all running players and the app after a certain time. The timer is settable and can be enabled at the bottom of the server list tab and the remaining time is displayed. In the new layout the timer is the symbol in the toolbar instead: tap it while a timer runs to stop it (the remaining time is shown under the title of the toolbar); otherwise a tap opens the duration picker, and confirming a duration above 0 starts the timer.

The back button never closes YAACC: the last back puts the app in the background and everything keeps running. The ways to end the app are the exit button (toolbar menu, and the notification action), the shutdown timer and the idle close below. The exit stops the players, the services and the notifications before the process ends (also the media notification of a player and a Snapcast play, which gives its group the previous stream back), and the app does not start again by itself afterwards: a restart that the system does within two minutes of an exit is ignored, and your own start of the app always works.

The shutdown timer is your own decision: it ends the app when it runs out, also while the media server, the receiver or a Snapcast session runs (a Snapcast client session that is ended this way is noted as ended by the app, and the Snapcast client details shows it afterwards). Apart from that, YAACC closes itself five minutes after its last screen went to the background, unless a player, a play to a Snapcast group or a Snapcast client session is running, the UPnP server switch on the first page is on (the media server, and with it the checked services media receiver and media proxy; those two checkboxes count only while that switch is on, because the service is stopped and serves nothing without it) or the setting autostart server on boot is checked (then YAACC is never closed automatically, even when every service is switched off: it only listens for devices). The five minutes also run when the app was started without a screen (after a restart of the device or a restart by the system) and nobody opens it; opening the app stops that timer, and it starts again when the last screen goes to the background.

Autostart on boot (Settings > UPnP server) is selectable at any time. Checked, the device start wakes YAACC, which then starts what is switched on (media server, receiver, proxy, and the Snapcast client if it is switched on), and the app is not closed automatically; not checked (the default), nothing starts at the boot. The setting switches the boot receiver of the app on or off; it is applied when you change it and at every start of the app, so an installation that had the setting checked before this version starts at the boot again after the app was opened once. The app targets Android 13 (API 33), for which the system allows a foreground service to be started from the boot receiver; Android 15 (the platform pages disagree on whether it is 14) may refuse it for apps that target those versions (and Android 12 and later may refuse a foreground service that is started from the background in other cases), so raising the target version would need a different boot start. The boot start has not been verified on a phone with Android 16.

browse_servers

shutdown_timer

OpenHome

OpenHome is an extension of UPnP for music players. Its devices keep the playlist themselves, so the playlist survives when the app is closed and other apps can control the same device. YAACC supports it in both directions. Nothing has to be switched on; the only choice you can make is described below.

YAACC as the controller. When a receiver offers the OpenHome Playlist and Product services, YAACC plays music on it with OpenHome: the playlist of the player screen is the playlist of the device (what you add is added to the device, what you delete is deleted on the device, what another app adds shows up here within a few seconds), and play, pause, next, previous, seek, volume, mute, repeat and shuffle go to the device. A device in standby is woken up, and its source is switched to the playlist. A playlist on an OpenHome device holds at most 1000 tracks; tracks beyond that are left out. Devices that speak OpenHome only (without AVTransport) are listed among the receivers too; their row has play, pause, stop, volume and mute (through the OpenHome volume service). Tracks of the playlist of a device can be dragged to another place (a device with OpenHome Playlist version 2 has an action for it; with version 1 the track is inserted again at the new place and the old entry is deleted, which gives it a new id), except the track that plays. A device that already plays, started by another app or before YAACC was reinstalled, is shown too: the row of an OpenHome-only device shows the state and the title of the track every ten seconds, and a tap on the row opens the player screen with the playlist and the current track of the device. Opening it only reads from the device (it is not woken up and its source is not changed); the first button you press does that. Videos and images, and devices without these services, are played with AVTransport as before. Repeat one does not exist in OpenHome and shows as repeat all. Tracks must have an http or https address. Audio files you pick on this phone are played on an OpenHome device too: the playlist of the player screen shows all of them, but, as for other receivers, a file is only shared with the device while it plays and while it is next, so the device gets the files two at a time (the current one and the next) and the app adds the following file when the device moves on. Picking a file in the playlist, or previous, shares the file again and starts it; files that are not on the device yet can be taken out of the list, the ones it has cannot. Video and images are not sent to a device that speaks OpenHome only (the app says so). The row of an OpenHome device has a settings icon, like a MusicCast device; it opens a sheet with Power (standby; the device is woken up when you play on it), Source (to switch the device to another of its sources, for example its radio or an input; YAACC only switches the source and does not control it, and playing from YAACC switches the device back to its playlist) and Playback protocol (to play on the device with AVTransport although it offers OpenHome; the choice is kept for that device). The same device has a power button on its card, like a MusicCast device (see The row): it is shown when the device description of the Product service has the actions Standby and SetStandby; the state it shows is the state the device reports (read every ten seconds while the receivers are shown, and again after each tap, since a device on the network is not subscribed to); a tap reads Standby first, then sends SetStandby the other way and reads again. The phone’s own renderer has no power button on its card (its standby is an app state).

YAACC as the renderer. The local renderer (Settings > local server > receiver) also offers the OpenHome services Product, Playlist, Info, Time and Volume next to AVTransport and RenderingControl. An OpenHome control point sees the app as a music player named like the app, with the source “Playlist” (this device) and, when Snapcast groups are known, one more source per group (see below), a queue of at most 1000 tracks and a standby state (a phone is not switched off: standby stops the playback and is reported to the control points, the queue stays, and playing or choosing a track wakes the app again); the tracks are played by the music player of the app. Control points that do not know OpenHome ignore the services and work as before. The services Product, Playlist, Info, Time and Volume are accompanied by a small Radio service: controllers that start a single stream with it (Home Assistant’s “play media” does) replace the queue with that one track and play it; the app does not offer a radio source. The OpenHome services are always offered by the root device of the app (when the app serves files and plays, that is the media server device with the renderer embedded in it), because OpenHome controllers such as Home Assistant look there only. The queue and the playlist of the music player of the phone are one list: what an OpenHome control point adds, deletes or moves shows up in the playlist of the local music player, and what you delete, move or add there (tracks with an http or https address; other tracks are taken out again) is changed in the queue and shown to the control points within about a second. Like the AVTransport renderer, it can be used by every device in the network.

The power button on the card of the renderer. When the renderer is on in OpenHome mode (Settings > local server > receiver, with the media server on), the card of the app’s own renderer in the receiver list has the same power button as the cards of other OpenHome devices, in the title line next to the check box (the card of “this phone” without the renderer has none). It shows the same state as the power switch in the OpenHome settings of that renderer (the settings icon of the card opens a sheet whose first row is Power): the symbol is full while the renderer is on and dimmed in standby, and it says its state aloud. A tap does what that switch does (it reads the state first and then does the opposite): standby stops the playback and keeps the queue, switching on only says the renderer is awake. Both are the one Standby state of the renderer’s Product service, so they always agree: a change of the switch, a control point’s SetStandby, a play that wakes the renderer, or the button, is seen on the card at once while a list is shown (the card is told by the renderer; nothing polls), and the state is not stored anywhere (a restart of the server starts awake). It is not the same as the renderer switch in the settings, which starts and stops the whole renderer service.

Snapcast groups as sources. The source list of the app’s own OpenHome renderer shows Playlist (this device, exactly as before) followed by one source per Snapcast group the app knows (at most 16, sorted by name; the name is the group’s name as the receiver list shows it, with a number when two groups have the same name; the type of every source is Playlist, so a controller can queue on each of them). Choosing a source in a controller sets the same Output setting as Settings > UPnP server > Output (This device, or Snapcast group with that group), and the other way round: a change in the settings, or in another controller, is reported to every controller as an event (SourceIndex, and SourceXml when the list changed), and an open settings screen shows it, so both always show the same state. The sources come from the groups the app has read from a server since it started (the receivers page, a play into a group, or the renderer’s own group output made the connection): the renderer does not connect to a server just to fill the list, so with no server known only Playlist is listed; the list is updated when groups appear or vanish. If the group that is chosen is not known at the moment (its server is off, or has not answered yet) the list shows it as Snapcast group (not available), which is the current source and can not be chosen. A controller that chooses a group that vanished since it read the list gets an error, the output and the source it shows stay as they were, and the phone shows a short message. A controller that holds a list from before a change and then chooses by number can pick another group than it meant: choosing by name or by the system name (a token that does not change while the list does) is safe. A controller that writes a negative number as the source gets this device (the network library turns it into 0).

Who can do what: as for the output itself, any device in the network that can reach the renderer can already set the output; the source list adds only that it can choose among the groups of your servers that the app knows, never an address or a group of its own: the sources carry the name of the group and an opaque token, and the id of the group and the address of its server stay on the phone. Choosing the source that is current changes nothing. A YAACC that controls another YAACC renderer leaves its current source alone when it prepares a play (it only switches to a playlist source when the current one is not a playlist).

Not supported yet: playing radio, Songcast or other sources from YAACC (the source can be switched, see above).

Trademarks

Android and Android TV are trademarks of Google LLC. UPnP and DLNA are trademarks or certification marks of their respective owners; YAACC is not UPnP or DLNA certified. Yamaha and MusicCast are trademarks or registered trademarks of Yamaha Corporation. Snapcast is the name of an open source project of its authors. Home Assistant, VLC, Kodi, BubbleUPnP, Windows and the other product and company names mentioned in this documentation are trademarks or registered trademarks of their respective owners and are used only to identify compatible products. YAACC is an independent project and is not affiliated with, authorized or endorsed by any of them.

Screenshots Settings About Code Legal Notice (Impressum) Privacy Policy