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

Unable to select device to Airplay to when using Selenium on Safari

Currently I am trying to automate casting to an Airplay device on Safari using Selenium and Robot Framework. I'm having an issue with being able to select an Airplay device after the Airplay button has been received. The small menu that appears…
0
votes
0 answers

AirPlay Receiver documentation

I am trying to find resources about Airplay for Windows, to be exact Windows Host acting as a receiver. There are multiple applications out there. Just to name some: reflector 3, AirServer. I am wondering which language this is and on what reference…
0x45
  • 779
  • 3
  • 7
  • 26
0
votes
2 answers

C++ Build warning in GCC ARM but not MS x86

I use the Airplay SDK which is a platform for building C++ apps for smartphones. It also has a x86 simulator which uses MS Visual C++ IDE + compiler. Now, I have this class : namespace Fair { class Bitmap : public Sprite { public: …
Bill Kotsias
  • 3,258
  • 6
  • 33
  • 60
0
votes
1 answer

Can I enable my App for AirPlay?

If I create my own custom Application for iOS (XCode/Objective-C), can I make it support AirPlay and beam scren content of my choice to an Apple TV? What APIs/Function Calls am I looking for?
Michael Stum
  • 177,530
  • 117
  • 400
  • 535
0
votes
1 answer

Adding AirPlay To AVAudioPlayer (Swift)

I'm making a music app with an AVAudioPlayer. I would like the user to be able to open the AirPlay picker view... ...by tapping a UIBarButtonItem in a UIToolBar to stream the music playing from my app. How would I do this?
Jacob Cavin
  • 2,169
  • 3
  • 19
  • 47
0
votes
0 answers

Can javascript detect and disable screen-mirroring on browsers in iOS/Android?

I have some video content which I cant allow playback on larger screen. So I have disabled airplay (by setting x-webkit-airplay="deny" on
codneto
  • 2,319
  • 3
  • 24
  • 36
0
votes
0 answers

Ios 11.0.3 -Music app - Airplay selection popup

I am not able to find page source or popup handling of Music App using Appium for ios 11.0.3 steps to reproduce Open music app Select song Click on Select airplay device Challenge: I am not able capture page source of element of…
0
votes
1 answer

AirPlay icon is disappearing on when user disconnect the external playback

I am using airplay icon and volume slider in app. Once user connect the airplay video is casting to the appleTV and volume slider is getting hide(as expected).Now navigate back to previous page and again come to player page to play video when…
0
votes
0 answers

Playing Mpeg-Dash streams in Apple Tv when casting from iOS using Airplay

I have a applications which uses the DRM services like I play MS3 Url which is basically a locked URL(Mpeg-Dash). I am able to mirror the videos to Apple TV using the Airplay however if the app goes to background, it fails to hold the streaming and…
Saty
  • 2,563
  • 3
  • 37
  • 88
0
votes
3 answers

Since tvOS 10.2 the Apple TV displays a Airplay connection requires iOS 7.1 or later error

I have an Android app that can use AirPlay to play videos. Since my Apple TV 4 updated to tvOS 10.2 it has stopped working. I tried several other apps on Android and they all get the same error. Does anyone know how to get around this…
casolorz
  • 8,486
  • 19
  • 93
  • 200
0
votes
1 answer

AVPlayer / Airplay Button

How do I show a button on an AVPlayer layer allowing a user to opt into AirPlay? In the old days, I would simply add an MPVolumeView as a subview, and this would show an airplay button that a user could use to toggle. Now, it seems like a volume…
StevenOjo
  • 2,498
  • 1
  • 16
  • 21
0
votes
1 answer

Does Audio Units support airplay?

I want to play music when airplay mirroring is connected, but is seems impossible to do that, when airplay mirroring is connected I can't force audio out to speaker, because airplay mirroring will disconnected when I do that. I want to know whether…
0
votes
2 answers

Get Audio Amplitude from ALSA Raspberry Pi

Im having an Airplay setup on my RasPi2 so i can play Music over wifi to my Raspberry Pi which is plugged in to my speakers (The software is called "shairplay"). Now i want to control some LED strips in sync with the audio amplitude that is…
Bauer Marius
  • 170
  • 1
  • 12
0
votes
1 answer

Disable iOS/Android screen mirroring

Is there any way in iOS and Android I can detect if my app is being mirrored (via Miracast/AirPlay/Samsung Smart View), and/or disable mirroring?
user1118764
  • 9,255
  • 18
  • 61
  • 113
0
votes
2 answers

m3u8 streaming not working on apple tv (airplay)

i am using AVPlayer for my m3u8 streaming that is working perfectly on iphone and ipad devices but when i try to play that streaming on Apple Tv via Airplay its not working i setup AVPlayer for AppleTv Like this: NSURL *url = [NSURL…
Ali Raza
  • 1,183
  • 1
  • 10
  • 15