airplay

AVAudioRecorder and AirPlay Mirrioring

别等时光非礼了梦想. 提交于 2020-01-04 08:06:07
问题 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 suggest there is no way around this. My thoughts are to try: using a lower level recording framework or outputting a separate window to external display, rather than mirroring (I've tried this, it doesn't work). Is there another way around this, or

How to find the IP-address of the active AirPlay device?

喜夏-厌秋 提交于 2020-01-02 04:24:16
问题 I am wondering if it´s possible to get the IP address of the airplay device my iOS app is currently using. Either that, or the IP-addresses of all airplay capable devices on the network. Thank you in advance! EDIT: Although I now have an accepted answer, I´m interested in knowing how to get the IP of the currently playing airplay device. 回答1: What you have to use is NSNetServiceBrowser to do a search of the devices with the protocol. I have did the same with printers, my code looks like:

UIViewController displayed sideways on AirPlay screen when launched from landscape iPad

寵の児 提交于 2020-01-01 06:08:06
问题 I'm attempting to display a full screen, 16:9, UIViewController on an external display using AirPlay. The goal here is to replace AirPlay mirroring with a custom view controller that will span the full size of the external screen. Everything seems to work great when the screen connects while the iPad is in portrait mode. When it connects in landscape, the UIViewController shows up sideways on the external display and only fills half the screen. In order to this I'm adding my UIViewController

UIViewController displayed sideways on AirPlay screen when launched from landscape iPad

风流意气都作罢 提交于 2020-01-01 06:07:37
问题 I'm attempting to display a full screen, 16:9, UIViewController on an external display using AirPlay. The goal here is to replace AirPlay mirroring with a custom view controller that will span the full size of the external screen. Everything seems to work great when the screen connects while the iPad is in portrait mode. When it connects in landscape, the UIViewController shows up sideways on the external display and only fills half the screen. In order to this I'm adding my UIViewController

Airplay of audio using AVPlayer does not work in the background

◇◆丶佛笑我妖孽 提交于 2020-01-01 05:41:07
问题 I am doing audio playback using the AVPlayer class from a remote URL. It plays fine if I just play to the headphones/built in speaker, but I am seeing some oddities with AirPlay. When I change to use an AppleTV for AirPlay, it will stream the audio, but on my iphone the audio playback indicator (the small 'play' triangle in the top menu bar) disappears, and when I lock the phone instead of continuing in the background, it stops. (When playing normally, it plays in the background fine). Why is

Disable AirPlay with MPMoviePlayerController

此生再无相见时 提交于 2019-12-30 08:13:34
问题 I have an instance of a MPMoviePlayerController which is being used to display some live streaming video on an iPhone app. This is working fine, however I wish to remove all AirPlay functionality. To be sure, I specifically disable AirPlay like so: if([self.moviePlayerController respondsToSelector:@selector(setAllowsAirPlay:)]) { self.moviePlayerController.allowsAirPlay = NO; } However, even with this code, I still see the AirPlay icon on the video controls. If I select this, and select my

iPad AirPlay and Mirroring SDK Support

江枫思渺然 提交于 2019-12-24 15:21:36
问题 Not sure if I have seen it the docs, but I don't see anything relating to enabling AirPlay Mirroring from within an iOS app. Has anyone done this before? or is this something done only outside of the App. Also with AirPlay, since it only supports Audio/Video, would we have to convert to PDF documents into Images for AirPlay? Thanks. 回答1: Regarding your first question (you should really create two issues for this), I've answered over here: Airplay from iPad - a separate UIView to display on

AirPlay Meta Data on Apple TV from App (AVPlayer - MPVolumeView)

落爺英雄遲暮 提交于 2019-12-23 19:04:06
问题 I have my app successfully streaming an MP3 via AVPlayer. I implemented a MPVolumeView to pull in AirPlay support which works great but I notice that the title info on my apple tv, does not show anything from the streamed MP3 but rather just "Unknown" info. Is there anyway to control this info from the app or is this an issue caused by the MP3 being streamed? Any help would be much appreciated!! 回答1: I wanted to update this question in case someone else needed to control what is seen on their

How to use iOS 5+ AirPlay for a second screen

不羁岁月 提交于 2019-12-22 13:55:11
问题 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 4D199. I wrote a simple UIView app that attempts to draw on a second screen when available. Here's what I have in my viewDidLoad: - (void)viewDidLoad { [super viewDidLoad]; [self.view addSubview:[[MPVolumeView alloc] initWithFrame:CGRectMake(0, 0, 320,

How can I make Android apps that work with Apple Airplay?

百般思念 提交于 2019-12-22 05:18:19
问题 I've read an article about Apple Airplay, and I've searched some apps like Air bubble, but still I have some questions: Is it OK to make Airplay apps for non-iOS? Is there a license problem? Does Apple's MFI program (or developer license) cover Android/Windows OS? Is there some Airplay SDK for Android? If not, what should I study to make Airplay receiver/sender application? 来源: https://stackoverflow.com/questions/13472238/how-can-i-make-android-apps-that-work-with-apple-airplay