问题标签 [google-mirror-api]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
688 浏览

google-mirror-api - Playing video in the mirror API

I'm a little confused about playing videos in the Mirror API

Are there any restrictions for using HTML tags in "html" field?...

Alain says

Blocked HTML elements: These elements, and their contents, are removed from html payloads. Document headers: head, title Embeds: audio, embed, object, source, video

However looking at the documentation ...

https://developers.google.com/glass/v1/reference/timeline/insert

Accepted Media MIME types: image/* , audio/* , video/*

So ... I'm guessing that I can attach video but not embed video? Seems like a subtle distinction, so an app would have to have a main HTML card and a sub menu choice to view a video. Is this correct?

0 投票
2 回答
214 浏览

google-mirror-api - 创建具有实时坐标距离的卡片

我知道我可以在时间线卡片上渲染地图。我可以创建一张带有一组坐标的卡片,以显示与这些坐标的距离的实时更新吗?

不显示地图,只有一个数字(米、英尺)随着用户的移动而更新。

0 投票
1 回答
110 浏览

google-mirror-api - 为什么我的订阅有 ID“时间轴”?

在测试我的mirror-api gem时,我注意到在订阅:列表中调用我的订阅 ID“时间轴”的 ID。这是一个错误还是期望的行为?我认为它已关闭,因为 subscriptions:get 将 ID 作为参数。

0 投票
2 回答
559 浏览

google-mirror-api - Mirror API 是否支持 Node JS..?

我有一个完全用 Node JS 构建的服务。那么,我怎样才能将它与 Mirror API 集成,比如 Share Entities..?我的意思是,它和只解析 JSON 一样好吗?

0 投票
3 回答
7515 浏览

google-mirror-api - Google_AuthException:invalid_grant

我正在尝试使用我的值设置 config.php,但我收到了这个致命错误:

致命错误:未捕获的异常“Google_AuthException”带有消息“获取 OAuth2 访问令牌时出错,消息:'invalid_grant'。

我输入了客户端 ID、秘密、简单 API 密钥、位置和 sqlite 数据库,如文档所述: https ://developers.google.com/glass/quickstart/php

知道我做错了什么吗?

提前致谢!

0 投票
1 回答
380 浏览

google-mirror-api - 谷歌眼镜开发另一个

想知道是否有人知道为另一个人开发 Google Glass 应用程序。Glass Explorer 计划中的某个人要求我帮助他们开发应用程序(我很乐意这样做),但看起来我需要在 API 控制台中以该人的身份登录。它是否正确?我有什么方法可以单独制作原型吗?

0 投票
2 回答
678 浏览

google-mirror-api - 谷歌玻璃清除缓存

我试图调整图像大小以适应时间线模板。(如果重要,我正在使用时间线的 html 属性)但是,它没有正确呈现它。我很沮丧。然后我发现玻璃使用的是相同的图像。我只是更改了图像的名称和 url,它起作用了。有没有办法清除缓存?可能存在这样一种情况,您在服务器端更改图像并让相同的时间线项目(例如固定项目)以其他时间间隔访问它们。想法?

更新

在问题跟踪器中提交的请求

https://code.google.com/p/google-glass-api/issues/detail?id=30&thanks=30&ts=1367387959

0 投票
1 回答
185 浏览

google-mirror-api - Can you create more than one level of nested timeline cards on Glass?

If I create a top level timeline card I can create a single level of nested cards by giving them the same bundleId as the parent.

Can I create a second level of nesting?

0 投票
2 回答
519 浏览

google-mirror-api - How do timeline items get removed?

I was playing with the sample app for glass api - sent a bunch of items to my timeline, but now I cant figure out how to remove them? Will they timeout on their own eventually?

0 投票
1 回答
203 浏览

google-mirror-api - 我们可以为使用时间轴的 htmlPages 属性形成的卡片设置不同的菜单项吗?

我正在使用timeline.html 作为封面创建一个包,并使用timeline.htmlPages 属性提供其他子页面。我想为封面页和每个子页设置不同的菜单项。目前,我没有看到任何方法可以为每个 htmlPage 和/或封面页设置一个 menuItem。我错过了什么吗?

我有一个解决方法,我在 Glass Foundry 期间做过:我创建了一个随机包 id,然后我循环遍历我的所有 html 页面并使用相同的包 id 插入了一个时间线项目,具有相同的封面页和单个 htmlPages我想要该索引的任何菜单项。这可以按我的意愿工作,但是由于这会导致 N 次 insert() 调用,因此玻璃杯需要很长时间才能接收到捆绑包[也消耗了我的 api 配额作为副作用]