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

html5 video over airplay not showing airplay icon in controls

According to Apple you should be able to stream normal html5 video over airplay https://developer.apple.com/library/ios/releasenotes/General/WhatsNewInSafari/Articles/Safari_9.html#//apple_ref/doc/uid/TP40014305-CH9-SW5 When I try to use this from…
Jason
  • 931
  • 2
  • 12
  • 26
3
votes
3 answers

Volume Slider in swift

I am trying to create a slider that controls volume of 4 audio files. Here is my code for the audio: var ButtonAudioURL = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("audio1", ofType: "mp3")!) var firstplayer =…
foxcowz
  • 109
  • 1
  • 2
  • 4
3
votes
0 answers

AVPlayer not finishing when streaming via AirPlay

I am observing the following Notification to know when my HLS stream in AVPlayer has been played until the end: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didPlayToEnd:) …
Micky
  • 5,578
  • 7
  • 31
  • 55
3
votes
0 answers

Programmatically deselecting an MPVolumeView route

I'm working on an app that displays 10 second preview videos to airplay enabled devices via MPMoviePlayerViewController. The user selects an airplay enabled device through the system action sheet provided by MPVolumeView, and then we start the…
maxhs
  • 868
  • 2
  • 10
  • 14
3
votes
1 answer

about Airplay Mirroring... things after fp-setup

My project is to grab decrypted Airplay Mirrorred h.264 screen data from my Android device. Since I know nothing about AES-like things... So I skipped that step with hard coded data, omnipeek'ed from, between My iPad and AppleTV. Started with the…
BReNTT
  • 31
  • 1
  • 3
3
votes
0 answers

Remove QuickTime logo while AirPlay

In my iOS app, I use MPMoviePlayerController for video playback. When I enable AirPlay, there is a QuickTime logo, which I would like to remove, superimposes on the AirPlay background. It only happens with my app on iOS 7.0.4. On iOS versions prior…
Thanh Pham
  • 2,021
  • 21
  • 30
3
votes
0 answers

Errors with AirPlay on embedded iframe YouTube videos in UIWebView

I'm working on an app that allows users to play videos from YouTube inside a UIWebView. The videos play fine on the device, but I'm having issues when attempting to AirPlay CERTAIN videos from my UIWebView. Basically, there are some videos that…
3
votes
2 answers

Implement Airplay Software Receiver in Android OS

Can we develop any app in Android which will play a role of Airplay Receiver? Following provides support for MAC and Windows desktop version now. http://www.airsquirrels.com/reflector/ I found a similar question with no reply. How can I make…
Kanak Sony
  • 1,570
  • 1
  • 21
  • 37
3
votes
1 answer

Streaming audio from headless Ubuntu 12.04 Server to Airplay Speakers (Marantz Amp)

I would like to stream mp3 audio playing locally on my headless ubuntu server to my local Marantz Amp (SR5006) using Airplay. I am running Ubuntu 12.04. I've investigated Shairplay, Pulse Audio - but they either require a GUI or only act as a…
Jay
  • 31
  • 1
  • 4
3
votes
1 answer

Is there an API for retrieving the Apple TV's version?

I just fired up the new Netflix app for iOS and upon trying to AirPlay the video to my Apple TV, I got this message: So I was wondering how they're able to do this. Is there a public API that lets an app retrieve the version of the Apple TV that's…
yydl
  • 24,284
  • 16
  • 65
  • 104
3
votes
1 answer

Airplay with AVQueuePlayer has gaps

My app uses AVQueuePlayer to show video clips back to back. In testing on my AppleTV, it seems that when I switch to the next video in the queue, there is a small time gap where the Apple TV 'takes over' the screen and the home screen of the Apple…
Ish
  • 1,855
  • 5
  • 24
  • 32
3
votes
0 answers

Sending audio to multiple AirPlay speakers from terminal

I want to be able to select all AirPlay outputs for audio, and send all system audio through all of the AirPlay speakers, like how iTunes can send to multiple speakers. I know there are GUI utilities like Airfoil that can send audio to multiple…
3
votes
0 answers

AirPlay streaming to HTML video player

First let me begin that I understand this protocol is mostly closed-source and Apple proprietary. Legal ramifications aside, I'd still like some help. Title: AirPlay streaming to HTML video player. What I'd like to do is stream an AirPlay MOV file…
Levi Roberts
  • 1,277
  • 3
  • 22
  • 44
3
votes
1 answer

How to let a video, that is streamed via AirPlay not pause, when the screen is locked?

I use both, a MPMoviePlayerViewController and a MPMoviePlayerController to play back videos in my app. I also allow the use of AirPlay to stream these videos on to an Apple TV. This all works fine. The only problem is, that the streamed video…
3
votes
3 answers

Airplay in android device

I want to build an android application in which the android device work as airplay server (receiver) and iOS device as a client(sender). I have followed this link . But here you have to first register to the port to appear as a airplay option on iOS…
V-Xtreme
  • 7,230
  • 9
  • 39
  • 79