Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ fastlane/test_output
.codegraph/
.rtk/
CLAUDE.md

# Generated
.kotlin/
__pycache__/
55 changes: 55 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,61 @@ casting, a new interface, and AriaCompanion 2.
recognizes apps that block audio capture.
- **Onboarding**, Material You colors on Android 12+, home-screen **widget**.

### Sound and timing
- **Sleep timer** on Now Playing (15 to 90 minutes). The sound fades out over the last 30
seconds, then the cast stops. Every cast also starts with a one-second fade-in.
- **Sound per speaker**: bass, treble and level (-12 to +12 dB) and an optional loudness
leveler, set for each speaker while casting and remembered for next time. Works with
AriaCast, AirPlay, Cast, DLNA, Snapcast and VBAN speakers.
- **Rooms stay lined up**: each speaker's sync delay is now saved and applied the next time
that speaker joins a cast.
- **Known speakers**: a public list of which speakers are **supported**, **supported with quirks** or
**unsupported**, with what to look for and what to do, kept in its own repository,
[AriaCast/known-speakers](https://github.com/AriaCast/known-speakers), so that adding a speaker
never rebuilds the app. The app downloads it once a day (Settings → Known speakers, where it can be
switched off, updated by hand and browsed) and ships no copy, so the list is empty until the first
download. Only a newer, valid list is taken, and what the file may change is limited to five
settings (whether DLNA gets a Stop first or a Play after each track, the stream's content type, a
starting delay, and whether titles and artwork are sent), each within fixed limits and written only
by maintainers. The connection doctor shows a note, in your language where the list has one, while
you cast to a speaker with a documented quirk. DLNA speakers now report manufacturer and model.
- **More speaker logging**: every line logged while casting to a speaker is now attributed to it,
and each speaker keeps its own history, so a chatty one can't push another's out. New lines:
session start and end (with the speaker's model and why it ended); for DLNA the HTTP status and
timing of every Stop, SetAVTransportURI, Play and SetVolume, the UPnP error when a renderer
refuses, what the renderer does with the stream (its user-agent, how long it listened), and
its transport state (`PLAYING`, `PAUSED_PLAYBACK`, `STOPPED`) a moment after Play and on every
change; for Google Cast every player state change and why it went idle; for AriaCast the
receiver's handshake, how long a connection lasted and each reconnect, and the receiver's own
underrun and overrun counts. DLNA speakers are asked their state every 10 seconds while you
cast to them, which is one small request.
- **"Does it work?"**: the first time you have cast to a speaker for a minute, AriaCast asks once
whether it works: a dialog if the app is open, a notification with the two answers if not. "It
works" is kept on the phone, and offered for the public list only if the list does not already say the
speaker is supported. "There's a problem" asks whether it plays with something wrong or not at all and
what happens, then opens the pre-filled report with that written in. Nothing is sent unless you open
the report; speakers that a Sendspin server pulls from are not asked about. If casting to a single
speaker fails in that first minute, it asks instead whether to report it, with "doesn't work"
already chosen.
Only speakers are asked about or reported: AriaCast receivers, Snapcast, VBAN and Sendspin are
software on a phone, a computer or a server, so they are left out. A speaker is told apart by its
brand and model, never by the name you gave it: if it does not say its model, the report form
leaves "Speaker" empty for you to fill in. For "it works" no log is copied, since there is nothing
to explain.
- **Look for other devices** (Settings → Known speakers): a scan of about eight seconds, started by
you, for devices AriaCast cannot play to: UPnP devices that are not renderers, and mDNS services such
as Spotify Connect, Sonos, Amazon, HomeKit, HEOS and Bose SoundTouch. Speakers the app already lists
are left out. Tapping one opens a pre-filled report with what the scan learned (name, maker, model,
service types; addresses shortened), so a speaker the app cannot find can still be added to the list.
Nothing is kept or sent unless you open the report.
- **Report speaker**: long-press a speaker (or use the doctor) to open a pre-filled report on GitHub
with who the speaker is and what is known about it; its log lines are copied to paste in, with
addresses shortened. A bot in the known-speakers repository records it: a speaker already listed has
the report counted (the listed status follows the most reported one, and entries a maintainer
checked never change), a new one is added. The log is never copied into the list, and a person can
send three reports a day. "Share log" in the same menu sends the whole report through the share
sheet instead.

### Built in, previously plugins
- Music Assistant player picker, connection doctor, visualizer, add speaker by address.
- **Plugin API v2**: plugins describe their UI with `ui.render()`; the v1 view methods
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ Colors follow your wallpaper (Material You) on Android 12 and newer. Phones get
- **Bridge mode**: forward what this device receives to AirPlay, Cast, DLNA, Snapcast or Sendspin speakers.
- **Full-screen receiver** for tablets and TVs: artwork colors, clock, "scan to cast here" QR code, burn-in protection. Works with the Android TV remote.
- **Video casting** to Google Cast, DLNA and AirPlay, with subtitles and seeking.
- **Known speakers**: a public list of which speakers are supported, supported with quirks or not
supported, kept in [AriaCast/known-speakers](https://github.com/AriaCast/known-speakers) and
downloaded by the app once a day (Settings → Known speakers; it can be switched off). The first time
you cast to a speaker for a minute, AriaCast asks whether it works, and you can **report** it, or look
for devices it cannot play to, with a pre-filled report on GitHub. A bot records it: a speaker already
listed has the report counted, a new one is added. Logs stay yours.
- **Connection doctor**: checks the path from this device to the speaker step by step and tells you which step is broken.
- **Web remote**: control AriaCast from any browser on your network through a private link.
- **Quick Settings tiles**, a home-screen **widget**, **NFC tags** that start a cast when tapped, and **automation** intents for Tasker and MacroDroid (opt-in).
Expand Down
6 changes: 6 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ if (keystorePropertiesFile.exists()) {
}

android {
testOptions {
unitTests.isIncludeAndroidResources = true
}
namespace = "com.aria.ariacast"
compileSdk = 36
ndkVersion = "27.1.12297006"
Expand Down Expand Up @@ -146,6 +149,9 @@ dependencies {
implementation(libs.jmdns)

testImplementation(libs.junit)
// Starts the real app on the JVM: StartupSmokeTest catches crashes that only show at runtime.
testImplementation("org.robolectric:robolectric:4.18.1")
testImplementation("androidx.test:core-ktx:1.6.1")
// Self-signed TLS certificates for the fake Google Cast receiver in CastClientTest.
testImplementation(libs.bouncycastle.bcpkix)
androidTestImplementation(libs.androidx.junit)
Expand Down
16 changes: 16 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,22 @@
</activity>
<activity android:name=".ui.CompanionActivity" android:exported="false" />

<!-- Debug builds only ever open this: a crash report, in a process of its own so it outlives the crash. -->
<activity
android:name=".crash.CrashReportActivity"
android:exported="false"
android:process=":crash"
android:taskAffinity=""
android:theme="@android:style/Theme.DeviceDefault" />

<!-- "Does it work?": a dialog over whatever is on screen, opened by the cast service or by its notification. -->
<activity
android:name=".ui.SpeakerFeedbackActivity"
android:exported="false"
android:excludeFromRecents="true"
android:launchMode="singleTop"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />

<!-- One-tap casting: widget, shortcuts, and automation apps (com.aria.ariacast.action.CAST). -->
<activity
android:name=".automation.CastShortcutActivity"
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/java/com/aria/ariacast/AriaCastApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@ package com.aria.ariacast

import android.app.Application
import android.content.Context
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.launch

class AriaCastApp : Application() {
override fun onCreate() {
super.onCreate()
// The crash screen has a process of its own; it must not start the app a second time.
if (com.aria.ariacast.crash.CrashReporter.isCrashProcess()) return
com.aria.ariacast.crash.CrashReporter.install(this)
com.aria.ariacast.airplay.ProtoLog.sink = com.aria.ariacast.airplay.PacketLogSink
com.aria.ariacast.quirks.KnownSpeakersStore.init(this)
// A newer list of known speakers, at most once a day and only if the user keeps this on.
CoroutineScope(SupervisorJob() + Dispatchers.IO).launch { com.aria.ariacast.quirks.SpeakerListSync.syncIfDue(this@AriaCastApp) }
val sharedPreferences = getSharedPreferences(AudioCastService.PREFS_NAME, Context.MODE_PRIVATE)
val themeMode = sharedPreferences.getInt(SettingsActivity.KEY_THEME, ThemeUtils.MODE_NIGHT_FOLLOW_SYSTEM)
ThemeUtils.applyTheme(themeMode)
Expand Down
Loading
Loading