Block video recording during execution of flutter app - flutter

I have a flutter application which uses youtube_player_flutter: ^7.0.0+7 to play YouTube videos. This is an educational app and I don't want anyone to record my video lectures through any screen recorder. Is there anything I can do to block users recording my videos? Any kind of help is much appreciated. Thank you!

You have to add the FLAG_SECURE which will prevent the screenshot and video recording.
await FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE);
This an example of how to disable Screenshot and Video Capture and also see this video.
Also, if you face a problem and if it is not working in the current version, I will recommend you to read the discussion on GitHub about the FLAG_SECURE don't work on Flutter application

Related

Unity & Daydream - Stream videos from youtube

How would I go about adding youtube video to a unity project?
Im playing around with Google's Daydream and have setup the video example:
https://developers.google.com/vr/video/video-overview
The next thing I would like to do is play a video from youtube.
What would be involved in doing this?
I can see other people are doing it for example: https://www.assetstore.unity3d.com/en/#!/content/29704
thanks.
I don't think there is an "official" way to do this right now.
Take a look at YouTubeExtractor (https://github.com/flagbug/YoutubeExtractor) to see what would be involved - although this only handles the download, not really the streaming component.
-Tom

Apple watch video playback

Can apple watch capable of video playback? I want to develop an app similar to vine for apple watch. So, user can consume video conveniently from the watch. Is it possible?
I have played with animating multiple images to create a video but it really is a bad approach. Anyone else comes up with any idea?
Update after WWDC 2015:
Good news! Now it's possible!
Link to sample code:
https://developer.apple.com/library/prerelease/watchos/samplecode/WatchKitMoviePlayer/Introduction/Intro.html
Summary:
Now there is a class (WKInterfaceMovie) that allows you to play videos on the watch :)
From the docs:
A WKInterfaceMovie object lets you play back video and audio content
directly from your interface. A movie object displays a poster image
with a play button on top of it. When the user taps the play button,
WatchKit plays the movie in a modal interface.
Class Reference:
https://developer.apple.com/library/prerelease/watchos/documentation/WatchKit/Reference/WKInterfaceMovie_class/index.html
Using the current APIs it might be difficult/impossible.
Still, the camera application on the apple watch is receiving a live stream coming from the camera of the iPhone at a quite good rate.
Most of the apple watch apps are not using only the publicly available APis but it shows that it should be feasible (not talking about the sound here...)
update:
I had missed one feature, there IS an embedded video player with sound on the apple watch... have someone send you a short video has an iMessage and you are able to play it on the watch...

Live Streaming Video in iPhone

I am new to iPhone Development. I need to capture video. While I'm capturing video it display on server too. Something like live streaming.
Anyone have idea from where I should have to start for this functionality?
Thanks in Advance.
Your question seems similar to this
Xcode ios: Streaming of video file while recording and removed redundant personal statements
First Half Solution
Using AVFoundation you can get video Buffer/frames while recording.
Second Half
But for uploading i didn't find any solution
There is Input Stream option there in iOS APIs but it need some file path. but as video is not recorded we didn't have any path.
Edit 1
Here is Best Example for AVFoundation provided by Apple, you can start with
I recommend you to use wowza wowza.com/https://www.wowza.com, it has all the features, from live stream, video on demand and etc.

Loading youtube video in my phonegap iphone app

Hi all im trying to load youtube/Dailymotion video using the iframe method in my phonegap app on iphone but everytime i play the video the alert message popsup saying this movie could not be played please help
Have you tried playing a non-commercial video, like a tutorial or something? If that plays you know at least that it is possible to play certain videos. There may be restrictions for playing some videos.

How to record videos from an iphone App

Does anyone know how to record videos from an iphone app without making it to close..
it would be greatly helpful, if any one provides the sample code...
Maybe you can see the Apple note:
How to capture video frames from the camera as images using AV Foundation