How to convert image to video with DRM (FairPlay) - ios

I want to hide some private content on screenshots. Since Apple provide us only userDidTakeScreenshotNotification, the only way to achieve this is to convert image to video with DRM. According to these thread:
If your application uses FairPlay Streaming (FPS) your video content
will automatically not be captured by the iOS 11 screen recording
feature or QuickTime Player on macOS. The portion of your application
that is playing the content will be blacked out.
I found commercial implementation of these idea in ScreenShieldKit, but it costs money.
The main question:
How it's possible to convert image or label to FairPlay Streaming (FPS) video in offline mode?

Related

Itunesconnect App Preview Video

I have tried many times to upload App Preview video.
But each time I failed.
Please recommend me best tool to convert my video to availble and how to.
Thanks
You must use Safari to upload your video.
I use QuickTime Player to record the screen of my app.
In QuickTime Player you can record in portrait and landscape, but you cannot rotate your screen during the record.
Open QuickTime Player > File > New Movie Recording (then select your device for camera and microfone).
Sample of record screen:
Apple App Preview Video Guidelines
As you can imagine, Apple wants to generate a similar Look & Feel for all videos. Therefore they released some guidelines, which you should mind when creating a preview video.
15-30 seconds length
Maximum file size of 500 mb
.mov, .m4v, .mp4 format
Only use screen capture
No (very less) copy – due to the reason that you can’t internationalize your video and only upload it once in one language
Don’t overlay animated hands, you can use touch hotspots if really necessary
For games: Show more gameplay scenes than cutscenes
You can use voice over – but mind the internationalization part – Apple recommends to only use a very limited and professional voice over if you have to
Your preview video should only contain content for which you have the full rights (don’t show you app streaming content from an iTunes Playlist or a YouTube video)
App Preview Video Format
Now the most important part – which format or size should your video have. As you have already read in my screenshot size article it can be quite frustrating creating a lot screenshots in different sizes.
Apple recommends you to use the following app preview resolutions (this is already a summary, that you have to create the least amount of different video versions):
iPhone 5+ iPhone 6 Plus: 1920 x 1080
iPhone 6: 1334 x 750
iPad: 1200 x 900

Compress iOS video using Phonegap

Is there any tips, suggestions, or available plugins for Phonegap that might be available to Capture a video using Phonegap's capture feature, then programmatically compress or reduce the quality of the video such that it can be uploaded to a server?
The video file sizes can become rather large with videos longer than 5 minutes. I would strongly prefer not to have save the video to the iPhone.
Currently it is not possible. You might have a look at this plugin, but up to Cordova 3.5 it is not possible to compress a video, and you can set its duration only on iOS

Youtube - embed with high quality

I have created an introduction video for my application to youtube and I can't embed it in my application home page (try to play the video without changing quality settings) in high quality by default. Video is useless in lower than 720p since it displays navigation through my app.
Any ideas?
To get 720p (if available), add &vq=hd720 to the end of your video url.
www.youtube.com/embed/<VIDEO_CODE>/?vq=hd720
Similarly, &vq=hd1080 will force 1080p (if available).

View uploaded video in iOS app

I have a bunch of videos uploaded to google drive. They are in mpeg4 (avi) format I believe. I have tried everything I can think to view the video in a MPMoviePlayerViewController. In the simulator the video player launches and looks like it playing, but I don't see any video. When I run it on my device the player won't launch. I have tried to use the downloadUrl, alternateLink, embedLink and webContentLink with no success.
Is it possible to stream video from Google Drive to iOS?
The simulator isn't a full blown emulator, but just a simulator. It uses similar frameworks from Mac OS, which may have different functionality than on iOS. In other words, the simulator may have more capabilities than an actual device.
The MPMoviePlayerController class on iOS supports only a few containers and codecs, and does not support AVI.
Supported Formats
This class plays any movie or audio file supported in iOS. This
includes both streamed content and fixed-length files. For movie
files, this typically means files with the extensions .mov, .mp4,
.mpv, and .3gp and using one of the following compression standards:
H.264 Baseline Profile Level 3.0 video, up to 640 x 480 at 30 fps. (The Baseline profile does not support B frames.)
MPEG-4 Part 2 video (Simple Profile)
If you use this class to play audio files, it displays a white screen
with a QuickTime logo while the audio plays. For audio files, this
class supports AAC-LC audio at up to 48 kHz, and MP3 (MPEG-1 Audio
Layer 3) up to 48 kHz, stereo audio.

Video uploaded to youtube has low quality preview thumbnail

I have an iphone application that uploads videos to youtube. It uploads the video files without a problem. But there is an issue that the thumbnail preview image is of very low quality.
My question is this, is it possible using the youtube api to set a different preview image?
No. this is not possible with the Standard API.
See this answer for possible ways forward. Youtube API - Set the Thumbnail of video

Resources