airplay

AVPlayer not finishing when streaming via AirPlay

▼魔方 西西 提交于 2019-12-21 20:00:18
问题 I am observing the following Notification to know when my HLS stream in AVPlayer has been played until the end: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didPlayToEnd:) name:AVPlayerItemDidPlayToEndTimeNotification object:_player.currentItem]; This works fine when playing inside the app but when I stream via AirPlay, the notification is not sent. On my Apple TV it looks like the video has played up until shortly before the end of the video and then paused. So

How to customize the Airplay button when airplay is active

爷,独闯天下 提交于 2019-12-21 11:35:17
问题 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

AVAudioSessionCategoryPlayAndRecord with Airplay

£可爱£侵袭症+ 提交于 2019-12-20 10:22:10
问题 My app uses the microphone and outputs audio, so I am setting my Audio Session to the Play and Record Category, but this seems to disable Airplay. If I set the category to Play, Airplay works fine with my output (but obviously the input doesn't work). I've tried overriding the output route to speaker, in case it needed that to output over Airplay, but no joy. Any ideas? 回答1: What AirPlay device are you trying to use? Does it have a microphone? If not, iOS won't present it as an option when

MPNowPlayingInfoCenter not reacting properly when pausing playback

不问归期 提交于 2019-12-20 09:10:15
问题 I am trying to get MPNowPlayingInfoCenter to work properly when pausing playback. (I have a streaming music app that uses AVPlayer for playback, and I am playing back in my Apple TV over Airplay.) Everything but pausing seems to be reflected correctly in the Apple TV UI. I am initializing it like this: MPNowPlayingInfoCenter *center = [MPNowPlayingInfoCenter defaultCenter]; NSDictionary *songInfo = @{ MPMediaItemPropertyTitle: title, MPMediaItemPropertyArtist: artist }; center.nowPlayingInfo

App for jailbroken iOS device: Consistent background operation

耗尽温柔 提交于 2019-12-19 10:21:37
问题 I am the author of a Cydia tweak called AirFloat. An app that implements the AirPlay audio protocol (previously known as AirTunes), making it possible to stream audio to your iOS device. AirFloat is originally an App Store app, until it got booted by Apple from the App Store. I've since that made it available for free in Cydia. Currently the app stands in Cydia exactly as the previous App Store version. As a result of this I get a lot of requests to make it work in the background. But I

Is there a way to keep Airplay running if the device auto-sleeps/auto-locks?

橙三吉。 提交于 2019-12-19 03:12:21
问题 When streaming a video from an iPhone (or any iOS device) to a TV via Airplay, the stream stops as soon as the device goes to sleep from inactivity. At the moment, I disabled the sleep timer so that the device does not automatically sleep, but is there a better solution to this? Is setting AVPlayer.externalPlaybackActive enough to allow the OS to know to keep playing when the screen is off? If not, is there an alternate way to keep Airplay running even if the device turns off its screen? 回答1:

AVAudioPlayer and AirPlay - possible?

谁说我不能喝 提交于 2019-12-18 16:57:27
问题 I'm trying to ascertain whether it's possible to toggle AirPlay support using the AVAudioPlayer class. From what I have read: AirPlay is a technology that lets your application stream audio to Apple TV and to third-party AirPlay speakers and receivers. AirPlay support is built in to the AV Foundation framework and the Core Audio family of frameworks. Any audio content you play using these frameworks is automatically made eligible for AirPlay distribution. Once the user chooses to play your

Implement Airplay Software Receiver in Android OS

我怕爱的太早我们不能终老 提交于 2019-12-18 13:37:57
问题 Can we develop any app in Android which will play a role of Airplay Receiver? Following provides support for MAC and Windows desktop version now. http://www.airsquirrels.com/reflector/ I found a similar question with no reply. How can I make Android apps that work with Apple Airplay?. ALSO: I have found lots of apps on Play Store performing this functionality. http://www.knowyourmobile.com/android-apps/18049/best-airplay-apps-android-gettin-dream-stream I have found http://bubbleguuum.free.fr

Airplay: Mirror subview on external window

倖福魔咒の 提交于 2019-12-18 13:24:29
问题 a design / architectural question on airplay. I have setup an external display in the AppDelegate: UIScreen *externalScreen = UIScreen.screens.lastObject; self.externalWindow = [[UIWindow alloc] initWithFrame:externalScreenFrame]; self.externalWindow.screen = externalScreen; self.externalWindow.backgroundColor = [UIColor redColor]; Works fine, TV shows an empty screen in red. Now I have a ViewController with a bunch of subviews, and one view should be shown on the device and the external

AirPlay support, MPMoviePlayerController and MPVolumeView relation

只谈情不闲聊 提交于 2019-12-17 22:54:08
问题 I am developing an iPhone application that has support for video play. I am using MPMoviePlayerController with custom controls for playing the video. For this purpose I have set control style of MPMoviePlayerController to MPMovieControlStyleNone. I would like to support AirPlay feature for the video being played. As per the documentation, we have to set the 'allowsAirPlay' property of MPMoviePlayerController to YES to enable AirPlay feature. How can I display the AirPlay button on my player