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

Play video in UIWebview background on Airplay

I have an app that plays several webvideos like Youtube and Vimeo in a UIWebView. When the video plays it is possible to send it to an Apple TV over AirPlay. Currently, during playback over AirPlay the video stops when I pause the app and move it to…
Wienke Giezeman
  • 159
  • 2
  • 17
4
votes
2 answers

allowsAirPlayVideo property on iOS 6

Does anyone know what are supposed to be used do disable AirPlay video playback on iOS 6.0? I tested in iOS 6.0 and 5.1 and still working. At this moment i'm using allowsAirPlayVideo = NO, but on iOS 6 it's Deprecated according the Apple…
camargo1985
  • 41
  • 1
  • 4
4
votes
0 answers

Airplay output from RemoteIO pass through

To prove a concept I am trying to output the iDevice microphone over Airplay. I have modified the AurioTouch code to provide the pass through, and it works fine using Airplay Mirroring from 4S / iPad 2 to Apple TV. However, when I try to use…
thf_dave
  • 383
  • 3
  • 7
3
votes
1 answer

Airplay on new Apple TV (3rd gen.) for second screen not at 1080p

I am working on an app that uses Airplay mirroring for a second display that has different content to the iPad itself. I'm using an iPad3 and ATV3 (i.e. released March 2012) attached to an LCD capable of 1920x1080 via HDMI. With Airplay mirroring,…
henri
  • 31
  • 1
  • 2
3
votes
2 answers

iPad Mirroring using 2 screens, does it support 1080 resolution?

2.5 years of mac and iOS development and i haven't found an answer to something. I'm working on a project utilizing iOS 5.0 and apple TV's airplay to display one UIScreen on the iPad and a separate one on my Apple TV. I have 2 separate view…
Dev2rights
  • 3,469
  • 3
  • 25
  • 42
3
votes
1 answer

Are screen connect/disconnect notifications working with iOS 5?

Is anyone still getting, with iOS 5, screen connect/disconnect notifications, regardless of whether you check mirroring or not? I don't seem to be getting any notifications, unless I plug a video-out cable to my device, instead of using AirPlay. I…
mahboudz
  • 39,196
  • 16
  • 97
  • 124
3
votes
0 answers

Running airplay in simulator

Possible Duplicate: airplay in simulator - objective-c How to run AirPlay via iOS simulator? Like here: I setAllowsAirPlay to YES, and run TV-out in simulator, but video doesn't appear
Timur Mustafaev
  • 4,869
  • 9
  • 63
  • 109
3
votes
0 answers

Send UIEvent from iOS device UIView to external screen UIView

I'm working on an app using AirPlay and I need a way to have touches on the main screen act as touches on the UI on my external screen in order to be compatible with a large number of previously existing custom UI elements. Rebuilding the UI…
Kyle Olson
  • 116
  • 6
3
votes
0 answers

identify the name of the AirPlay device for accessibility

I'm trying to identify the name of the device when AirPlay is active. I would like to use the name for VoiceOver. Test Case With the snippet below, all I'm getting is "AirPlay". Here is a snippet: var externalDeviceName: String { let…
Clint_M
  • 31
  • 1
3
votes
1 answer

On iOS, how can I force AVRoutePickerView to allow route switching between speaker and the handset?

Right now, when the user presses the AVRoutePickerView, they get a choice of iPhone and other AirPlay targets. And picking iPhone uses the speakerphone to play back audio: I'd like there to be an option to switch between iPhone and Speaker, where…
user496854
  • 6,461
  • 10
  • 47
  • 84
3
votes
2 answers

iPhone:What is the use of Airplay SDK?

Can someone explain me what is Airplay SDK and when it is used, how to use in program etc. details? I hope, it is used for streaming videos from iPhone to TV? Thanks.
Getsy
  • 4,887
  • 16
  • 78
  • 139
3
votes
1 answer

Airplay stop playing video streaming when app is in background or device locked

I'am using an AVPlayerViewController for playing video in streaming. When I launch Airplay on the AVPlayerViewController on the Apple TV and put the app in background or if I lock the device, the video paused on the Apple TV. I verify that like in…
3
votes
2 answers

AirPlay Meta Data on Apple TV from App (AVPlayer - MPVolumeView)

I have my app successfully streaming an MP3 via AVPlayer. I implemented a MPVolumeView to pull in AirPlay support which works great but I notice that the title info on my apple tv, does not show anything from the streamed MP3 but rather just…
stitz
  • 1,429
  • 1
  • 16
  • 33
3
votes
0 answers

Remotely enable a laptop's airplay from an Apple TV

Any suggestions for how you would "trigger" the airplay on a Macbook Air laptop to start mirroring to an Apple TV? The setup is as follows: laptop is connected to LAN Apple TV (called "Living Room") is also connected to LAN I can write an…
ajrlewis
  • 2,968
  • 3
  • 33
  • 67
3
votes
2 answers

How To Authenticate an AirPlay Session

I am serving HLS video with AWS CloudFront. The content is secured with Signed Cookies. I would like users to be able to use Apple AirPlay to watch the video on AirPlay devices. An authenticated iOS safari client with valid Cloud Front cookies is…
Arthur Cinader
  • 1,547
  • 1
  • 12
  • 22