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
2 answers

Throttling UISlider scrubbing in AVPlayerDemo when using AirPlay

After setting mPlayer.usesExternalPlaybackWhileExternalScreenIsActive to YES in AVPlayerDemoPlaybackViewController of Apple's AVPlayerDemo sample project, how do you throttle the scrubbing so it doesn't lag behind on the AppleTV? What I mean is that…
Luke
  • 13,678
  • 7
  • 45
  • 79
3
votes
1 answer

ActionScript AirPlay server with Adobe Air

Is it feasible to use ActionScript 3 to create a cross-platform server running as an Adobe AIR application that can play audio through AirPlay-enabled devices? I want to write an AIR application to run on PC, Mac and mobile devices that will allow…
Buzzwig
  • 460
  • 4
  • 10
3
votes
1 answer

What is the code to call the actionsheet AirPlay directly?

I want to know code to call the actionsheet AirPlay directly. I want to achieve in the code for "AirPlay button pressed". In other words, I would like to call the "action sheet AirPlay" from anywhere. Thanks.
Adolfoi_
  • 43
  • 1
  • 6
3
votes
1 answer

Want to stream my application view on Apple TV using AirPlay Apl in ios sdk?

I want to stream my application on APPLE TV using AirPlay API.? How to use that? Can it work through iPhone and iPad both? If yesy please share some doc regarding or demo for the same
Nishi
  • 683
  • 1
  • 12
  • 31
3
votes
2 answers

How do I stop AirPlay audio with AVPlayer?

I'm working on an iOS app that, for reasons we won't get into here, wants to sometimes disable AirPlay playback on a remote device, and only play video locally on the iOS device, regardless of the user's settings. I'm using AVPlayer to play the…
apontious
  • 31
  • 3
3
votes
2 answers

Airplay with photos

I looked up the official documents for airplay, found the airplay can only support audio and video. But beside that, the native photos app can airplay photos. So is there any methods to airplay photos? BTW, I know the "mirroring" mode can do this…
Hang
  • 469
  • 1
  • 4
  • 18
3
votes
5 answers

iPad/iPhone Screen Mirror

I'm trying to figure out a way to mirror an iPad screen to other iPads. This doesn't seem to be supported on the platform though. Basically, a teacher would have an iPad, then the students would have iPads and see everything that is happening on the…
spentak
  • 4,627
  • 15
  • 62
  • 90
3
votes
1 answer

Setting allows airplay to no still sends sound over airplay

I am working with a media player, some media does not have the right to be played over Airplay, don't ask why :). So when I get that media, I set movieplayerController.allowsAirplay = NO; If you were playing with airplay before, it is then on by…
Trausti Thor
  • 3,722
  • 31
  • 41
3
votes
0 answers

Integrating AirPlay with default Android media player to stream protected movie

I have developed an Android application which playbacks WideVine protected movies using default Android MediaPlayer. Now there is a requirement to integrate AirPlay into the application so that user can watch videos on AppleTV. I have searched a lot…
Farooq Zaman
  • 495
  • 1
  • 6
  • 21
3
votes
1 answer

Send UITableview to airplay from iPod touch 4th gen (IOS 5.0)

I would like to ask whether is feasible to send a custom UIView (no photos / video etc) to an apple tv through airplay as a second screen from an iPod touch 4th gen running ios 5.0. Is it possible? Do I need iPad 2+ for this purpose? Thanks in…
vassilag
  • 450
  • 8
  • 18
2
votes
1 answer

iOS 5 AirPlay screen not drawing correctly in landscape

I have a simple app that is targeting iPad and iOS 5+ only. The app is landscape-only. Now, I want to take advantage of AirPlay mirroring on the iPad 2. I have followed all of Apple's examples/documentation I can find and can't get past this drawing…
Chandler Kent
  • 363
  • 2
  • 8
2
votes
1 answer

How to use iOS 5+ AirPlay for a second screen

I'm toying with AirPlay using an iPhone 4S and I'm having some trouble. I've updated my Apple TV 2 to the latest (4.4.3 I think? I forget, it's in the other room and I'm too lazy to check) and I have iOS 5.0 on my 4S while I use Xcode 4.2 Build…
Cliff
  • 10,586
  • 7
  • 61
  • 102
2
votes
0 answers

Rotating UIPanGestureRecognizer?

Have an app here where I have a UIScrollView being displayed on the TV using AirPlay, and I'm taking its UIPanGestureRecognizer (scroll gesture) and adding it to my own custom view on the iPad. Works wonderfully, and I can scroll the UIScrollView on…
2
votes
1 answer

Does iOS provide AirPlay-related HTML5 video events?

Is there an event that fires when AirPlay toggles between say an AppleTV to an iPad and vice versa?
2
votes
1 answer

Airplay not working as expected, black screen on my TV

I have added airplay button to my web app following: https://developer.apple.com/documentation/webkitjs/adding_an_airplay_button_to_your_safari_media_controls On Safari from Mac when I click on the airplay button, I get the menu and select the TV.…
A.Blanc
  • 403
  • 1
  • 6
  • 15