google-mirror-api

Displaying Video on Webpage from Google Glass

随声附和 提交于 2019-12-06 13:32:01
I just picked up my Glass this weekend! Very excited. :) I recorded a video with my Google Glass, shared it to my application, then with my web app made an oauth connection to the Mirror API and retrieved a video content type="video/mp4" and content URL (using PHP $attachment->getContentUrl()) that looks like this: http://redirector.googlevideo.com/videoplayback?id=f4046ce94ae5d248&itag=22&source=picasa&cmo=sensitive_content%3Dyes&ip=0.0.0.0&ipbits=0&expire=1378342900&sparams=id,itag,source,ip,ipbits,expire&signature=2B5CAA41215B0B582CD88D9281E8DCC6BCB8A11C

Google Glass: Performing “Click” event or something similar

荒凉一梦 提交于 2019-12-06 09:49:14
问题 Please have a look at the following code <article style="left: 640px; visibility: visible;"> <section> <table> <tbody><tr><td><center>154 de 500</center></td></tr> <tr><td>First Page</td></tr> </tbody></table> </section> </article> This generates the following UI When I select the "First Page" text, I need that text to change into "You Clicked This". How can I do this? Is there any event handler for click or any other way to do this? I am sorry if this is a simple question, this is the first

Google Mirror API throwing BadStatusLine exception (Python)

自作多情 提交于 2019-12-06 06:33:40
问题 When using the Mirror API, I randomly get a "BadStatusLine" exception from several API calls, including timeline().insert and timeline.list . From trolling around SO for simliar problems in python, I suspect this is some kind of malformed response from the server. It seems to happen randomly and possibly after a period of not using the API. Here's a sample stack trace: Traceback (most recent call last): File "service.py", line 61, in receive_message self.process_user_chat(msg) File "service

Google Glass GDK Authentication using PHP

天涯浪子 提交于 2019-12-05 16:27:29
I am trying to follow this link to authenticate user in GDK: https://developers.google.com/glass/develop/gdk/authentication It gives example in Java, but my webpage uses PHP. I know I have to use https://github.com/google/google-api-php-client/blob/master/src/Google/Service/Mirror.php I am stuck with service auth page making call to mirror.accounts.insert. Not sure how to implement the service auth page. Any example would be great help. [SOLVED] Working example is here: http://goo.gl/DVggO6 The service auth page is the page that is opened when that user turns on your application in MyGlass.

Multipart POST request Google Glass

陌路散爱 提交于 2019-12-05 16:20:44
I am trying to add an attachment to my timeline with the multipart encoding. I've been doing something like the following: req = urllib2.Request(url,data={body}, header={header}) resp = urllib2.urlopen(req).read() And it has been working fine for application/json. However, I'm not sure how to format the body for multipart. I've also used some libraries: requests and poster and they both return 401 for some reason. How can I make a multipart request either with a libary(preferably a plug-in to urllib2) or with urllib2 itself (like the block of code above)? EDIT: I also would like this to be

Google Glass: Developing and testing using PlayGround

﹥>﹥吖頭↗ 提交于 2019-12-05 07:20:44
问题 I am not a person with the Google glass and I am not a person registered glass explorer. It seems like we can't develop for glass at the moment. - https://developers.google.com/glass/quickstart/java Is this is it or is there another way around? I have seen a post from another member, developing a prototype with the playground. He mentioned about "uploading" HTML files to the playground, so, I also need to develop a UI prototype. But I have never seen a way to upload anything to play ground

How does New York Times get their icon next to the “just now” time indicator on their Glass Timeline cards?

我的未来我决定 提交于 2019-12-05 07:04:38
I'm building a Google Glass app and notice that New York Times has their little New York Times icon to the right of the "Just Now" time indicator in the lower right of each card. How are they doing this? Is this something I can upload in the API Console, or do I have to manually add this as HTML in each HTML page card? And how do you do it in the Glass browser? I don't see any examples in the templates. Any help is appreciated! These icons are set up during the launch process for Glassware. Follow the steps on this page to submit your Glassware for launch review. The little icon in the lower

How do I send bundled cards all at the same time?

不羁的心 提交于 2019-12-05 05:10:18
I've set up a Java application where I'm creating a bundle of 4 cards. The problem is that all the cards do not come in at once. Some times just one shows up, then a few seconds or minute later the other cards show up. How do I get them to all show up on the headset at the same time? edit: I tried HTML paging and that didn't work and now I think I'm more confused. So in my senario here I want to send a bunch of landmarks to the user that they can navigate to. I want all the landmarks in a bundle, I want a cover to the bundle that isn't an option in the bundle saying "here are your landmarks",

Deadline exceeded while posting multiple cards to timelines with a video attached

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 15:45:59
问题 first of all i'm using python over gae and i'm trying to push a card with a video attachment to all the users that visited my glassware. This is the code: #posting video media_link = util.get_full_url(self, '/static/video/man_on_the_moon.mp4') resp = urlfetch.fetch(media_link, deadline=2000) media_video = MediaIoBaseUpload(io.BytesIO(resp.content), mimetype='video/vnd.google-glass.stream-url', resumable=True) users = Credentials.all() for user in users: creds = StorageByKeyName(Credentials,

How I get menu click event

送分小仙女□ 提交于 2019-12-04 14:14:37
问题 I created a custom menu using mirror api . menu created method on MainServlet public List<MenuItem> makeDealMenu(String appBaseUrl) { String dealMenuIconUrl = appBaseUrl + "static/images/deal_50.png"; MenuValue dealMenuValue = new MenuValue(); dealMenuValue.setDisplayName("DEAL"); dealMenuValue.setIconUrl(dealMenuIconUrl); List<MenuValue> dealMenuValueList = new ArrayList<MenuValue>(); dealMenuValueList.add(dealMenuValue); MenuItem dealMenuItem = new MenuItem(); dealMenuItem.setAction("CUSTOM