Forum Discussion
HedgehogTeam
9 years agoExplorer
How to hide downloaded 360 video from user on Gear
Hi,
I am currently working on a stereoscopic video player on GEAR for a client. The application must have 2 options in reading streaming and download, but my client wants his video file is not accessible like in NBA 360 video demo
Someone would have an idea how to do this? (The video would typically download with WWW Unity class)
Thank you
Nicolas
I am currently working on a stereoscopic video player on GEAR for a client. The application must have 2 options in reading streaming and download, but my client wants his video file is not accessible like in NBA 360 video demo
Someone would have an idea how to do this? (The video would typically download with WWW Unity class)
Thank you
Nicolas
7 Replies
Replies have been turned off for this discussion
- vrdavebOculus Staff
In general, DRM such as Widevine is not yet supported in Unity. But we are working on it.
If all you want to do is hide the file, you can get the downloaded bytes as follows:
var www = new WWW(videoFileUrl);
File.WriteAllBytes(videoFileHiddenPath, www.bytes); - HedgehogTeamExplorerOk thank you. I already made the download step, It seems there is no way to hide a file or a folder on android when this one is connected on a PC
Do you hae a trick ? - vrdavebOculus StaffYou could also write www.bytes to an encrypted file. One simple approach would be to use System.Security.Cryptography to AES encrypt the data before writing it out (see this example). But that may not perform well for a large file.
File.SetAttributes(path, File.GetAttributes(path) | FileAttributes.Hidden); - HedgehogTeamExplorerOk thank, I will try setAttributes.
- HedgehogTeamExplorerNo effect :-(.
the only way it's to rename with "." at the begining, but with a simple browser tool you display it. It is not satisfactory for my client.I would like to know as the NBA application managed to hide a video more than 1 GB on the phone.This video is not found whatever tools used
Or if someone an idea to protect at least 1GB of video fileSave Draft - HedgehogTeamExplorerNo effect :-(.
the only way it's to rename with "." at the begining, but with a simple browser tool you can display it. It is not satisfactory for my client.I would like to know as the NBA application managed to hide a video more than 1 GB on the phone.This video is not found whatever tools used
Or if someone an idea to protect at least 1GB of video file - HedgehogTeamExplorerProblem solved, by saving the downloaded video into the internal storage and not Application.PersistentDataPath.
The file is neither possible nor searchable as all files android systems. Only people who have their phone root can find it via ADB command...Which secures a lot more than the simple action of hidden file [.] Filename
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago