cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable the recording feature?

MohamedFaizal
Honored Guest
Hi,
I'm building an app from Unity 2020 and I would not want the app to be able to record by the user.
Currently, any application that you run directly on the headset (Oculus Quest/Oculus Go) has an option to record a video or take a photo if you open up the Home menu/Pause menu.
Is there a setting or code that I can include in my Unity project to disable the ability of the user to record just for the application I'm building?
Thank you!

Regards,
Faizal
4 REPLIES 4

TheC0llectoR
Protege

I'm curious as to why? Classified government program your'e building? Doubtful!

We are android, not apple. So you should build for them, they love limiting the users to just doing what they want them to do. You'll love it.

RemiRemiRemi
Explorer

For anyone else who finds this post, I spent an hour trawling the unity docs to find https://developer.oculus.com/documentation/unity/ps-sharing/#sharing-is-on-by-default which says:

 

It is important to note that the sharing features such as casting, video recording (video capture), and taking photo (screenshots) are enabled for your apps, by default. To disable any sharing features, go to Sharing, select an app, and from the Enabled Features list, clear the checkbox for the features you do not prefer to share, and click Save.

And to answer @TheC0llectoR, there's plenty of valid reason a developer may want to disable these features other than "limiting the users to just doing what they want them [sic] to do". In fact it could benefit the user and provide extra security, for example privacy centric apps where users wouldn't want to accidentally share data outside of the app. Or an app like Snapchat where users wish to share time restricted content that they wish to remain private. Or for a developer distributing a private alpha/beta which they wish to limit distribution. While these restrictions may not provide watertight protection they're certainly legitimate use cases for this feature.

But one of the biggest use cases for this feature is games that are already pushing the limits of the Quest 2 hardware and don't have the headroom to also record and transcode video on the fly. If enabling recording would degrade the performance of the game play badly a developer may wish to disable this feature.

Absolutely outstanding reply! I'm actually rather embarrassed because I had forgotten that I had posted this reply. Unfortunately my head space was rather negative due to some developing situations in my life. It seemed to have driven some negativity here and there and I apologize for that. I believe that instead of removing it and pretending that it didn't happen, I'd rather focus on the fact that anyone such as yourself could have replied with just as equal  negativity towards me, but you didn't. I think this is a wonderful example of how to correctly deal with issues like this and I hope many, many people see this and seriously think about it in their future posts. Question was answered while simultaneously educating a negative replyer(myself) without 'stirring the pot' as the say.

ayyappa999
Honored Guest

If you set the window flags of the activity as FLAG_SECURE, it may work. If they are internally recording frame by frame, I doubt. But worth a try!