Content Protection
Most of the content protection features are in the Ultra Edition, but the Core edition does support the file offsetting on Android.
File Offset
On Android (this is the only platform that currently supports this feature) in the Core Edition a file offset (in bytes) can be specified which allows loading of media which is embedded within another file. This is very useful for hiding media.
In Windows you can use the following command via the command-line to easily append your video to a dummy file:
copy /b DummyFile.dat + MyVideo.mp4 MysteryFile.dat
The offset can be set via the UI in the Platform Specific > Android
section, or via PlatformOptionsAndroid
in scripting:
// Set the Android file offset to 54321 bytes (the size of the dummy file, or the offset into a file if you have as embedding it within a file)
mediaPlayer.PlatformOptionsAndroid.fileOffset = 54321;
An alternative is to use a dummy video file, and then append your real media to this file, as this will then allow the dummy video to play instead of your real media, making it not obvious that you're hiding your video.
In Windows you can use the following command via the command-line to easily append your video to a dummy video:
copy /b DummyVideo.mp4 + MyVideo.mp4 MysteryFile.mp4
In Windows you can use the following command to create a batch file for converting multiple files easily:
copy /b DummyVideo.mp4 + %1 %~n1-hidden.mp4