Maybe I dont follow, but you just want to record front camera and display a preview inside a panel?
Also have you checked the following and none meet your requirements:
-
http://www.b4x.com/android/help/audio.html#audiorecordapp
-
https://www.b4x.com/android/forum/threads/rsvideorecord-library.16268/#content
- and this
:
https://www.b4x.com/android/forum/t...called-in-an-invalid-state.31709/#post-184994
Where to look:
http://developer.android.com/reference/android/media/MediaRecorder.html
Camera and video recording can be troublesome depending on what cameras and codecs and resolutions a device supports.
I guess you need to therefore be more specific about what you require. For e.g. what is the final goal? If some does indeed wrap mediarecorder, would you work through the lifecycle issues yourself, or do you want everything done for you down to the final details. Lets face it something like this will take a long time depending on what devices you are testing on.
For e.g. if it doesnt work on a GalaxyTab2 device using the official API what would you expect to be the solution.
EDIT:
I forgot to add, you need to think about which API to use as well. The Camera2 API in Lollipop is probably the most stable.
In fact there is a sample here which records video to a file:
https://github.com/googlesamples/android-Camera2Video