Extend your video recording time in Google Glass

Is there a way to increase the default video recording time on glass. The current recording time is only 10 seconds, and we must manually extend it by pressing the camera button for one second or by pressing and selecting the option “Extend video”. So I was wondering if there is a flag that we can set when prompted by the camera to start recording, which will force the camera to record extended video.

I was also interested to know how to set the maximum video recording time and what is the default time limit for video recording in glass?

I use the code below to launch a glass camera for video recording

Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
startActivityForResult(intent, CAPTURE_VIDEO_REQUEST_CODE);

Also, if there is no possible way, someone can help me in the alternatives. Is there any open source camera that works for glass or do I need to write my own camera [any links that will help me get started?]

+4
source share
2 answers

I hope you get an idea from him:

    Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE);
    intent.putExtra("android.intent.extra.durationLimit", 60);
    startActivityForResult(intent, CAPTURE_VIDEO_REQUEST_CODE);

This video duration lasts one minute, if you want to extend the time of the video, do it like this, and now the duration of the video is 2 minutes:

    Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE);
    intent.putExtra("android.intent.extra.durationLimit", 120);
    startActivityForResult(intent, CAPTURE_VIDEO_REQUEST_CODE);
+3
source

Source: https://habr.com/ru/post/1531270/


All Articles