Google Mirror API视频 [英] Google Mirror API Video

查看:82
本文介绍了Google Mirror API视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

google glass mirror API上的视频路线图是什么?该API是否将按照玻璃演示视频 http://www.youtube.com/watch?v=v1uyQZNg2vE 吗?

What is the roadmap for video on the google glass mirror API? Will the API allow for streaming video to or from the device as shown in the glass demo video http://www.youtube.com/watch?v=v1uyQZNg2vE ?

推荐答案

没有发布Mirror API的路线图.开发人员预览的部分动机是要弄明白这一点.

There is no published roadmap for the Mirror API. Part of the motivation for our developer preview is to figure that out.

首先,请澄清一下,该视频中显示的流媒体是Google+环聊.这是Glass内置的功能.

First, just to clarify, the streaming shown in that video is a Google+ Hangout. This is a feature that's built into Glass.

更新:Glass现在支持视频流.您可以在此处找到完整的文档.

Update: Glass now supports video streaming. You can find the full docs here.

要添加视频流,请进行多部分POST,其中将视频的URL作为其中一部分,如下所示:

To add a video stream make a multipart POST with the URL to the video as one of the parts, like this:

POST /upload/mirror/v1/timeline HTTP/1.1
Host: www.googleapis.com
Authorization: Bearer {auth token}
Content-Type: multipart/related; boundary="mymultipartboundary"
Content-Length: {length}

--mymultipartboundary
Content-Type: application/json; charset=UTF-8

{ "text": "Skateboarding kittens" }
--mymultipartboundary
Content-Type: video/vnd.google-glass.stream-url

http://example.com/path/to/kittens.mp4
--mymultipartboundary--

这篇关于Google Mirror API视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆