title: How to limit duration limit recording and quality of a video with Appcelerator
body: <p>I am making an application that allow users to post their videos. I just want to limit the duration and the quality of the videos.</p>
  
  <p>In iOS, no problem with different options.</p>
  
  <p>For Android, I use intent to launch camera. I saw that we have to possibility to set duration with (it's an example from android developer guide) :  </p>
  
  <pre><code>intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
  intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 8);
  </code></pre>
  
  <p>I tried to do this, from different ways but impossible.</p>
  
  <p>Here is a part of my code :</p>
  
  <pre><code>        var intent = Titanium.Android.createIntent({ action: 'android.media.action.VIDEO_CAPTURE' });
          intent.putExtra("android.provider.MediaStore.EXTRA_VIDEO_QUALITY",0);
          intent.putExtra("android.provider.MediaStore.EXTRA_DURATION_LIMIT",10);
          $.upload.activity.startActivityForResult(intent, function(e) {
  </code></pre>
  
  <p>Does anyone has an idea how to do this, it's really annoying.</p>
  
  <p>Thank you.</p>