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

AirPlay in MPMoviePlayerController

I can't get the AirPlay option to show up in my MPMoviePlayerController. It shows up in the command center but I can't get it to show up within my app. I do get an "iPhone Speaker" option (why??) and an "iPhone" option instead of the usual "iPhone"…
hanleyhansen
  • 6,304
  • 8
  • 37
  • 73
1
vote
1 answer

How to make AirPlay button to appear?

Currently I'm trying to make some kind of airplay server, but failed. The problem is that the airplay button doesn't appears on my ios device. I've followed this link, and I'm stuck at part where I need to register the airplay service. I'm…
1
vote
1 answer

AirPlay route button is visible but no device list

I am using MPVolumeView to add the airplay button in my app, I am using the following code. myVolumeView = [[MPVolumeView alloc]initWithFrame:CGRectMake(self.view.frame.size.width-130, 25,20,20 )]; [myVolumeView setShowsVolumeSlider:NO]; …
prabhu
  • 684
  • 11
  • 27
1
vote
3 answers

how to check if the airplay is being used?

I'm trying to cast music on TV through airplay using MPMusicPlayerController. How can I check if the airplay is being used by other inputs?
1
vote
3 answers

MPMusicPlayerController with AirPlay?

I am creating an audio app which uses iPod Music Player, I need Airplay functionality. I also used RoutePlayButton in MPVolumeView slider. I don't have apple TV to test if it will work or not. MPVolumeView *myVolumeView; [myVolumeView…
HDdeveloper
  • 4,396
  • 6
  • 40
  • 65
1
vote
1 answer

iPad 2 and 4 not mirroring/outputting video via HDMI to full screen

I am encountering an issue which I believe is caused, as a result of upgrading to iOS version 6 on my iPad2 and iPad4. I have searched the support boards but have not found a solution to this issue. The issue involves mirroring the iPad on a TV…
flex007
  • 143
  • 1
  • 4
  • 10
1
vote
1 answer

How to find available screens with AirPlay?

I am trying to detect when an AirPlay device is available on the network and if there is one, I'd like to display a list. For example, the app "Dailymotion" does exactly what I want : when I connect my iPhone to a network with an Apple TV, an…
MartinMoizard
  • 6,600
  • 12
  • 45
  • 75
1
vote
1 answer

When playing a movie through a UIWebView, and then outputting to AppleTV via Airplay, turning off iPhone screen stops playback. Why?

When playing a movie through a UIWebView, and then outputting to AppleTV via Airplay, turning off iPhone screen stops playback. Why? Anyone know how to solve this so AirPlay continues when the screen is off with my app?
Ethan Allen
  • 14,425
  • 24
  • 101
  • 194
1
vote
0 answers

iPhone html5 video avoid native fullscreen when using airplay on Safari

I know that allowsInlineMediaPlayback only works on iPad, but my goal is to play the video on AppleTV, while I am displaying some dynamic html content on Safari. I basically want to get rid of the airplay indicator screen or hide it somehow, or open…
Dinos
  • 11
  • 2
1
vote
2 answers

Airplay and MPMoviePlayerController (AVPlayer)

Having some quirky issues with Airplay. I am playing a video using MPMoviePlayerController with Airplay on (not mirroring). I want to pause the video and play a video commercial using AVPlayerLayer (AVPlayer). The AVPlayer successfully uses Airplay…
Vinnie
  • 1,670
  • 14
  • 16
1
vote
0 answers

How rendering is done in Airplay Mirroring?

I have a question regarding Apple's Airplay mirroring technology where one device hosts a game, and other devices can join that game. One of the new features of Airplay Mirroring is the ability to use your HD TV to show a split screen of the game…
user1258126
  • 301
  • 1
  • 13
1
vote
0 answers

Broadcasting uiimagePicker camera over airplay in landscape

I appreciate this is exotic but I have an app that uses an overlay for the uiimagePicker for directors and cinematographers. I understand that the uiimagePicker is only portrait and I have the overlay rotating fine to make the screen landscape. But…
Toby Evetts
  • 123
  • 1
  • 9
1
vote
1 answer

Get Playback Status on AppleTV via AirPlay GET /playback-status

I am currently trying to detect whether my AppleTV is currently running or not. As it seems to be always pingable I have taken a look at the AirPlay mechanisms behind the playback. It seems that the HTTP GET request /playback-status should give me…
Paul
  • 3,077
  • 2
  • 18
  • 20
1
vote
1 answer

AVPlayer audio volume over Airplay?

Does anyone know of a way to adjust an AVPlayer track's volume when it is playing over Airplay? I have tried AVAudioMix and MPVolumeView but neither of them work. I have tried on iOS 5 and iOS 6 and am using the latest xcode 4.5.1. A simple example…
amergin
  • 3,106
  • 32
  • 44
1
vote
0 answers

Send Images to devices via Airplay

I have an app that supports Airplay and It can send audio and video content to Airplay without any problem. I also have slideshow support in my app and I am trying to find how to send the photo information to the airplay selected device. That way…
rydgaze
  • 1,050
  • 13
  • 24