Content Protection
Are there any security features for offline content?
For example, I have a large 4gb 360 video that is locally stored in the streaming assets folder. If that video is stored as an .mp4, it is not secure and can easily be copied. This footage needs to be stored locally because it starts to break down if its compressed much more so streaming is not really an option in our case.
I've traditionally used AVPro and there aren't any solutions or features for this. I tried to build my own solution for it but I kept running into roadblocks.
I tried loading the files into a byte array and then running it through a "decoder" before sending those byte arrays to the video player. This failed because of memory issues. I've also tried using filestream to decode a file before playback and encode it immediately upon playback but the file path is "locked" during playback, leaving the file exposed the entire time it is being played back.
I am trying to see if I could use a filestream and/or a stream to create a buffer/circular buffer in memory, I could use a pointer to pass that buffer to VLC. I see that MediaInput.Read(IntPtr buf, uint len) takes an IntPtr as a parameter. I've not used IntPtr before but it is my understanding that it is a pointer to the actual location in the ram that can be accessed across multiple languages.
I've used a circular buffer like this from writing audio effect plugins however, that was only buffering the samples amplitude which is much simpler than an mp4 file.
Do you see this as a possible option for securing that file? If you have any other ideas, I would love to hear them and try them out.