I am recording video with MediaRecorder. My code works fine on 2.3.3 but fails on 4.0.3.
The issue is following: the code mediaRecorder.stop() throws the RuntimeExep
I had -1007 error on some devices, mostly with android 9 and finally i solved this problem. The reason was that OMX.google.h264.encoder supports only video sizes evenly dividable by 16. I used displayMetrics.widthPixels and displayMetrics.heightPixels for video size and it is not meet requirements on all devices.
Hope this helps someone!