Domanda

I am working on android automation and trying to set video quality by adb command. I am using follwing command:

  adb shell am start -a android.media.action.VIDEO_CAPTURE  --ei android.intent.extras.CAMERA_FACING 1 --ei android.intent.extras.EXTRA_VIDEO_QUALITY 1   -n com.android.gallery3d/com.android.camera.CameraActivity

But it does not seem to set the quality. Any ideas?

what I am doing wrong?

È stato utile?

Soluzione

Well there is a little correction here:

Instead of using EXTRA_VIDEO_QUALITY 1, we can do VideoQuality

so our command would be :

 adb shell am start -a android.media.action.VIDEO_CAPTURE  --ei android.intent.extras.CAMERA_FACING 1 --ei android.intent.extras.VideoQuality 1   -n com.android.gallery3d/com.android.camera.CameraActivity
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top