use UNIX sockets to provide regular path to MediaRecorder and MediaPlayer
MediaPlayer classes provide easy media recording and playback that is highly optimized, but they only operate on
String file paths and
java.io.FileDescriptor instances, so it is not possible to use IOCipher paths with them.
Using UNIX domain sockets, it is possible to create a file path on the regular file system that can read and write data in an IOCipher container. vitriolix has gotten a proof of concept working:
But it needs more work:
- MP4 header rewriting: the header is mismatched to the file since it can't seek back and update the header as it writes frames
- make a native, really fast pipe filler, it is currently done dumbly in java
#1 Updated by n8fr8 almost 3 years ago
If you look at the code from this project, there is actually no use of MediaRecorder:
It only shows launching the external camera app with a pipe file.
If you want to see MediaRecorder used with a pipe, then you should see this class: