How to check if youTube video is 'playable' on the iPhone - ios

I am maintaing both an iPhone and web version for my application. Hence there are times when I embed a youTube video on the web which is unplayable on the iPhone (see iPhone screenshot below)
How can I do a check for such videos which cannot be played on the iPhone so that I can trigger a message to tell users to view the video on the web instead?

Related

iOS how is the Swift Playground app recording the screen?

If you look at video at 3:00 mark:
https://youtu.be/sI6w3-iSBSk?t=3m
the app allows you to record the screen. I am curious how recording the screen can be implemented and if there are any limitations to this?
I am not talking about using the Quicktime on mac to record iphone screen, I am referring to record video of screen within an app.

Need app preview video for all devices

To create an app preview video, it is easiest if the developer records the screen of all type of devices, when using the app.
What if I have only one type of device, an iPhone 5? If I create app preview video and upload only for the iPhone 5, what will happen when someone with some other device, like iPhone 6, tries to see my app?
Will he able to see as replacement video, the video for iPhone 5, or no video will be in App Store to see because video is strictly device-specific?
Sorry for the very very very late reply.
The reason you have to upload different screenshots for different devices is so the user gets the most optimized screenshots. If you only have one device, try to record the simulator at 100% scale on each device so you can get the app preview on every device.

Stream video via AirPlay without affecting app?

I have a native app and would like to stream video to an Apple TV over AirPlay, but without affecting the app screen. The video should NOT to be shown on the app screen -- only on the Apple TV.
Is this possible in iOS 7?
Yes, it is possible:
If you use AirPlay to allow users to redirect content to an external
device display, you can either mirror the current app content on the
second display or show different content on it.

iPad 2 and 4 not mirroring/outputting video via HDMI to full screen

I am encountering an issue which I believe is caused, as a result of upgrading to iOS version 6 on my iPad2 and iPad4. I have searched the support boards but have not found a solution to this issue. The issue involves mirroring the iPad on a TV using the official HDMI adaptor as shown here: http://store.apple.com/uk/product/MD098ZM/A/apple-digital-av-adapter
When playing a video on the device using the native MPMoviePlayerController, via the adapter, the result on the TV is not full screen and, instead, it is provided with black borders around the video (these bars are an ever present even when viewing the app's non-video parts or the standard apple menus which I believe was always the case but, previously, the video played full screen via the cable).
I have tested apps which I have developed which contain video playback, as well as a number of leading apps on the marketplace, and all experience the same issue when playing video mirrored on the device with iOS6 and TV at the same time. The only app I found that was able to play the video full screen on TV is the BBC iPlayer, but this seems to switch of mirroring off temporarily when the video is played full screen on TV.
I believe that, when on iOS 5, it was possible to mirror the video playback on device and TV simultaneously, and at full screen, without the black bars on the TV.
Can anyone here please confirm if this issue is related to iOS 6 and be able to kindly point me in the right direction to resolve this issue in the iOS apps that I have developed?
Are you sure that this is not happening because of your external screen's overscan settings?
Check this thread iOS screen mirroring shows overscan borders on selected apps
And here is some information on overscan & underscan from Apple
http://support.apple.com/kb/HT5841

Embedded Vimeo videos do not work on iPad Safari via ios simulator

I have googled the heck out of this question, but I have found no information that is at all helpful. My question is simple: why can't I play embedded Vimeo videos (using the universal iframe embed code) on iOS Simulator running an iPad in Safari?
Is it because this is not supported on iOS Simulator, or is it a more complex problem? Thanks
I had the same problem with my Vimeo embeds. I first noticed it in Safari on iPhone through the simulator. Then I tried it in Safari on the iPad (through the simulator). Finally, I tried just watching any video on the Vimeo site itself. None worked on the iPad/iPhone using the simulator. So I don't think the problem is specific to embeds, or any particular video. It's a problem with playing Vimeo videos in Safari on iOS, through the simulator, it seems.
Is this universal to every vimeo video you encounter or only specific ones you are trying to embed? For example, if you visit vimeo.com on mobile safari are you able to play any of their videos in iOS simulator?
If you can play videos on Vimeo.com then the problem lies with the specific videos you're trying to embed. Certain Vimeo videos uploaded >2 years ago did not process well when Vimeo made the switch to HTML5. This is rectified be re-uploading the videos back into Vimeo and letting them re-process. Then use the new generated embed code.

Resources