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

UIScreen screens always return 1 screen

I'm trying to display a picture on Apple TV with Airplay without mirroring mode. But [UIScreen screens] method always return 1 screen (main screen) when mirroring is OFF. I want my picture display same as Photo application (Airplay without…
Mr Phuc 87
  • 184
  • 2
  • 7
2
votes
2 answers

Is it ok to use Unoffical Airplay protocol?

I have come across this link http://nto.github.com/AirPlay.html while searching for ways to implement Airplay. I dont have an apple tv so I was testing using Airserver. I could achieve the image sharing via the unofficial protocol. My question is…
Nareshkumar
  • 2,331
  • 2
  • 20
  • 30
2
votes
3 answers

How to get started with airplay?

I am trying to get started with iOS Airplay (split screen and mirroring) and it seems like there is pretty much nothing on the web about this. I am looking for a sample app or a step by step tutorial to set up Airplay on my app, basically to share…
moshikafya
  • 3,190
  • 5
  • 22
  • 27
2
votes
1 answer

stream camera output onto screen: IwGx vs s3e

I'm trying to stream the output of my phone's camera onto the screen. If this output is drawn onto quads using IwGx, will it be faster than writing to the s3eSurfacePtr? I have heard that some people create games by rendering their 2d images onto…
chaindriver
  • 882
  • 3
  • 7
  • 15
2
votes
1 answer

How to get Airplay working with encrypted HTTPS streaming?

I´ve been struggling to get AirPlay to work with encrypted streams playing in AVPlayer. Reading this page by Apple doesn´t do me much good. Serve keys from a protected HTTPS realm. Before playback begins, your app can use NSURLConnection to…
Nailer
  • 2,446
  • 1
  • 24
  • 34
1
vote
1 answer

Clearing after-image from Airplay device, using UIWebView

I send a secondary UI to AirPlay - on iOS 5.1. On the iPad, the user may use a UIWebView to play a video, and if they have Airplay setup, the video will be sent to the AirPlay device. When the video finishes playing or if the user pauses, the…
Rob Reuss
  • 1,400
  • 10
  • 20
1
vote
2 answers

Set Airplay manually?

I have an iPad app and I have a video playing in a view. I would like to play video using Airplay but by pressing my own button. I have set allows airplay = YES and so forth, this works if I enable the full controls, but I want to set no controls…
Trausti Thor
  • 3,722
  • 31
  • 41
1
vote
3 answers

Audio Route Button - AirPlay

I am currently playing audio through AudioQueues. I would like to allow users to connect to Airplay devices. If I create an MPVolumeView and use the 'showsRouteButton' to display the route button I can successfully connect. Is there a way to…
TurqMage
  • 3,321
  • 2
  • 31
  • 52
1
vote
1 answer

can you turn on airplay mirroring with iOS 5 objective-c code?

can you trigger airplay mirroring with iOS 5 code? I see in the API how you can stream. Just wonder if anyone knows how to turn on and off mirroring programmically in my app on iPad2 using iOS5, or if that even is possible. I DO see how to…
dreadbot
  • 942
  • 2
  • 11
  • 28
1
vote
0 answers

How to have ipad play different audio to that of a second screen connected by airplay in ios5?

Is it possible to have the ipad play audio locally while at the same time playing different audio over airplay to a connected apple tv? It IS possible to have the apple tv show different VIDEO to that shown on the ipad by initialising a second…
Geoff H
  • 3,107
  • 1
  • 28
  • 53
1
vote
1 answer

iPad AirPlay and Mirroring SDK Support

Not sure if I have seen it the docs, but I don't see anything relating to enabling AirPlay Mirroring from within an iOS app. Has anyone done this before? or is this something done only outside of the App. Also with AirPlay, since it only supports…
Brian Liang
  • 7,734
  • 10
  • 57
  • 72
1
vote
0 answers

How to get external display information after choosing use as separate as display via screen mirroring on MacOS?

I would like to get some information of the connected display such as vendor number, eisaId, … after connecting the external display via “screen mirroring” -> “use as Separate Display” When the same display was connected through HDMI port or extend…
Luu Minh
  • 21
  • 2
1
vote
0 answers

Airplay mirroring app screen out of the app

Can I launch AirPlay from my custom app and then display the custom app screen on the external monitor? I found a solution to display videos. - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. …
cuSoon
  • 53
  • 7
1
vote
0 answers

How to change subtitles of video during Airplay on web

I have a native video player (VideoElement) with custom controls that supports AirPlay. The videoElement has textTracks (subtitles) that work fine when playing in the video and they work fine in AirPlay when changing subtitles using the Apple TV…
MLyck
  • 4,959
  • 13
  • 43
  • 74
1
vote
0 answers

Communicate with apple airplay

i'm a mobile developer and i want to know is there any way to cast music to this service with an android device? i'm already using shairport-sync library as my server. and i want to send Musics to server but i can't find any source code or example…