airplay

What is the code to call the actionsheet AirPlay directly?

老子叫甜甜 提交于 2019-12-06 09:06:14
问题 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. 回答1: - (void)showAirPlay { MPVolumeView *volumeView = [[MPVolumeView alloc] initWithFrame:CGRectZero]; [self.view addSubview:volumeView]; for (UIButton *button in volumeView.subviews) { if ([button isKindOfClass:[UIButton class]]) { [button sendActionsForControlEvents

iPad Mirroring using 2 screens, does it support 1080 resolution?

£可爱£侵袭症+ 提交于 2019-12-06 03:45:26
2.5 years of mac and iOS development and i haven't found an answer to something. I'm working on a project utilizing iOS 5.0 and apple TV's airplay to display one UIScreen on the iPad and a separate one on my Apple TV. I have 2 separate view controllers and they display fine on each respectively. The issue is that the apple tv screen size returns at 720p not 1080p. So i get a bordered view controller at 1280 X 720 displayed and not a full screen representation of 1920 x 1080. The effect is my view controller is cropped not scaled. I tried the naughty things like changing screen bounds of the

iOS - How can I display an 'AirPlay' popup menu in Swift?

旧城冷巷雨未停 提交于 2019-12-06 02:36:44
问题 How can I display an AirPlay popup menu in my Swift project? (Many applications like Spotify can display one like below): 回答1: After all it seems there is no easy and straightforward way to make a custom button display the system's Airplay menu. However, @totiG pointer me to an interesting resource and I created a script that creates the standard Volume Control outside of the visible area of the screen a simulates a click on the Airplay button: func showAirplay() { let rect = CGRect(x: -100,

AirPlay Mirroring iPhone to Mac OS / using UIWebView + AirPlay

江枫思渺然 提交于 2019-12-05 18:05:48
I need to live-demo a Mobile Safari browser app (iOS 5, iPhone 4S) on my Macbook and was wondering the best way to do this? One way I thought might be possible would be using AirPlay Mirroring, but there doesn't seem to be any Mac OS apps capable of showing my iPhone screen mirrored. I am an (beginner) iOS developer and wondered if there was anyway I could knock up a basic app with a UIWebView in it to somehow stream the contents of the web page and my interactions with it to my Mac. Any thoughts? EDIT : Yes I know I could use the iPhone Simulator, but I need to interact with it on the handset

iOS: Airplay picker MPVolumeView alternative

拈花ヽ惹草 提交于 2019-12-05 12:19:22
I'm using MPVolumeView to pick airplay device for avplayer airplay playback. Is there any possible non-private API alternative for doing this, so I would be able to provide my own UI Controls for picking airplay device? By referring to the API, I mean, that all I need is: Ability to reroute audio to airplay-device specific audioRoute. Retrive airplay-device names. (get all available audioRoutes, then get descriptions for airplay audioRoutes) I know AudioToolbox framework provides some additional API to deal AudioSession, but the only way I found to reroute audio is AVAudioSession's: - (BOOL

How to support airplay in the background in iOS6

霸气de小男生 提交于 2019-12-05 10:43:55
My app should stream video's to an AppleTV via Airplay, even when the app is in the background. Under iOS5 it worked perfectly. In iOS6 it does not. Xcode gives me a deprecated warning on this line of code: moviePlayerViewController.moviePlayer.useApplicationAudioSession = NO; Is this the reason why my app isn't functioning correctly anymore. What is the equivalent of this piece of code in iOS6? Found the solution: this problem can be solved by setting the right AVAudioSessionCategory NSError *setCategoryError = nil; [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback

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

匆匆过客 提交于 2019-12-05 07:32:05
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. 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: _netServiceBrowser= [[NSNetServiceBrowser alloc] init]; _netServiceBrowser.delegate= self; [_netServiceBrowser

iOS Mirroring MPMoviePlayerController to TV with TV screen playback in fullscreen

浪子不回头ぞ 提交于 2019-12-05 06:55:34
问题 I have an App with video (locally stored) playback using MPMoviePlayerController NSString *deviceDir = [[NSUserDefaults standardUserDefaults] stringForKey:WZLDEVICEPATH]; NSString *videopath = [deviceDir stringByAppendingPathComponent:video] NSURL *url = [NSURL fileURLWithPath:videopath]; player = [[MPMoviePlayerController alloc] initWithContentURL:url]; CGRect viewInsetRect = CGRectInset (playerframe, 0.0, 0.0 ); /* Inset the movie frame in the parent view frame. */ [[player view] setFrame

about Airplay Mirroring… things after fp-setup [closed]

喜你入骨 提交于 2019-12-05 02:27:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . 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 "Unofficial Airplay Protocol".

如何学习才能快速成为ios开发高手?

 ̄綄美尐妖づ 提交于 2019-12-04 21:50:32
ios开发初学者,该从哪学起? 1 假设你非常急想换工作,借钱上培训班。培训班对比自学,最大的优势在于有输送渠道,你学完后他们会帮你联系工作 2 假设你经济窘迫,还是一边工作一边自学,同时找公司里面的资源,如果公司内部想招ios开发的话,尝试转岗。 3 oc相对c而言还是有些难度。 4 你还年轻,不管用什么方法,只要坚持下去都会出成果,不要怕,不要急。 那自己如何确定ios学习目标? 主要是确定自己的学习方法和学习路径,不能随便乱学,制定时间的规划,不要一辈子还没有把ios学完,一年自己学到什么程度,半年的学习计划,三个月学习计划,我们软件的学习,最重要的是实战软件的开发,所以建议在刚刚开始学习的时候,多找一些项目来研究,很多学校都有免费的课程,一般都会有提供小项目实战的,如果你们没有找不到,可以加我建立的一个交流群2群:727474737 这样你就可以找到组织,在群里大家都会提供很多小项目帮助大家成长的,你不来我们没有损失,损失的是你,我在群里等你。 iOS整体架构图分为4层 1.Cocoa Touch 层 基础系统服务,如多任务、触摸输入,推送通知和关键框架(Address Book UI,Event Kit UI ,Map Kit 等) 2.Media层 图形,音频,视频和AirPlay技术 3.CoreSevices层 CloudKit ,HealthKit