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
2
votes
1 answer

Detect AirPlay Mirroring in iOS application

I have an iOS app built in XCode with Objective C mainly for iPads. Basically I want to detect inside my application of AirPlay Mirroring is active, so mainly if the device is mirroring to another screen. I searched all around stackoverflow but I…
Razvan N
  • 554
  • 3
  • 9
  • 29
2
votes
1 answer

tvOS 10.2 pairing protocol

Is it possible to find somewhere the protocol used to pair/authenticate a by AirPlay and that is mandatory on tvOS 10.2? A quick Wireshark of iTunes controlling an AppleTV gives a rough idea of what's happening but does not gives the format of what…
philippe_44
  • 337
  • 3
  • 11
2
votes
1 answer

How to avoid Airplay to freeze when using AVComposition?

My code is as follows: //init mix composition let mixComposition = AVMutableComposition() //video asset let videoAsset = AVURLAsset(url: VIDEO_URL) let videoTrack = mixComposition.addMutableTrack(withMediaType: AVMediaTypeVideo, preferredTrackID:…
Mark
  • 16,906
  • 20
  • 84
  • 117
2
votes
0 answers

iOS - Audio Output Endpoint Routing

Is there a way create a virtual audio output device that would make it show up in the Music app's or Spotify's output options? Alternatively, is there a way to intercept the audio stream and then force audio output to something unused (say, open…
skobovm
  • 186
  • 1
  • 6
2
votes
1 answer

AirPlay doesn't appear in iOS 10

SOLVED With iOS 10.2 AirPlay button has reappeared and it still works. Apple poltergeist! In iOS 9 I used this code to detect Airplay devices. With deployment target 10.00 it doesn't appear. In Control Center I can find my airplay devices, but in my…
Joannes
  • 2,569
  • 3
  • 17
  • 39
2
votes
0 answers

I published Airplay service on my iPhone, but it couldn't be detected by other iOS devices

I want to write develop an Airplay receiver for iOS device so I can share photos/videos from my iPhone to other iOS devices. First of all, I have to publish Airplay service, and hope it could be detected by other iOS devices like iPhone or iPad. I…
Bao Weijie
  • 21
  • 1
2
votes
2 answers

Is it possible to enable airplay mirroring programmatically?

I've looked around a lot regarding this question but all the ones I've found are pretty outdated. example this article is from 2012 and says that it's not possible Basically I want to be able to start mirroring my iphone through airplay to another…
oliver
  • 41
  • 1
  • 2
2
votes
0 answers

Supporting AirPlay with Safari on OS X and iOS

I have a site that plays video to subscribers. I use the native browser html5
Ben Scheirman
  • 40,531
  • 21
  • 102
  • 137
2
votes
1 answer

MPVolumeView does not show route button on launch

iOS 9.1 - iPhone 6S MPVolumeView's route button (airplay) is not showing when app launches even when there are wireless routes available. I have tried querying my MPVolumeView after it has been created to check for wireless routes and I get 0. I'm…
CodemanDoEl
  • 472
  • 1
  • 4
  • 18
2
votes
0 answers

Find device type on airplay

When I press the airplay button the list of the devices that are available are shown. How do i get the device type (Apple TV , Bluetooth speaker, etc) when connecting using airplay.
2
votes
1 answer

Get UIWindow of AirPlay mirroring screen

I'm trying to get the UIWindow object of the external screen (such as a television) when using AirPlay mirroring. The tricky part: it really is AirPlay mirroring, not a separate display, as we're using the built-in functionality of AirPlay rather…
Nerrolken
  • 1,975
  • 3
  • 24
  • 53
2
votes
1 answer

How to make an AirPlay receiver using Mono.Zeroconf

I am trying to make an AirPlay receiver on Windows and I stumbled upon Mono.Zeroconf http://www.mono-project.com/archived/monozeroconf/. With this, I tried to put up the code. Here is the code snippet: EDITED CODE: RegisterService airplayService =…
anton
  • 21
  • 3
2
votes
0 answers

How to tell if Airplay streaming failed?

I'm working on a video content app that features both live stream and a VOD with ads. For DRM reasons we need to use different streams when playing the VOD on the device / streaming over AirPlay. When I do that switch and try to start streaming to…
Bruno Machado - vargero
  • 2,690
  • 5
  • 33
  • 52
2
votes
0 answers

HTTP Parse Errors coming from AirPlay

I'm working on a fairly large Rails 3 project that by default is run on localhost:5000 for development. I'm currently migrating our web server from unicorn to puma. However, when I run my development server, I constantly get these kinds of…
sixtimes
  • 337
  • 2
  • 11
2
votes
1 answer

How to Screenshare of my iPad on Mac

I have a big demo of my iPad application to my client,i tried AirServer, Bomgar but those are not working to share my iPad Screen on the Mac. Can any one help me which tool i should use for screenshare of my iPad to Mac. If i can share my iPad…
Sudheer Kumar Palchuri
  • 2,919
  • 1
  • 28
  • 38