<div dir="ltr"><p dir="ltr">Very interesting idea! I'll take a crack at porting your demo app to IOCipher. Thoughts on what video codecs this might work with as well?</p><p>thanks,</p><p>-Josh</p>
<div class="gmail_quote">On Jul 18, 2013 3:42 AM, "Mark Murphy" <<a href="mailto:mmurphy@commonsware.com" target="_blank">mmurphy@commonsware.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Jul 17, 2013 at 8:18 PM, Hans-Christoph Steiner<br>
<<a href="mailto:hans@guardianproject.info" target="_blank">hans@guardianproject.info</a>> wrote:<br>
> To make that MediaRecorder class work with IOCipher, there would need to be an<br>
> IOCipher version of that class, with all the <a href="http://java.io" target="_blank">java.io</a> imports replaced by<br>
> info.guardianproject.iocipher imports, and the native code replaced with code<br>
> that can write to IOCipher, either Java or native.<br>
<br>
I suspect that this will be impractical, as most of the actual work<br>
should be done by the OS in StageFright (or the older OpenCORE) in a<br>
separate process.<br>
<br>
If you are willing to limit yourself to raw audio formats, you could<br>
have MediaRecorder record to one end of a ParcelFileDescriptor pipe,<br>
with you using the other end to write to IOCipher, at least in<br>
principle (haven't tried the IOCipher part). Here is a sample that<br>
demonstrates the rest:<br>
<br>
<a href="https://github.com/commonsguy/cw-omnibus/tree/master/Media/AudioRecordStream" target="_blank">https://github.com/commonsguy/cw-omnibus/tree/master/Media/AudioRecordStream</a><br>
<br>
However, streams on pipes aren't rewindable, and so traditional audio<br>
and video codecs, where the file's header needs to be updated when<br>
recording is complete, will not work with this technique.<br>
<br>
--<br>
Mark Murphy (a Commons Guy)<br>
<a href="http://commonsware.com" target="_blank">http://commonsware.com</a> | <a href="http://github.com/commonsguy" target="_blank">http://github.com/commonsguy</a><br>
<a href="http://commonsware.com/blog" target="_blank">http://commonsware.com/blog</a> | <a href="http://twitter.com/commonsguy" target="_blank">http://twitter.com/commonsguy</a><br>
<br>
Här kan du ställa och svara på frågor om applikationsutveckling på<br>
Android: <a href="http://www.andglobe.com" target="_blank">http://www.andglobe.com</a><br>
_______________________________________________<br>
Guardian-dev mailing list<br>
<br>
Post: <a href="mailto:Guardian-dev@lists.mayfirst.org" target="_blank">Guardian-dev@lists.mayfirst.org</a><br>
List info: <a href="https://lists.mayfirst.org/mailman/listinfo/guardian-dev" target="_blank">https://lists.mayfirst.org/mailman/listinfo/guardian-dev</a><br>
<br>
To Unsubscribe<br>
Send email to: <a href="mailto:Guardian-dev-unsubscribe@lists.mayfirst.org" target="_blank">Guardian-dev-unsubscribe@lists.mayfirst.org</a><br>
Or visit: <a href="https://lists.mayfirst.org/mailman/options/guardian-dev/josh%40vitriolix.com" target="_blank">https://lists.mayfirst.org/mailman/options/guardian-dev/josh%40vitriolix.com</a><br>
<br>
You are subscribed as: <a href="mailto:josh@vitriolix.com" target="_blank">josh@vitriolix.com</a><br>
</blockquote></div>
</div>