title: Alternative ways to set durationLimit or sizeLimit while video recording?
body: <p>The thing what I wanted to implement that users can record video only for 30 seconds or by a specific size. </p>
  
  <p>I tried to use those below (both seperately or together)</p>
  
  <pre><code>public static final java.lang.String EXTRA_SIZE_LIMIT = "android.intent.extra.sizeLimit";
  public static final java.lang.String EXTRA_DURATION_LIMIT = "android.intent.extra.durationLimit";
  </code></pre>
  
  <p><strong>Results</strong></p>
  
  <ol>
  <li><p><strong>EXTRA_SIZE_LIMIT</strong> did <strong>not</strong> work on <strong>Samsung Phones</strong>. On HTC it worked very inaccurately. You must set EXTRA_VIDEO_QUALITY as 0 which means low quality (it's sh*t as hell) and if you set it to "1" it wont work. </p></li>
  <li><p><strong>EXTRA_DURATION_LIMIT</strong> did not work on <strong>HTC Phones</strong>. Except HTC it worked without any problem all brands which I tried.</p></li>
  </ol>
  
  <p>So I wonder if there are another ways to set limit for duration or size while video recording on Android? </p>