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.
Google Glass Video Capture Intent ignores limit and size extras
-
04-07-2023 - |
Pergunta
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
Solução
Outras dicas
Alain, this is happening to me as well. I submitted Issue 651 for that.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow