weenas

CastBay is an open-source receiver for Android TVs, TV boxes, car displays and tablets that accepts AirPlay mirroring and media from iPhone, iPad and Mac plus DLNA casts from phones.

v1.12.0
Published at
10h ago
113
Stars
3.9k
Download

Latest release

v1.12.0Dec 5, 2026, 04:58 PM
Downloads slow? Switch the source anytime above

README

Project Overview

Maintained by the weenas organisation, CastBay is one of the few open-source receivers built for big Android screens: it turns a TV, TV box, car display or tablet into a target for iPhone, iPad and Mac, handling AirPlay mirroring, music, video and the DLNA hand-off from Android phones in a single app. The protocol layer uses UxPlay's RAOP / RTSP / RTP and FairPlay, playback goes through Media3 / ExoPlayer, and the UI is Kotlin with Jetpack Compose. A Rust-based CastBay for PC also pushes a Windows or Linux screen to the TV.

Item Value
Platform Android 6.0 and above: TVs, boxes, car displays, tablets
Protocols AirPlay (UxPlay), DLNA / UPnP
Package CastBay-1.11.0.apk, about 8.9 MB
UI Kotlin + Jetpack Compose
License GPL-3.0

Phones, Macs and Windows PCs all cast to it, and the TV side installs a single APK.

Key Features

  • AirPlay mirroring: screen mirroring from iPhone, iPad and Mac at up to 60 fps, with H.265 up to 4K on 4K TVs that decode HEVC in hardware
  • AirPlay music: lossless ALAC played at each frame's NTP time, so the phone believes it was heard exactly as with an Apple TV; lyrics stay in sync and pause/resume keeps its place
  • Synced lyrics: optional lyrics from lrclib.net with a blurred cover backdrop
  • AirPlay video: casts from apps such as YouTube or iQiyi play straight from the source, with audio track and subtitle choices
  • DLNA receiving: cast buttons in Bilibili, iQiyi, NetEase Cloud Music and QQ Music work; video covers MP4, MKV, WebM, FLV, HLS and DASH, audio covers MP3, AAC and FLAC, and pictures are not supported
  • Playback stats: while mirroring you see both the TV's and the phone's numbers, including frames sent, frames dropped, round trip, packet loss and bandwidth

Playback and Remote

  • Press Down on the remote, or tap once on a touch screen, to open a quick menu with picture fit, playback stats, audio and subtitles, pause and skip
  • Media keys, including those on a steering wheel, pause and change tracks; Back twice stops the cast while Home keeps it playing
  • The home screen shows the name phones see plus the current network, so you can tell which TV you are on
  • Interface languages are English, Simplified Chinese and Traditional Chinese, with untranslated strings falling back to English

Access and Privacy

  • Four admission modes: anyone, only devices already allowed on the TV, a PIN shown on the TV at first connection as on an Apple TV, or a password
  • Each device can be allowed or blocked individually, and you choose whether a second device may cast at the same time
  • No account system; problem reports are stripped of personal details first, anonymous usage statistics are off by default, and both require you to opt in

Install

  1. Download CastBay-1.11.0.apk from Releases
  2. Push it with adb install -r CastBay-1.11.0.apk, or copy the APK onto a USB stick
  3. Once the home screen shows a device name it is advertising, and the phone's Control Centre screen mirroring lists it
  4. To build from source, run git submodule update --init for UxPlay, libplist, ALAC and OpenSSL, then ./gradlew assembleDebug
  5. The debug build uses com.weenas.castbay.debug, installs next to the release app and ships a simulated sender driven by tools/sim

System Requirements

Item Requirement
OS Android 6.0 (API 23) and above
Device types Android TV, TV boxes, car displays, tablets
Network Sender and TV on the same local network
Build environment JDK 17–21, Android SDK Platform 37, NDK 27.0.12077973, CMake 3.22.1, perl and make

Notes

  • The TV must reach the source itself: AirPlay and DLNA video is fetched by the TV, so an address the phone only reaches through a proxy or VPN (YouTube's googlevideo.com, for example) needs the same route on the TV
  • Mac Music app cannot cast here: it uses FairPlay type 2, which UxPlay does not handle
  • DLNA is audio and video only: picture casting is unsupported, and the format list follows the compatibility page
  • Mirroring quality depends on both ends: H.265 and 4K require hardware decoding on the TV, otherwise the stream drops a tier

Release history

Sort