Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
HedgehogTeam's avatar
HedgehogTeam
Explorer
9 years ago

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

7 Replies

Replies have been turned off for this discussion
  • vrdaveb's avatar
    vrdaveb
    Oculus 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);
  • Ok 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 ?
  • vrdaveb's avatar
    vrdaveb
    Oculus Staff
    File.SetAttributes(path, File.GetAttributes(path) | FileAttributes.Hidden);
    You 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.
  • No 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
  • No 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
  • Problem 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