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
0 answers

How to use PlayAndRecord session with ability to switch output to Speaker

I'm writing and iOS audio/video chat app with several pre-conditions: I'm using PlayAndRecord category to establish a audio/video chat. I have also a button to which allows user to switch to the phone speaker whenever he wants. I'm using AirPlay to…
Mando
  • 11,414
  • 17
  • 86
  • 167
2
votes
0 answers

Re-enable mirroring on iOS

In my iOS app I need to display custom content on external display (using AirPlay) as well as mirroring some screens on TV. For presenting custom content I use code from Multiple Display Programming Guide for iOS and it works well: while my iPad is…
art-o-nawa
  • 329
  • 1
  • 12
2
votes
0 answers

How do I enable Airplay for youtube videos in a webview?

I'm using the youtube helper view, and I modified the webview so that mediaPlaybackAllowsAirPlay=YES When I tap the airplay button on the player, I get this. In the youtube app I have choices for Apple TV or iPhone. Am I doing something wrong? Is…
blueether
  • 3,666
  • 4
  • 26
  • 32
2
votes
0 answers

MPVolumeView iPad popover direction

I’m using an MPVolumeView to pop up available AirPlay devices, and the AirPlay button happens to be in the far lower-right corner of my UI. When I tap it, the AirPlay popover that appears is really, really short (like enough for the title and one…
Luke
  • 9,512
  • 15
  • 82
  • 146
2
votes
0 answers

Stream media to Airplay (AppleTv) from Cordova Android App

I am currently developing an Android app using the Cordova 3.5 framework. The app allows users to watch a few videos, and I would like to be able to stream those videos from the Android app to an Apple TV or any Airplay-compatible client. Is it…
falciola
  • 21
  • 2
2
votes
0 answers

Detecting airplay mirroring enabled in IOS App

Is it possible for my IOS app to determine whether the airplay mirroring in enabled?
2
votes
0 answers

How to play audio/video using AirPlay in cocoa app

I am working on a cocoa app where i play some audio and video using url. I have used QTMovieview for playing Audio/Video. Now what is my requirement is to play audio/video on another device like AppleTv/Another Mac by using airplay functionality. I…
Surjeet Singh
  • 11,691
  • 2
  • 37
  • 54
2
votes
1 answer

Not able to push a custom view to external display using airplay (Apple TV)

Trying to show a custom screen on an external display connected to apple tv using airplay. We are also trying to stream audio via AppleTV after the pairing. (Audio is optional here, it's good to have but not required). The problem is, if we do audio…
user845730
  • 93
  • 1
  • 1
  • 6
2
votes
0 answers

How to refresh airplay avalilable list by private api?

I'm using iOS private api "MPAVRoutingController" to get avalilable airplay device list,like this: MPAVRoutingController avCtrl = [[MPAVRoutingController alloc]init]; // get avalilable routes NSArray *routes = avCtrl.availableRoutes; But until I…
2
votes
1 answer

Airplay mirroring in iOS apps

I have looked several links and read the Apple Documentation but I don't get any step-wise instructions to mirror the content of app on an external device. All they explain is how to display a new window for an external screen if recognized. In my…
AJS
  • 1,403
  • 12
  • 17
2
votes
1 answer

List & connect to airplay devices without MPVolumeView

I would like to be able to show a list of all supported devices (airplay, chromecast, roku, etc) in the same list. Regarding airplay the only option I have seen is to use MPVolumeView which itself builds a list of devices and handles the…
Jason Palmer
  • 731
  • 4
  • 17
2
votes
1 answer

iOS - Apple TV - Detect show on Apple TV programmatically

How can i detect showing on Apple TV? I've tried already to detect num of screens: [[UIScreen screens] count] But it remains on 1. I've tried also to listen to an event: [[NSNotificationCenter defaultCenter] addObserver:self …
gran33
  • 12,421
  • 9
  • 48
  • 76
2
votes
0 answers

jmdns Airplay - Service is not discovered

I am working on this for months now, but my iPhone refuses to discover my Java (or Android) Applications. I found a receiver app for Android (AirPin) which works and I use it for comparing it with my code. I am working with latest jmdns source build…
paulgavrikov
  • 1,883
  • 3
  • 29
  • 51
2
votes
1 answer

AirPlay with multiple instances of AVPlayer

In my app, I have multiple tabs and on each tab I have an instance of AVPlayer. When I activate AirPlay, however, "the first player wins". That means that the player on the currently active tab connects to AirPlay and when I switch to a different…
Johannes Fahrenkrug
  • 42,912
  • 19
  • 126
  • 165
2
votes
0 answers

Android: How to integrate AppleTV/Airplay for streaming with MediaPlayer

I have an application for android which is streaming music over the internet. Now I was thinking about integrate streaming with AppleTV and Airplay (and maybe via Bluetooh). But if I search in google (guess my search skills suck nowadays), I only…
longi
  • 11,104
  • 10
  • 55
  • 89