How to block a screen shot in an iOS application - ios

I want to build a application in which I want to block screen shot by user like in Netflix application, it should return a black screen shot as in Netflix. Right now I am unable to get anything regarding this.
I don't know how Netflix is handling this?
Is there any way to detect captured image in the block and we can make it obscured?

Netflix (and other providers) use "FairPlay Streaming" which is what prevents capture of the video content - link: https://developer.apple.com/streaming/fps/
Note that you can do a screen-shot of the Netflix UI (menus and such), just not the streaming content.
If you do a little searching, you will find plenty of discussion explaining that you cannot block screen captures in iOS.

Related

Save multiple videos in custom designed layout in swift

I've developed a dual camera app in ios. It has this layout. While developing, I came across the challenge of saving the video in this specific layout. I couldn't think of any other way of recording the video so I came up with the solution of recording the entire screen and save it as a video. But recently I've seen apps that do not record the screen and yet they're able to save the video in a custom layout. One example of such an app is this. Now I'm unable to figure out how to make a video and save it in custom layout without screen recording(since its not perfect solution). So any help in this regard would be appreciated.

Record video inside of iOS app, immediately play and loop

I'm looking for a way for my users to take a video (defaulting to front facing camera, but with the ability to switch) lasting 2 seconds, display that video immediately and have it loop indefinitely (no controls displayed). Essentially mimicking a 2 second gif. I would like to do this in app so they can see the video before posting, and potentially retake. Any ideas? I've found some functionality here: https://developer.apple.com/library/ios/documentation/MediaPlayer/Reference/MPMoviePlayerController_Class/index.html#//apple_ref/c/tdef/MPMovieControlStyle but it doesn't seem to address the entire problem set.
Checkout this guide from Apple:
Using Video

Apple Watch Video Control

Is there any control or way we can play video in Apple Watch app. I can see Image, Button, Label etc.. controls but couldn't find a way to play a video.
Any help will be appreciated.
Thanks
There is no way to playback video on the Apple Watch currently. And I doubt there will be for some time (if ever) due to the very small screen size.
Since this is possible now, I am adding some reference URL so other developers can get an idea and possibility for this.
Watch OS 2 comes up with plenty of nice features and Audio and Video are part of this.

blackberry OS 10 development to share screen

Is it possible to create an application for BBOS10 that shares screen to other phone/PC on wifi network just like Radmin on Windows?
I presume you are talking about sharing the screen regardless of content, rather than sharing the screen for a specific application that you have written.
I am not aware of any "API"s for doing this.
This leaves, I believe two options, which are loosely:
capture screen shots and forward these
capture a video of the screen and forward that
Now the screen shot API has been available since fairly early on in BB10 evolution. To use it you would just create a background Thread and take screen shots at regular intervals, which you would then send, presumably over a socket interface, to the receiving user. I suspect The biggest issue with this is that it is likely to be extremely data heavy, since the screen shots are complete images, as opposed to a streaming video which is (in my understanding) typically a series of diffs from the preceding frame.
Until very recently, it has not been possible to capture video of the BB screen, but it seems with 10.2, you now can. Please review this Thread:
Capture Video
on the BB10 forum.
Looking at this, it would appear you can capture each video frame and forward that, or presumably, capture the entire stream and forward that.

Airplay with AVQueuePlayer has gaps

My app uses AVQueuePlayer to show video clips back to back. In testing on my AppleTV, it seems that when I switch to the next video in the queue, there is a small time gap where the Apple TV 'takes over' the screen and the home screen of the Apple TV is displayed. Is there any way to prevent this gap from happening, even a black screen or loading indicator would be a better experience.
I was having this exact same problem and was dismayed when I saw that no one had yet to find an answer.
The solution I ended up going with involved taking advantage of the multiple display support added in iOS 5. There are some helpful links in learning how to do this here:
https://developer.apple.com/library/ios/documentation/WindowsViews/Conceptual/WindowAndScreenGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40012555-CH1-SW1
http://blog.redfin.com/devblog/2012/05/creating_a_dual-screen_airplay_experience_for_ios_and_apple_tv.html#.UjCe5mRATZY
The app I am designing will basically look for the availability of an external screen. If it finds one it will play the videos on the viewcontroller I provide for that external screen. That viewcontroller can have a black background so that any pause in between videos looks natural and no longer has the Apple TV home screen pop into view for a moment.

Resources