简体   繁体   中英

“Record Video” Menu Item on Google Glass

I want to add a menu item to record video from within my glassware. Once the video recording is done, I want it shared automatically with the contact specified in TimlineItem.setCreator(...);

Is this possible using Mirror API?

Thanks!

PS: I am using the Java client samples as a starting point.

"Maybe". Starting with XE16, the menuItems[].action attribute for TimelineItem can take the string GET_MEDIA_INPUT as a setting. This seems to be intended to let people record other media from the voice prompt screen if they select the menu item.

The documentation says that transcribed text is the only thing currently returned, but this may be what the Hangouts app is using to let you to take a photo and share it as part of the menu action. You may want to try this out to see if it works yet.

You would still need to do the sharing on your end - The Mirror API doesn't handle any cross-user interaction itself, just lets you know who the user is replying to. You would do the reply in the way that makes sense for your system.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM