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

Getting a UIView Animation to play through airplay

I'm using UIView animation blocks to crate a slidshow of images. I'd like to allow users to play those animations through AirPlay. Would I somehow have to save a video file and play that or is there something more clever that could be done?
purplehey
  • 127
  • 1
  • 12
1
vote
0 answers

Hide subtitle track or audio track on the AirPlay device

I have a HLS manifest with multiple audio and multiple subtitle tracks. I use AVPlayer on iOS to play this HLS asset. On the iOS app I have the freedom to display selective subtitle and audio track list to the user but when the user uses AirPlay on…
1
vote
0 answers

How to handle SharePlay initiated via AirPlay Button

We recently implemented SharePlay in our broadcasting app and most of things work fine. We now found out, that the user, during a SharePlay session, is able to hand over the session to an Apple TV via the AirPlay Button, which is convenient UX,…
Kai Huppmann
  • 10,705
  • 6
  • 47
  • 78
1
vote
0 answers

Detect and stop Airplay on WKWebView that plays a video

What I have tried? UIScreen.screens.count > 1 Ans : Always getting one even though my app is currently Airplay(ing) on my Macbook Setting configuration of WKWebView mediaPlaybackAllowsAirPlay = false allowsAirPlayForMediaPlayback =…
Ankit Kumar Gupta
  • 3,994
  • 4
  • 31
  • 54
1
vote
0 answers

How to prevent iOS app to be suspended in the background during the call?

I am developing an iOS app that plays audio and video files using AVPlayer. The app needs to play media files also when the app is backgrounded. I successfully enabled background play by using Audio, AirPlay & background mode and configuring…
Marko Ilic
  • 11
  • 1
1
vote
1 answer

How to view subtitles vtt when AirPlay a mp4 file?

Target is view html subtitles in vtt format in TV when AirPlay is running. html code:
1
vote
0 answers

Trigger screen mirror from inside the app

Is there a way to trigger the "Screen Mirror" functionality from inside the app? I am doing conference via RTC and it would be super nice to be able to just airplay it the appleTV. Displaying the airplay control and selecting a target does nothing…
Markus
  • 599
  • 1
  • 5
  • 18
1
vote
0 answers

Enable FairPlay Streaming in Safari over AirPlay

Apple's documentation is unclear on how to enable FairPlay streaming via AirPlay on Safari. The FairPlay Streaming Programming Guide indicates that for an iOS app you need to enable it on the…
Scott
  • 33
  • 3
1
vote
1 answer

Does anyone know if it is possible to create an ipad app that can be an airplay receiver?

can anyone point to any ios library or developer documentation that would help me accomplish the following: I would like to build an app that can be the receiver of another ios device using airplay mirroring. Is this possible? allowed by apple?
user367919
  • 13
  • 3
1
vote
0 answers

AVRoutePicker is not outputting audio to Airplay device but does to phone speaker and headphones

I've created a simple audio player in swift 5 that implements a AVRoutePicker view. The routepicker is displayed without a problem, and I can change between headphones, phone speaker and phone call speakers. The problem I have is that once I select…
Greg
  • 476
  • 9
  • 23
1
vote
5 answers

Marmalade User Interface on Mac OS X

I realized that there is no Mac OS UI builder. Can you please tell the best way to create a user interface on Mac OS? Thanks.
Chippman
  • 51
  • 5
1
vote
0 answers

Calling the replaceCurrentItem(with:) method not working after an error occurs on AirPlay

My problem is quite complex, so I am going to describe it in detail below ;-) I am developing a playback app that makes use of HLS streaming. One of the requirements I have to meet is that my app should react to the HTTP response headers. As there…
jonasz88
  • 41
  • 2
1
vote
0 answers

Airplay and Microphone

Is it possible to stream audio instantly from the microphone in an iphone to an airplay device. I know this can be done with a delay but could it be done instantly with almost no delay. If so what are the classes I need to use in my app.
billy
  • 19
  • 3
1
vote
1 answer

How to Add an AirPlay button to an app in Swift 5

I want to implement an Airplay button that shows the Bluetooth, iPhone option like in the iPhone music app we click on Airplay. I did some of the code but I am facing some issues. As I implement, MPVolumeView works fine but unable to change the…
Yogesh Patel
  • 1,893
  • 1
  • 20
  • 55
1
vote
0 answers

AirPlay: Play Video on TV and audio on iPhone

In my app I have music playing, through Spotify Music or Apple Music, coach voice playing and a muted Video playing at the same time. Is it possible to play Video on TV and audio on iPhone or Video and Audio on TV ?
trokiize
  • 69
  • 2
  • 7