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

How to tell if AirPlay is mirroring?

I'm working on a video content app that has AirPlay capabilities. When it streams the video content over AirPlay (AVPlayer), the UI on the device would be a remote control for the player, but when AirPlay is set to mirror, it'll display the same…
Bruno Machado - vargero
  • 2,690
  • 5
  • 33
  • 52
1
vote
1 answer

Airplay and Use of Bluetooth LE accessories

My app is using airplay. Do i need to select "Uses Bluetooth LE accessories" option in info.plist. I submitted the app with checking this option and my app got rejected. Apple said that "Your app declares support for bluetooth-central in the…
Neha Gupta
  • 291
  • 2
  • 18
1
vote
1 answer

iOS Mirroring MPMoviePlayerController to TV with TV screen playback in fullscreen

I have an App with video (locally stored) playback using MPMoviePlayerController NSString *deviceDir = [[NSUserDefaults standardUserDefaults] stringForKey:WZLDEVICEPATH]; NSString *videopath = [deviceDir…
1
vote
0 answers

Is there an official Apple API for streaming from a Mac app to Apple TV?

I have been searching high and low, but have so far been ineffable. I am now turning for the stackoverflow community for advice. My goal is to build a Mac app in XCode, that will allow me to send MP4 content from my Mac (or from a public URL on the…
Emil
  • 432
  • 4
  • 11
1
vote
1 answer

iOS: How to play buffering audio in bluetooth headset in my music app?

I am currently doing one music app. in that i need to play buffering audio song in blue tooth headset. i searched for code past 1 day. but i can't. please give solution how to add this in my music app. One more thing i need to play that audio in…
raja
  • 39
  • 9
1
vote
1 answer

iOS Simulator doesn't recognize AirPlay even if External Display is added

Original Question I have a MPVolumeView added to a custom view as _airplayButton = [[MPVolumeView alloc] init]; [_airplayButton setShowsVolumeSlider:NO]; [self addSubview:_airplayButton]; I don't have a real device to test but when on iOS simulator…
Vig
  • 1,532
  • 1
  • 12
  • 28
1
vote
1 answer

Airplay AVPlayer stream on both external screen and device

Currently i am showing a stream using AVPlayer AVPlayer * player = [AVPlayer playerWithURL:url]; Activating airplay with MPVolumeView with hidden volume slider works fine, and stream is presented on external device. But I would like to show stream…
Dobroćudni Tapir
  • 3,082
  • 20
  • 37
1
vote
1 answer

Enabling AirPlay for IOS application

Hi I am developing IOS application in which I am showing HLS videos in my application. I want to enable Airplay option for my application. I tried it in following way : _moviePlayer = [[MPMoviePlayerController alloc] …
nilkash
  • 7,408
  • 32
  • 99
  • 176
1
vote
2 answers

Designing a library for Hardware-accelerated unsupported containers on iOS (and Airplay)

I'm trying to put together an open source library that allows iOS devices to play files with unsupported containers, as long as the track formats/codecs are supported. e.g.: a Matroska video (MKV) file with an H264 video track and an AAC audio…
awfulcode
  • 597
  • 5
  • 12
1
vote
1 answer

How to start 2 services at different ports using jmdns?

I need to start 2 services simultaneously (i.e airplay and airtunes) using jmdns. I'm able to start one service using jmdns but when I register 2 services simultaneously it gives me exception while sending data from IOS. Here is my code: void…
Adil Soomro
  • 37,609
  • 9
  • 103
  • 153
1
vote
1 answer

Set individual Airplay device volume using Applescript

I can tell iTunes to play a track to multiple Airplay speakers but I can't figure out how to set the volume for each device individually. I can control the overall iTunes volume but not each device separately. Dougs scripts mentions: So also:…
user189453
1
vote
0 answers

Stream audio from Raspberry Pi input to Airplay devices

Does anyone know if there is a way to stream audio from Raspberry Pi input to an Airplay enabled device such as an Apple TV ? To sum up I am seeking for an app like http://www.hersson.net/raopx , but that I could run on the Raspberry Pi. Thanks.
Catmembert
  • 25
  • 1
  • 3
1
vote
0 answers

Prevent AirPlay from sleeping

I have an app that uses AirPlay. I am using the iPad to present data on a TV. The user sets up the demo and then puts the device down and the app should take care of updating the TV even in the background state. The app is processing data in the…
datinc
  • 3,404
  • 3
  • 24
  • 33
1
vote
2 answers

Difference between airplay mirroring vs without mirroring

I am trying to do airplay with apple TV. I found out that when I just play video with avplayer without mirroring, I can still play with full screen. However, screen count is only 1 (which is for iPad). If I do mirroring, the screen count is 2 (one…
Khant Thu Linn
  • 5,905
  • 7
  • 52
  • 120
1
vote
1 answer

Apple TV and external monitor to show full screen

I am trying to display my uiview on monitor via passing through apple TV. When I just directly connect my iPad and monitor, I can display full screen on that monitor. It is because I can take maximum size like this. self.availableModes = [extScreen…
Khant Thu Linn
  • 5,905
  • 7
  • 52
  • 120