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

iOS External Display Incorrect Orientation

I am trying my best to mirror my iPad app screen to an external display. I know that it does this automatically just by using AirPlay and Mirror after selecting Apple TV, however, that method always makes it letterbox, and doesn't take up the…
user717452
  • 33
  • 14
  • 73
  • 149
0
votes
0 answers

Share data between two UIWindows

My objective is to have an AirPlay option for my iOS app that shows the same content as the iPad (like a mirror) except slightly modified to the 16x9 aspect ratio of the TV. I have all the initial setup complete, up to the point where I have the…
Jaun7707
  • 119
  • 2
  • 9
0
votes
1 answer

Show different content on 2 windows in and IOS app

I am using Airplay mirroring for my iPad Application to connect Mac Screen where I want to show my app simultaneously on ipad and Mac screen. Now that I have different resolutions of my mac and ipad. How would I be able to show 2 different views.…
Asadullah Ali
  • 1,056
  • 14
  • 31
0
votes
1 answer

PhoneGap/Cordova ExternalScreen plugin states "External Web View unavailable"

I created a PhoneGap/Cordova app for iPad and I want to share specific images from the app via AirPlay to a second screen (A PC or Mac running AirServer (see http://www.airserver.com)). So I installed the PhoneGap plugin…
Timo Ernst
  • 15,243
  • 23
  • 104
  • 165
0
votes
0 answers

AirMac server os X application does not connect with iPhone Airplay

My Application requirement is develop app like(reflector/AirServer)So i Downloaded Airmac Application source and run it in mac system with X-code6.1,It did show airplay option in iPhone.Then use the following command in terminal to enable airplay…
0
votes
1 answer

Simulating a resizeable airplay display

Im working on an iOS application that supports external displays over airplay, I do most of my testing with the external display option in the simulator, and some on iOS devices connected to macs running various airplay receiver apps. Im now…
Jesse Crocker
  • 863
  • 5
  • 14
0
votes
1 answer

MPMoviePlayerController custom airplay button

I have a MPMoviePlayerController with custom controls. I wanted to add a Button to this custom view that would send the video via AirPlay. Is this possible? i have read the apple documentation on MPMoviePlayerController but did not found anything on…
rob180
  • 901
  • 1
  • 9
  • 29
0
votes
1 answer

enable MPMoviePlayerViewController airplay

I am trying to enable airplay in my application using setAllowAirplay but its showing below warning. MPMoviePlayerViewController may not respond to 'setAllowsAirPlay' So please suggest how can I enable airplay in my application.
Mitesh Khatri
  • 3,935
  • 4
  • 44
  • 67
0
votes
1 answer

How iOS app switch hdmi input when starting airplay?

Are there any solutions in how iOS app switch hdmi input when starting airplay? I want to switch HDMI-input when tap a airplay icon on my iphone app automatically, just like google-chromecast. I use MPMovieplayer to play my movies. ofcourse, i can…
deadcheat
  • 23
  • 4
0
votes
1 answer

Concurrently playing one stream on device and other through AirPlay?

I'm working on an iOS App where you can play multiple streams at the same time.Each stream use one AVPlayer. I have now added a MPVolumeView for AirPlay Support. My first issue is that when I AirPlay one stream, all streams on the device goes black.…
Björn
  • 583
  • 5
  • 15
0
votes
1 answer

How to get the AirPlay device name without using iOS7 deprecated methods

I'm using the method described here Get name of AirPlay device using AVPlayer to retrieve the name of the AirPlay device connected. But AudioSessionGetProperty and kAudioSession_AudioRouteKey_Outputs are deprecated in iOS7. I'm looking for an…
flopr
  • 450
  • 4
  • 23
0
votes
1 answer

Stream video via AirPlay without affecting app?

I have a native app and would like to stream video to an Apple TV over AirPlay, but without affecting the app screen. The video should NOT to be shown on the app screen -- only on the Apple TV. Is this possible in iOS 7?
user1379417
0
votes
1 answer

iOS 7.1 Airplay Mirroring with Microphone

In iOS 7.1 Airplay Mirroring is not an option for apps that are actively using the microphone - either Airplay doesn't show up in control centre, or it does show up with only the device as output options. Turning on mirroring from the springboard…
glenstorey
  • 5,134
  • 5
  • 39
  • 71
0
votes
1 answer

Airplay secondary screen not in NSScreen array

I setup my iPhone with AirPlay connected to my AppleTV. I run this method and unfortunately have only 1 screen (main screen) where I should get 2 on an actual device. Note: this works with the simulator. Any idea? -(void)airplayInit { NSArray…
Stéphane de Luca
  • 12,745
  • 9
  • 57
  • 95
0
votes
1 answer

Apple AirPlay mirroring SDK

Is there an SDK for Airplay Mirroring? I'm working on a prototype for a device that should mirror the screen of an iOS device. I understand this may be achievable by paying royalties to Apple for each device, and I'm fine with that. But how would I…
user1496984
  • 10,957
  • 8
  • 37
  • 46