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

Open Airplay popover in my custom button

I'm wondering is it possible to create a custom airplay button and add it to a toolbar? i.e. I would like to create button that open the same popover that original AirPlay button, to share all the screen. I saw that it is possible to do with…
Max
  • 319
  • 2
  • 9
0
votes
2 answers

Airplay using AVPlayer does not always work. 'iPhone' option listed twice in the Airplay menu

NSError *sessionError = nil; [[AVAudioSession sharedInstance] setDelegate:self]; [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:&sessionError]; [[AVAudioSession sharedInstance] setActive:YES error:nil]; //Direct…
avikbagh
  • 43
  • 1
  • 7
0
votes
1 answer

airplay button for UIImages

Airplay button is showing on the UIToolbar but when clicking it nothing is happening. It should open up airplay picker. but it is not. UIButton *volumeView = [UIButton buttonWithType:UIButtonTypeCustom]; [volumeView addTarget:self…
user1452248
  • 767
  • 2
  • 11
  • 28
0
votes
1 answer

Live video streaming using Airplay iphone sdk

I want to stream live video using airplay.To apple device.I searched on net cant find any helpful sample for that.Can any one have idea for it, please share it. Thanks
mychar
  • 1,031
  • 1
  • 11
  • 20
0
votes
1 answer

iOS Second Display

I do not get the Second Display to Show any other then Mirroring my Device Screen. I allways see only the mirrored device screen on my tv. This is My Code i hope someone can help me. - (BOOL)application:(UIApplication *)application…
0
votes
1 answer

iOS - Showing airplay button for my game app

I'm creating iPhone app for kids which they can play with alphabets and numbers. I want to providing the option for airplay so that playing on bigger screen will be more fun. I'm using the following code to show the airplay button: MPVolumeView…
Satyam
  • 15,493
  • 31
  • 131
  • 244
0
votes
2 answers

How can I integrate AirPlay in my app?

I made an app which provides you to listen to a streamed radio. I don't know how it's possible to integrate AirPlay in my app? This is the code to let it play: -(IBAction)play { if(clicked == 0) { clicked = 1; …
Thiebout
  • 171
  • 3
  • 15
0
votes
0 answers

Enabling Airplay in iOS5 application

I have created a simple application to read video files and it is opened using quicklook framwork. Now i want to integrate airplay support for users to view in apple TV. So do i have to do something for it in quick look or it is built in? Thanks in…
user869123
  • 257
  • 4
  • 15
0
votes
1 answer

How to setup view hierarchy for iPad application with Widescreen 16:9 airplay output

I want to create an iPad app that besides the normal ipad screen (4:3) uses a second UIScreen containing a UIWindow in 16:9 widescreen format if a second screen is attached. I use AppleTV for the connection. I do not just want to mirror the ipad…
Etienne678
  • 444
  • 4
  • 12
0
votes
1 answer

Loading a sound track from the middle of sound file

When users try to watch a clip on youtube, on the player, they can choose to watch it from middle of clip or the begining or from nearly the end or from any point they like. in other words they should not watch the clip from the begining to the end…
M.Yazdian
  • 67
  • 4
  • 11
0
votes
1 answer

iPad application - Mirroring the app in airplay

I've a kids application which is rich in graphics. It don't have any videos in it. Only background audio will be there It has some activities like counting numbers, reading alphabets etc. Can I mirror the application in apple tv using airplay so…
Satyam
  • 15,493
  • 31
  • 131
  • 244
0
votes
0 answers

Airplay resuming issue

I am working on Airplay. I have problem with the Apple TV, whenever the playback initiates on Apple TV, every time for few seconds it will show the first few frames of the movie and then movie plays at resume point. Can it play directly at resume…
Paddy
  • 766
  • 5
  • 16
-1
votes
1 answer

Is it possible to use an Airplay display (like a TV) from javascript in an HTML5 app on iOS

I would like to create an HTML5 app in javascript that will run in Safari on an iOS device but be able to use Airplay as a second screen or expanded screen (not mirrored). The idea would be to have one UI on the device and a separate UI on the…
jpcoder
  • 1,125
  • 2
  • 9
  • 15
-1
votes
1 answer

How to set the current audio device to airplay speaker in Apple Script?

How do I programmatically switch the current output device between built-in speakers on my MacBook Pro and a HomePod Mini (via Airplay) in AppleScript?
Marceli Wac
  • 375
  • 3
  • 13
-1
votes
1 answer

Airplay Remote control HTTP request

I use Airplay with a Raspberry Pi, so I installed Sharply-sync. It work perfectly but I want to control the music of my iPhone which is emitting music with airplay. I saw this page to do this:…
A.Moret
  • 43
  • 3
1 2 3
30
31