Questions tagged [airplay]

Airplay is a streaming technology made by Apple to stream media to multiple devices wirelessly or to the Airplay SDK that offers deployment to many platforms.

Airplay?

Airplay is a Streaming Technology made by Apple Inc to stream media to multiple devices wirelessly or to the Airplay SDK that offers deployment to many platforms including iOS, macOS, tvOS, watchOS, Windows, Linux, Android, Symbian, and more recently, through the Airplay Arcade, all major consoles and handheld devices.


Apple added Airplay in Safari

In 2015 Apple added Airplay for HTML5 Video *default player, And a API for JavaScript Presentation mode, for those who wanna use their own video player.

This can be done by using the following code:

// Safari 9+
if (window.WebKitPlaybackTargetAvailabilityEvent) {
    video.addEventListener('webkitplaybacktargetavailabilitychanged', function(event) {
        switch (event.availability) {
            case "available":
                airPlay.style.display = 'block';
                break;
            default:
                airPlay.style.display = 'none';
        }
        airPlay.addEventListener('click', function() {
            video.webkitShowPlaybackTargetPicker();
        });
    });
}

NOTE: Airplay can be use for both Audio and Video.


In 2016 They added Picture In Picture to the default HTML5 Player, its also use Javascript Presentation mode API.

453 questions
0
votes
0 answers

Read AirPlay Audio Device Type (HomePod, Apple TV, etc)

I am trying to get info about a connected AirPlay device using let currentRoute = AVAudioSession.sharedInstance().currentRoute guard let output = currentRoute.outputs.first else { return } When connected to HomePod or Apple…
Jacob Cavin
  • 2,169
  • 3
  • 19
  • 47
0
votes
0 answers

Can't get AudioTrack to work properly on Android TV

I'm writing an Android AirPlay receiver. I use java-airplay-server from GitHub, But when I try to stream PCM Byte audio with Android AudioTrack ,Works fine on mobile but doesn't stream properly on Android TV and it's all noise How to solve private…
cpliang
  • 65
  • 1
  • 6
0
votes
1 answer

Is it possible render video frames directly to AirPlay from an iOS app?

Is it possible for me to generate CMSampleBuffers in real time and stream that to a TV via AirPlay. Similarly to how I am able to render those frames directly to an AVSampleBufferDisplayLayer on the iOS device. I know that I can use AirPlay with the…
Anton
  • 978
  • 8
  • 16
0
votes
0 answers

Bluetooth to Earpiece switching is not working in iOS 15 and above (VoIP Application)

We are developing a VoIP application. Application is developed using Xamarin.iOS. In order to match iOS calling features, CallKit and AVRoutePickerView are used. When VOIP call is connected, user try to switch the audio mode from Bluetooth to…
Ranjit
  • 833
  • 8
  • 15
0
votes
0 answers

mDNS Discovery for AirPlay Devices

I want to make an mDNS Discovery for the AirPlay devices in my network using NetService. I need to get the device name and IP address of the Device. func netService() { let service = NetService( domain: "local.", …
Rithik
  • 11
  • 4
0
votes
0 answers

Send local audio to a specific Airplay speaker programmatically?

I want to play a local mp3 file to a known Airplay-capable speaker in my house. I can bring up the AVRoutePickerView programmatically - but I am more interested in somehow getting a list of known Airplay speakers, loop through looking for my…
0
votes
0 answers

RTSP/Airplay: how to poll or monitor for Airplay Audio playing

I'm building a stereo system, using a belkin Soundform Airplay adapter. I have a home server, and want to write an app that monitors the Soundform, and when it is playing audio turns the Audio Amp on or off. I tried to monitor MDNS announce: I can…
scosman
  • 2,343
  • 18
  • 34
0
votes
0 answers

Address already in use Port 5000 is in use by another program

Address already in use Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port. On macOS, try disabling the 'AirPlay Receiver' service from System Preferences -> Sharing. But the…
user20886619
0
votes
0 answers

Use DIAL to cast to apple tv from android app

Can we use DIAL to discover and play content on apple tv from android app? If not what should we use cast to apple tv from android mobile Thanks, Pavan Tiwari
Pavan Tiwari
  • 3,077
  • 3
  • 31
  • 71
0
votes
2 answers

Looping HTML5 video,

I'm trying to loop a section of HTML video using jQuery, in particular, when the video reaches 7 seconds, I want it to loop back to 0. I can't cut the actual video to seven seconds and use the 'loop' function within the video tag as firefox and…
Brenta
  • 23
  • 1
  • 3
0
votes
0 answers

Is it possible to filter device list displayed in AVRoutePickerView?

Our iOS app supports video streaming. We use AVRoutePickerView to give users an option to stream videos on their TV devices using Airplay connection. Videos that we stream have some specifics that make them work without issues only on Apple TV.…
Matevz
  • 3
  • 2
0
votes
0 answers

Can you have playback of both MPMusicPlayerController and AVAudioPlayer over AirPlay?

My iOS app uses the MPMusicPlayerController.applicationMusicPlayer to play music and it can also play other sounds via AVAudioPlayer simultaneously. It works fine playing through either the device speakers or bluetooth earphones / headsets. When it…
Germán
  • 4,525
  • 3
  • 31
  • 37
0
votes
1 answer

External Display Crashing On Adding Subview

In my app, there is one small section that displays lyrics to songs (PDFs loaded in a WKWebView). What I want to be able to do, is when you mirror that screen to an Apple TV, still control it with the iPhone/iPad, but have it be the full screen,…
user717452
  • 33
  • 14
  • 73
  • 149
0
votes
0 answers

Decode h264 video to java.awt.image.BufferedImage in java

I am trying to make an AirPlay server in java with this library. I am able to start the server and connect to it and I am getting video input, however the input is in h264 format and I tried decoding it with JCodec but it always says I need an…
LetsDuck
  • 41
  • 4
0
votes
1 answer

Videos Airplay Support webapp

I've successfully make the iPhone play the embed video in my site by using this tag : with the iPhone tested and worked…
Ali
  • 9,997
  • 20
  • 70
  • 105