문제

I'm trying to limit the length of a video captured on Google Glass via the follow code:

Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 10);
intent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, 10485760); // 10mb in bytes
startActivityForResult(intent, Constants.TAKE_VIDEO_REQUEST);

It appears Glass ignores these extras though. The user still has the option to tap extend and the file size never stops the video either.

Are these extras used in Glass or is this a bug?

EDIT: Filed a feature request: https://code.google.com/p/google-glass-api/issues/detail?id=469

도움이 되었습니까?

해결책

Those Intent Extras are not actually used by the ACTION_VIDEO_CAPTURE action. Please file a feature request on our issues tracker to track this.

다른 팁

Alain, this is happening to me as well. I submitted Issue 651 for that.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top