java-airplay-server-examples

Build Status HitCount License

All examples were tested with iPhone X (iOS 14.0.1)

tcp-forwarder

Forwards video and audio data to TCP

Play it with GStreamer or FFmpeg

cd tcp-forwarder/

gradle bootRun

gst-launch-1.0 -v tcpclientsrc port=5002 ! h264parse ! avdec_h264 ! autovideosink

or 

ffplay -f h264 -codec:v h264 -i tcp://localhost:5002 -v debug

ffplay -autoexit -f s16le -ar 44100 -ac 2 tcp://localhost:5003

You need to compile lib-fdk-aac for aac-eld decoding

h264-dump

Saves video data stream to .h264 file, decoded audio to .pcm file

cd h264-dump/

gradle bootRun

ffplay -autoexit -f s16le -ar 44100 -ac 2 dump.pcm

You need to compile lib-fdk-aac for aac-eld decoding

vlcj-player

Playback screen mirroring in embedded vlc

cd vlcj-player/

gradle bootRun

jmuxer-player

Playback screen mirroring with jmuxer

cd vlcj-player/

gradle bootRun

open index-h264.html in browser