1

我想编写一个环聊应用程序,以保证环聊将在给定时间结束。这将防止会议随着时间的推移而运行。

断开用户与当前环聊的连接就足够了。我的替代方法是创建一个仅关闭选项卡的浏览器扩展。

反正有没有用环聊API来完成这个?通过文档粗略扫描,我没有看到任何内容。

4

1 回答 1

0

Although there is no specific "quit hangout" or "close hangout" function, if everyone is running the same hangout app, then something could trigger them all to leave the hangout at (or near) the same time or on command. Since hangout apps are just javascript that runs inside the browser, they could all execute something like

location.href = 'http://example.com/hangout-is-over.html';

What causes them all to execute this, where they go, how to get them all to run the app in the first place, and anything else along those lines is something you'll have to solve in the context of your business logic, however.

于 2013-06-04T23:29:01.997 回答