Android MediaRecorder – “start failed: -19”

Just found out the bug, in this line:

mediaRecorder.setVideoSize(sView.getWidth(), sView.getHeight());

after commenting out this line, the code runs perfectly!

Leave a Comment