fyhertz / spydroid-ipcamera

A powerful and funny android app. that streams the camera and microphone of your phone to your browser or to VLC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MediaRecorder .start() fail - 38 with Android 5.0

doanthaibao opened this issue · comments

        mMediaRecorder.setOutputFile(mSender.getFileDescriptor()); 
        mMediaRecorder.prepare();
        mMediaRecorder.start();

With above code lines, throw a IllegalStateException If mSender is a socket, I see it work fine with mMediaRecorder.setOutputFile(local_file). I think it a bug of Google API. Please help me check it.
Thank
Bao Doan

had the same issue, tried on Nexus 4 and 5 with Android 5.0