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

How to display overlay on Apple TV via AirPlay

I am developing an iOS app that displays a video, e.g., a football game, on Apple TV via AirPlay. I want to display additional information, e.g., player stats, on the big screen while the video is playing. I am aware of the Redfin approach, where…
2
votes
1 answer

How to make AVPlayer work with AirPlay without mirroring?

I am trying to get AVPlayer to play on an AppleTV using AirPlay. It seems simple and according to Apple docs it should be supported. Here's the code: AVPlayerItem *playerItem = [[AVPlayerItem alloc] initWithAsset:_composition]; playerItem.audioMix…
Artilheiro
  • 4,005
  • 10
  • 36
  • 34
2
votes
0 answers

AVPlayer volume is not adjusting while AirPlay

I am working on a custom audio player. I am using a UISlider to adjust volume.It is working fine when I play on iPad. But when I use AirPlay volume does not adjust. Here is my code to adjust volume. UISlider* slide = sender; NSArray *audioTracks…
2
votes
0 answers

AVAudioRecorder, AirPlay and AudioQueues

According to numerous postings here and elsewhere, it is not possible to record audio using the PlayAndRecord category while doing playback through airplay (from the same or another app). However, this posting suggests it should be doable using…
2
votes
1 answer

Queue multiple AirPlay inputs to a speaker with iOS App

I need to get signals from airplay enabled speakers or Apple TV regarding already it is playing and when the song finishes. I need to queue the multiple input signals to the speaker and also needs to play one by one according to priority. Any…
Jobin Jose
  • 288
  • 2
  • 13
2
votes
2 answers

Is it possible to force AVPlayer stop playing video externally (on Apple TV)

I have iOS application that plays video through HTTP via AVPlayer. I have MPVolumeView that allows to select airplay device to stream current playback to. But now I need to have ability to programmatically stop video streaming, and continue playback…
Alexander Tkachenko
  • 3,221
  • 1
  • 33
  • 47
2
votes
0 answers

Detecting if audio is playing on Apple TV

In my app I can enable and disable airplay using the MPVolumeView method. How can I detect if the audio of my app is playing through the Apple TV or through the iPhone so I can change the color of the airplay button? To make the airplay actionSheet…
maxned
  • 393
  • 2
  • 16
2
votes
2 answers

App for jailbroken iOS device: Consistent background operation

I am the author of a Cydia tweak called AirFloat. An app that implements the AirPlay audio protocol (previously known as AirTunes), making it possible to stream audio to your iOS device. AirFloat is originally an App Store app, until it got booted…
Trenskow
  • 3,783
  • 1
  • 29
  • 35
2
votes
1 answer

AVAudioRecorder and AirPlay Mirrioring

When I have an AVAudioRecorder Session active - (when I'm recording audio) I can't activate AirPlay mirroring on the device. Airplay mirroring just deactivates while the app is running and switches it back on when the app exits. This post seems to…
glenstorey
  • 5,134
  • 5
  • 39
  • 71
2
votes
0 answers

How can I maintain an Airplay connection?

I'm working on a Mac Mini home automation server that I'm trying to get to send text-to-speech messages to an Airport Express connected Airplay speaker. My problem is that I can't get it to maintain its connection to the Airplay speaker. I've tried…
user217562
  • 1,557
  • 2
  • 13
  • 22
2
votes
1 answer

AirPlay flickering when switching between movies

I have an app that shows list of movies in a table view. When I play them one after another on device it works just great. But when I switch to Apple TV over AirPlay it doesn't work anymore. It play's the first video on ATV ok but after a switch to…
Borut Tomazin
  • 8,041
  • 11
  • 78
  • 91
2
votes
1 answer

Turn iOS Device into AirPlay Speaker

I'm fiddling with an app, and I'm also aware that apps made by developers that allow an iOS Device to receive an audio stream from another iOS Device or iTunes. So I'd like to implement it and possibly find a method within Apple's guidelines,…
2
votes
2 answers

How to enable mirroring option in airplay picker

I added airplay picker functionality in app. Airplay picker shows only two option iphone and Apple TV doesn't shows Mirroring option. How can i show Mirroring option in the airplay picker so that app itself can be seen on Apple TV. Please…
user1452248
  • 767
  • 2
  • 11
  • 28
2
votes
1 answer

Adding MPVolumeview programmatically in app

Trying to add MPVolumeView programmtically in app by using the following code MPVolumeView *_volumeView = [ [MPVolumeView alloc] init]; [_volumeView setShowsVolumeSlider:YES]; [_volumeView setShowsRouteButton:YES]; [_volumeView sizeToFit]; [view…
user1452248
  • 767
  • 2
  • 11
  • 28
2
votes
1 answer

Third person view camera with marmalade SDK

Help me please to get camera following target point. I can't do it for 2 days already for the new prototype project in my company. Currently i have: void Camera::followTargetPoint(CIwVec3 target, int32 distance, int32 height) { CIwVec3…