title: MediaRecorder issue on Android Lollipop
body: <p>I'm testing <a href="https://github.com/fyhertz/libstreaming" rel="nofollow noreferrer"><strong>libstreaming</strong></a> on new Android <strong>Lollipop</strong>, and this code that worked on previous release, seems to launch exception.</p>
  
  <pre><code>    try {
          mMediaRecorder = new MediaRecorder();
          mMediaRecorder.setCamera(mCamera);
  
          mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
          mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
          mMediaRecorder.setVideoEncoder(mVideoEncoder);
          mMediaRecorder.setPreviewDisplay(mSurfaceView.getHolder().getSurface());
          mMediaRecorder.setVideoSize(mRequestedQuality.resX,mRequestedQuality.resY);
  
  
          mMediaRecorder.setVideoFrameRate(mRequestedQuality.framerate);
  
          // The bandwidth actually consumed is often above what was requested 
  
          mMediaRecorder.setVideoEncodingBitRate((int)(mRequestedQuality.bitrate*0.8));
  
          // We write the ouput of the camera in a local socket instead of a file !           
          // This one little trick makes streaming feasible quiet simply: data from the camera
          // can then be manipulated at the other end of the socket
  
          mMediaRecorder.setOutputFile(mSender.getFileDescriptor());
  
          mMediaRecorder.prepare();
          mMediaRecorder.start();
  
      } catch (Exception e) {
          throw new ConfNotSupportedException(e.getMessage());
      }
  </code></pre>
  
  <p>Launched exception is:</p>
  
  <p>MediaRecorder: start failed -38</p>
  
  <pre><code>11-18 09:50:21.028: W/System.err(15783): net.majorkernelpanic.streaming.exceptions.ConfNotSupportedException
  11-18 09:50:21.028: W/System.err(15783):    at net.majorkernelpanic.streaming.video.VideoStream.encodeWithMediaRecorder(VideoStream.java:442)
  11-18 09:50:21.028: W/System.err(15783):    at net.majorkernelpanic.streaming.MediaStream.start(MediaStream.java:250)
  </code></pre>
  
  <p>I've tried to comment:</p>
  
  <pre><code>mMediaRecorder.setOutputFile(mSender.getFileDescriptor());
  </code></pre>
  
  <p>no exception launched, but when I start streaming a dialog tell me that need an outputfile.</p>
  
  <p>Help appreciated.</p>