Domanda

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

È stato utile?

Soluzione

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.

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top