Skip to main content
Up and Coming
September 28, 2016

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

    This topic has been closed for replies.

    7 replies

    Inspiring
    September 28, 2016
    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);
    Up and Coming
    September 29, 2016
    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 ?
    Inspiring
    September 29, 2016
    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.
    Up and Coming
    September 29, 2016
    Ok thank, I will try setAttributes.
    Up and Coming
    October 4, 2016
    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
    Up and Coming
    October 4, 2016
    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
    Up and Coming
    October 5, 2016
    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