Enabling AirPlay for IOS application - ios

Hi I am developing IOS application in which I am showing HLS videos in my application. I want to enable Airplay option for my application.
I tried it in following way :
_moviePlayer = [[MPMoviePlayerController alloc]
initWithContentURL:url];
[_moviePlayer setAllowsAirPlay:YES];
But it is not showing Airplay option for my application. I checked it once I start playing video (my player appears on screen) in my setting AirPlay option is not coming up.
Is there any other setting needed. Need Some help. Thank you.

You have to sender and receiver and also same WIFI network then AirPlay is display on iPhone of your screen to access the Control Center. otherwise the AirPlay symbol is not display on Control Center.
To use AirPlay, you need these:
1. iPhone 4 (or later), iPad, iPad mini, or iPod touch (4th generation or later)
2. For videos or photos: Apple TV (2nd or 3rd generation)
3. For music: Apple TV (2nd or 3rd generation), AirPort Express, or AirPlay-enabled speakers or receivers
Use AirPlay
1. Connect your iOS device and Apple TV or AirPort Express to the same Wi-Fi network.
2. Swipe up from the bottom of your screen to access Control Center.
3. Tap AirPlay.
SNEDER : iPhone 4 (or later), iPad, iPad mini, or iPod touch (4th generation or later)
RECEIVERS : Apple TV (2nd or 3rd generation), AirPort Express, or AirPlay-enabled speakers or receivers
Note : SNEDER and RECEIVERS to the same Wi-Fi network.

Related

Find device type on airplay

When I press the airplay button the list of the devices that are available are shown. How do i get the device type (Apple TV , Bluetooth speaker, etc) when connecting using airplay.

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

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 receiver. I can also airplay mirroring the screen of the seller's ipad to the customer's ipad.
As for as I know, it seems to be no way to airplay mirroring the screenshot of one ipad to multiple ipad airplay receivers.
So I'm wondering how can I airplay mirroring one screen to many ipad airplay receivers?
How about you use airview or airplay receiver like in this link? It seen like we need to solve some problem to use.
https://github.com/nto/AirView
Another one is you can use this SDK. It has screen sharing and gesture sharing from one device to another device. It seen quite good.
http://www.showkit.com/
Our rPlay airplay mirroring software implemented the features you asked. rPlay acts as Apple TV, you can mirror ios devices to it, rPlay can also duplicate displays to other rPlay devices, the result is one ios device sends its screens to multiple devices.
We are also develop viewers for mobile devices to receive rPlay displays.
Check our forums at http://www.vmlite.com for more info

iOS Devices with Tap to Focus

I am working on a project that requires tap to focus for back-facing cameras. I wanted to compile a list of devices that my app is compatible with. Is there a list somewhere on the web that shows all of the iOS devices that support tap to focus? Here is what I know so far:
Supports Tap to Focus:
iPhone 5: YES
iPhone 4: YES
iPhone 3Gs: YES
iPod Touch 5th Gen: YES
Everything else: NO
Are there any other devices I am missing?
Are there any other devices I am missing?
Recent iPad models have rear cameras that support tap to focus. The "new" iPad introduced in April (or thereabout) has it, as does the even newer version with the Lightning connector. I don't have an iPad mini to check, but I'd be surprised if it doesn't have the same camera.
Update: The iPad mini does indeed support tap to focus according to the specs.
Here is a completed list of devices that have autofocus/tap to focus functionality:
iPhone 3gs, 4, 4s, 5
iPod touch 5th generation
iPad 3 gen and beyond

How to configure iOS app to work on specific devices?

I am developing iOS app with ZBar SDK for QR-codes scan. Here ZBar SDK creators tell us that
Only the iPhone 3GS and iPhone 4 are supported, as they have a camera
with auto-focus. The ZBar library does not support the iPhone 3G and
is unlikely to ever support it.
So I have added auto-focus-camera key to the Required Device Capabilities section of my plist. All is great, except one thing - iPad 2 & iPod Touch 4th Gen doesn't have auto focus camera, but still are able to use my ZBar SDK code to scan QR-codes. But my auto-focus-camera key doen't allow users with iPad 2 and iPod Touch 4th Gen to download my app from App Store.
In other words I need to find a way to make my app installable via App Store on these devices:
iPhone 3GS.
iPhone 4.
iPhone 4S.
iPad 2.
The New iPad.
iPod Touch 4th Gen.
And on these devices my app should not be available:
iPhone 2G.
iPhone 3G.
iPad.
iPod Touch 3d Gen and
My question is: how to make my app available in App Store for first list devices' user and not available for second list devices' users?
Any help will be appreciated!
PS: I have seen this question on SO, but it doesn't help me much.
PS2: This app has the desired set of available devices.
Requirements: Compatible with iPhone 3GS, iPhone 4, iPhone 4S, iPod
touch (4th generation), iPad 2 Wi-Fi, iPad 2 Wi-Fi + 3G, iPad (3rd
generation) and iPad Wi-Fi + 4G.
Does anyone know, how they did it?
PS3: At the same time adding both still-camera and auto-focus-camera gives us this:
Requirements: Compatible with iPhone, iPod touch (4th generation),
iPad 2 Wi-Fi, iPad 2 Wi-Fi + 3G, iPad (3rd generation) and iPad Wi-Fi
+ 4G.
And that is not a great way as long as we have all iPhones as suitable for our app, instead of 3GS, 4 and 4S.
PS4: My app is here and it has such requirements:
Requirements: Compatible with iPhone 3GS, iPhone 4, and iPhone 4S.
Word Lens requires the armv7, opengles-2, and video-camera device capabilities.
I'm not sure that you can do that
Maybe you can do a check in your code and if the device model is not the good one, just pop a new view saying that the model that the user is using can't make work the application ?
You can detect the model with this:
#import <sys/utsname.h>
NSString*
machineName()
{
struct utsname systemInfo;
uname(&systemInfo);
return [NSString stringWithCString:systemInfo.machine
encoding:NSUTF8StringEncoding];
}
and give that:
#"i386" on the simulator
#"iPod1,1" on iPod Touch
#"iPod2,1" on iPod Touch Second Generation
#"iPod3,1" on iPod Touch Third Generation
#"iPod4,1" on iPod Touch Fourth Generation
#"iPhone1,1" on iPhone
#"iPhone1,2" on iPhone 3G
#"iPhone2,1" on iPhone 3GS
#"iPad1,1" on iPad
#"iPad2,1" on iPad 2
#"iPhone3,1" on iPhone 4
#"iPhone4,1" on iPhone 4S
Else you can try sending an e-mail to apple
We need to use video-camera key in Required Device Capabilities section of app's plist.

iOS 4.2.1: Video files not being played by MPMoviePlayerController on iPod Touch

I'm using the MPMoviePlayerController with my App. It works fine both with the XCode simulator and the device (iPod Touch with iOS 4.3.1), but when running the App in XCode's Debug Mode on an iPod Touch running 4.2.1, I get an error which says that the video format is not being supported.
The video is an mp4-file and as far as I know the device should be able to play mp4 files.
Your help will be very much appreciated.
One possibility is that your video is H.264's Main Profile. This is supported by the iPod Touch 4th gen, but not the iPod touch gen 2 and gen 3 - these support only Low Complexity Baseline and Baseline profiles.

Resources