是否可以在我的网络应用程序中使用 Google Talk 的音频聊天服务?
我正在用 PHP 构建一个应用程序,我想知道是否可以在我的 Web 应用程序中使用 Google Talk 的音频聊天服务?
I'm building an application in PHP and I was wondering if I can use the Audio chat service from Google talk into my web application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,你可以。 Google 将 Google talk 标识为“[开放式 IM] 服务,以便您可以将自己的客户端应用程序连接到 Google Talk 服务,或者您可以将您的服务与我们的服务连接(联合)。”
要在您的应用程序中运行语音聊天,您可以浏览一下 Google 的解释:
拨打电话
“管理语音通话中重要操作的高级对象称为(适当的)通话。通话对象管理任意数量的点对点对等会话对象,每个对象代表一个对等连接。 Call 对象是发起呼叫、接受或拒绝传入呼叫、监视呼叫状态以及对 CallClient 执行其他高级操作的顶级对象。将进行呼叫所需的所有步骤包装在其 MakeCallTo 方法中。”
接收呼叫:
“来电会触发 PhoneSessionClient 发送其 SignalCallCreate 信号。作为初始设置的一部分,您之前已连接到此信号。收到来电请求时,PhoneSessionClient 创建一个新的 Call 对象并发送此信号,以及因为无论您还是其他人创建了 Call 对象,都会发送 SignalCallCreate,因此找出导致此调用的唯一方法是连接到 Call 对象的 SignalSessionState 信号。”
要获取更多分步详细信息和示例代码,请查看:http://code。 google.com/apis/talk/libjingle/voice_chat.html
Yes you can. Google identify Google talk as "[An open IM] service so that you can hook your own client applications into the Google Talk service, or you can connect (federate) your service with ours. "
To run a Voice Chat into your application you can go through what Google is explain on:
Making a Call
"The high-level object that manages the important actions in a voice call is called (appropriately) Call. A Call object manages any number of peer-to-peer Session objects, each representing one peer-to-peer connection. The Call object is the top level object to make calls, accept or reject incoming calls, monitor the status of the call, and performs other high level actions on call connections. CallClient wraps all required steps for making a call in its MakeCallTo method."
Receiving a Call:
"An incoming call triggers PhoneSessionClient to send its SignalCallCreate signal. You connected to this signal earlier as part of your initial setup. When an incoming call request is received, the PhoneSessionClient creates a new Call object and sends this signal, along with the Call object. Because SignalCallCreate is sent whether you or someone else created the Call object, the only way to find out what caused this call is to connect to the Call object's SignalSessionState signal."
to get more step by step details and sample code, check: http://code.google.com/apis/talk/libjingle/voice_chat.html
只有深入研究 Google API 才能了解。祝你好运。
Only digging in Google API to know about. good Luck.