Android MediaRecorder allows to save video to file (file or socket):
setOutputFile(FileDescriptor fd);
setOutputFile(String path)
How to save videodata to OutputStream? It will be used for streaming video recording.
Android MediaRecorder allows to save video to file (file or socket):
setOutputFile(FileDescriptor fd);
setOutputFile(String path)
How to save videodata to OutputStream? It will be used for streaming video recording.
You can do it using
ParcelFileDescriptor.fromSocket()
:If you prefer UDP, use
ParcelFileDescriptor.fromDatagramSocket()
instead.Credit where credit is due.
Using Android-specific LocalServerSocket seems to be the only possible way to get video data as stream. In brief, you have to:
Another ideas?