airplay

MPNowPlayingInfoCenter nowPlayingInfo ignored for AVPlayer audio via AirPlay

故事扮演 提交于 2019-12-04 17:38:05
问题 I have implemented audio playback using AVPlayer, playing a remote mp3 url. I want to display the information about the currently playing audio using the MPNowPlayingInfoCenter nowPlayingInfo method. When I lock the screen, I do see the image and title I set, so I know that this method is registering the information in some way, but when I switch to AirPlay to an AppleTV, the display looks like a generic video output, with the progress bar at bottom, but elapsed time and duration correctly

AirPlay messes up localhost

雨燕双飞 提交于 2019-12-04 15:26:50
问题 Since the last OSX update (Yosemite), my localhost server is full of error messages from airplay (but I am not using it). Each times it's the same: [31/Oct/2014 05:40:42] code 400, message Bad request version ('RTSP/1.0') [31/Oct/2014 05:40:42] "GET /info?txtAirPlay&txtRAOP RTSP/1.0" 400 - It's just annoying to have its server full of error messages so if anyone has a clue to fix that or to remove airplay, I would be very thankful :) 回答1: I think I found the answer: On a cisco discovery forum

What is the code to call the actionsheet AirPlay directly?

北城余情 提交于 2019-12-04 13:02:23
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. - (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:UIControlEventTouchUpInside]; } } } Add the MPVolumeView to your view, and then send control events to the button. Keep in mind

Airplay from iPad - a separate UIView to display on Apple TV

杀马特。学长 韩版系。学妹 提交于 2019-12-04 09:46:24
问题 I want to use Airplay to send images in high definition to a Apple TV. Airplay works fine on my iPad 2 with iOS 5.0.1. When I start my app, my UIScreen screens array only has 1 item in it. (the iPad of course). I register for the notification for more screens, it never comes unless i bring up the multitasking bar and select my Apple TV. I don't want to do this. I want an in app pop over where I can select the Apple TV or any other airplay device in the list. I used MPVolumeView , which did

Airplay with Custom html5 controls

故事扮演 提交于 2019-12-04 08:40:39
问题 Does anyone know if there is a way to get Airplay to work on an html5 video that is using CUSTOM CONTROLS? That is the important part, I realize that you can just add the x-webkit-airplay="allow" attribute to the element if you are using the built in html5 controls. But my video player uses custom built controls. It appears that Safari will put the Airplay button on the built in html5 controls, but is there a way to do it if I'm not using the built in controls? Here is a link to the html5

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

拥有回忆 提交于 2019-12-04 07:48:51
How can I display an AirPlay popup menu in my Swift project? (Many applications like Spotify can display one like below): 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, y: 0, width: 0, height: 0) let airplayVolume = MPVolumeView(frame: rect) airplayVolume.showsVolumeSlider =

Native Android/iOS development vs Marmalade SDK [closed]

谁说胖子不能爱 提交于 2019-12-04 07:27:28
问题 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 4 years ago . Our company is on the verge of picking between native Android/iPhone development and some cross-platform solution, specifically Marmalade SDK (former Airplay SDK). We are a computer vision company, meaning we need low level access to the camera devices. Also, our applications are

How to customize the Airplay button when airplay is active

末鹿安然 提交于 2019-12-04 05:08:39
Been trying to solve this issue for 2 days now and I give up. Im trying to implement a customized airplay button (I have to beacuse the background is white and the button must be black). Ive added a view in interfacebuilder and chose mpVolumeView for it. Then I made the connections and wrote the following code; viewDidLoad.. { ..... [_volumeView setShowsVolumeSlider:NO]; for (UIButton *button in _volumeView.subviews) { if ([button isKindOfClass:[UIButton class]]) { [button setImage:[UIImage imageNamed:@"airplay_icon.png"] forState:UIControlStateNormal]; [button addObserver:self forKeyPath:@

iOS Mirroring MPMoviePlayerController to TV with TV screen playback in fullscreen

坚强是说给别人听的谎言 提交于 2019-12-03 21:37:58
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:viewInsetRect]; [player view].backgroundColor = [UIColor clearColor]; [player view].tag = TAG_VIDEO

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

纵然是瞬间 提交于 2019-12-03 21:03:15
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . 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" . Resembled the sequence, and I've questioned from my iPad with "fp-setup". It was very