Skip to content

Example of an Android SendSpin Server which broadcasts audio from an application or the whole device

Notifications You must be signed in to change notification settings

chrisuthe/SendSpinServerPipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SendSpin Server Pipe

Proof-of-concept Android app that captures system audio and streams it to SendSpin players over the local network.

This is an experimental server implementation of the SendSpin protocol. It uses Android's MediaProjection API to capture audio from any app, encodes it to FLAC via MediaCodec, and broadcasts it to connected players over WebSocket.

What it does

  • Captures system audio output (requires screen capture permission)
  • Discovers SendSpin players on the local network via mDNS
  • Streams FLAC-encoded audio to one or more players simultaneously
  • Synchronizes playback across players using clock sync and sample-counter timestamps
  • Forwards media information when available

Requirements

  • Android 10+ (API 29) for AudioPlaybackCapture
  • Players running the SendSpin client (e.g. sendspin CLI)
  • All devices on the same local network

Building

Open in Android Studio and build the app module. Requires JDK 17.

Status

This is a proof of concept. It works but has rough edges. There is no volume control, and error handling is minimal.

About

Example of an Android SendSpin Server which broadcasts audio from an application or the whole device

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages