Jugali Lakota Jugali Lakota - 7 months ago 51
Android Question

How to activate slow motion when using ACTION_VIDEO_CAPTURE intent?

I use the ACTION_VIDEO_CAPTURE intent to capture videos with the default Camera app. But the slow motion button gets disabled (gray) when the app open. Yet, it works perfectly when I launch manually the app.

Intent takeVideoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
takeVideoIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(mediaFile));
takeVideoIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
takeVideoIntent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, TIME_CAPTURE);
startActivityForResult(takeVideoIntent, REQUEST_VIDEO_CAPTURE);

I tested it on Galaxy S4. How could I activate the slow motion button? Does anyone have been able to call the default camera app with the slow motion activated?

Thanks :)


But the slow motion button gets disabled (gray) when the app open.

There are thousands of Android device models. These ship with hundreds of different "default Camera apps". And, your ACTION_VIDEO_CAPTURE request might be handled by a user's chosen camera app installed from an app distribution channel. There is no single "default Camera app" in the world of Android.

There is nothing in the ACTION_VIDEO_CAPTURE protocol for you to request that slow motion capture be available or used. No camera app has to offer slow motion video recording.