airplay

MPVolumeView does not show route button on launch

大城市里の小女人 提交于 2019-12-17 20:41:05
问题 iOS 9.1 - iPhone 6S MPVolumeView's route button (airplay) is not showing when app launches even when there are wireless routes available. I have tried querying my MPVolumeView after it has been created to check for wireless routes and I get 0. I'm only able to get 1 (and have the route button appear) by disabling and enabling WiFi to trigger a notification. The MPVolumeView in my app is to control the volume of videos played from UIWebView. Also, whenever I activate a wireless route for

ipad airplay mirroring to multiple airplay receivers (specifically for videos/pictures)

断了今生、忘了曾经 提交于 2019-12-13 07:04:40
问题 my client asks me to develop some app for real-estate presentation which has the following features: 1. The seller can have their ipads connect to the projector wireless over wifi. 2. The seller can broadcast the screenshot of some other ipads to the customers's ipads. For feature 1, I can have a apple TV and airplay mirroring the ipad screen to it, then have some HDMI-VGA adapter for the connection with the projector. For feature 2, I can also install airfloat to make the ipad an airplay

Adding MPVolumeview programmatically in app

此生再无相见时 提交于 2019-12-12 21:01:44
问题 Trying to add MPVolumeView programmtically in app by using the following code MPVolumeView *_volumeView = [ [MPVolumeView alloc] init]; [_volumeView setShowsVolumeSlider:YES]; [_volumeView setShowsRouteButton:YES]; [_volumeView sizeToFit]; [view addSubview:_volumeView]; but getting so many Semantic issue that use of undeclared identifier MPVolumeView and Invalid operands to binary expression @property (nonatomic, strong) MPVolumeView *volumeView; Getting message in red for the above statement

Conversion of raw JPEG bytes received from HTTP PUT in Android

走远了吗. 提交于 2019-12-11 19:48:15
问题 I am receiving an HTTP PUT in this format - PUT /photo HTTP/1.1 X-Apple-AssetKey: F92F9B91-954E-4D63-BB9A-EEC771ADE6E8 X-Apple-Transition: Dissolve Content-Length: 456850 User-Agent: MediaControl/1.0 X-Apple-Session-ID: 1bd6ceeb-fffd-456c-a09c-996053a7a08c <HERE COMES THE JPEG DATA> like - [ PUT /photo HTTP/1.1 ] [ X-Apple-AssetAction: cacheOnly ] [ X-Apple-AssetKey: 00000000-0000-0000-0000-000000000068] [ Content-Length: 462848 ] [ User-Agent: MediaControl/1.0] [ X-Apple-Session-ID: 16d9a403

Airplay mirroring in iOS apps

女生的网名这么多〃 提交于 2019-12-11 10:28:44
问题 I have looked several links and read the Apple Documentation but I don't get any step-wise instructions to mirror the content of app on an external device. All they explain is how to display a new window for an external screen if recognized. In my app, I just need to display the current screen being shown in the app on an airplay enabled device. There is a airplay button, clicking on which will check for available external screens and display the content present on the device on that screen.

AVPlayer: AirPlay button shows up in control center even though allowsExternalPlayback is set to NO

耗尽温柔 提交于 2019-12-11 02:49:47
问题 I've got an instance of AVPlayer which plays some media, but I don't want user to be able to stream it via AirPlay. So I set allowsExternalPlayback property of AVPlayer to NO . However it doesn't seem to affect AirPlay button in control center, so it stays visible. Is there any way to hide the button? 来源: https://stackoverflow.com/questions/30755169/avplayer-airplay-button-shows-up-in-control-center-even-though-allowsexternalpl

Airplay Button is not showing in Player Controls with AVPlayer

霸气de小男生 提交于 2019-12-10 21:52:08
问题 I created a Video Player using AVPlayer and AVPlayerViewController. I have set " allowsExternalPlayback " property to true and also " usesExternalPlaybackWhileExternalScreenIsActive " property to true. But still I am not getting Airplay Icon in Player Controls. player = AVPlayer(URL: url!) player!.allowsExternalPlayback = true player?.usesExternalPlaybackWhileExternalScreenIsActive = true I am running my app on ios 9.2. 回答1: You need to add an MPVolumeView in order to get this. You can read

YouTube embed AirPlay UIWebView

拈花ヽ惹草 提交于 2019-12-10 17:04:52
问题 I am developing a video application which contains a lot of video from different sources. One of the options in the application has to be to play videos through airplay on a TV. For displaying YouTube video in my application I am using YTPlayerView, which is an objective-C helper for the YouTube API. My question is: is there an option or param I can pass so the YouTube video can also be played through Airplay? I couldn't find anything useful on Internet. 回答1: In - (BOOL)loadWithPlayerParams:

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

独自空忆成欢 提交于 2019-12-10 10:08:01
问题 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

iOS: Airplay picker MPVolumeView alternative

心不动则不痛 提交于 2019-12-10 09:20:37
问题 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