在Google Glass的网页上显示视频 [英] Displaying Video on Webpage from Google Glass

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

问题描述

这个周末我刚拿起我的杯子!非常激动. :)我用Google Glass录制了视频,将其共享给我的应用程序,然后与我的Web应用程序建立了对Mirror API的oauth连接,并检索了视频内容类型="video/mp4"和内容URL(使用PHP $ attachment -> getContentUrl())如下:

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.4E88965373ECF16E5A9473A2861275016ECFEB70&key=lh1

我可以使用该链接进行嵌入还是应该使用其他API来获取正确的URL,以便可以在自己的网站上显示视频(例如Google Plus,Youtube API)?

Can I use that link for embedding or should I look towards a different API for getting the proper URL so I can display my video on my website (e.g. Google Plus, Youtube API)?

谢谢!

推荐答案

不要假定这些视频URL是稳定的.它们仅打算用于您的API操作范围.

Don't assume that these video URLs are stable. They're only intended to be used for the scope of your API operation.

如果您要将视频嵌入网站中,请考虑使用其他视频托管API,例如 YouTube a>.

If you'd like to embed the video in a website, consider a different video hosting API like YouTube.

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

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