简体   繁体   English

Google Glass上的“录制视频”菜单项

[英]“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(...); 录制完成后,我希望它与TimlineItem.setCreator(...)中指定的联系人自动共享。

Is this possible using Mirror API? 使用Mirror API是否可以实现?

Thanks! 谢谢!

PS: I am using the Java client samples as a starting point. PS:我以Java客户端样本为起点。

"Maybe". “也许”。 Starting with XE16, the menuItems[].action attribute for TimelineItem can take the string GET_MEDIA_INPUT as a setting. 从XE16开始,TimelineItem的menuItems[].action 。action属性可以将字符串GET_MEDIA_INPUT用作设置。 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. 该文档说,转录的文本是当前返回的唯一内容,但这可能是Hangouts应用程序用来让您拍照并在菜单操作中共享的内容。 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. 您仍然需要在终端上进行共享-Mirror API本身不会处理任何跨用户交互,而只是让您知道用户在答复谁。 You would do the reply in the way that makes sense for your system. 您将以对您的系统有意义的方式进行答复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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