尝试了解 Youtube Leanback 的实现
在 youtube Leanback 新应用程序中,我可以使用 Android 手机控制计算机上的全屏浏览器。 我试图理解 - 它是如何工作的?
例如,当我按“播放”时,电影开始播放。现在,当我按下播放键时,它可能会向 YouTube 服务器发送“HTTP Post”; YouTube服务器如何将“播放”请求推送到浏览器? 带有推送通知?可能不会,因为它不是可靠的服务 也许这个应用程序是用 GAE Channel-API 编写的,然后我的浏览器和服务器之间有持续的通信......
有任何线索吗?
in youtube leanback new application I can control the full-screen browser on my computer, using my android phone.
I'm trying to understand - how does it work?
For example, when I press "play" the movie starts playing. Now when I press play, it probably sends "HTTP Post" to the youtube server; how does the youtube server push the request to "play" to the browser?
with push notification? probably not, because it's not a reliable service
maybe this application is written with the GAE Channel-API, and then there's a continuous communication between my browser and the server...
Any clue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我现在非常确定他们使用 Channel-API。可能与通过 Google App Engine 平台向公众开放的方式不同,但由于 YouTube 与 Google 有关,我认为这就是它的做法。
I'm quite sure now they use the Channel-API. Might not be the same as is opened for the public with the Google App Engine platform, but since youtube has to do with Google, I think that is how it is done.