是否可以使用Google Talk的音频聊天服务到我的Web应用程序? [英] Is there away to use the Audio chat service from Google talk into my web application?

查看:78
本文介绍了是否可以使用Google Talk的音频聊天服务到我的Web应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用PHP构建应用程序,我想知道是否可以将Google Talk的音频聊天服务用于我的Web应用程序?

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?

推荐答案

可以. Google将Google Talk标识为"[一种开放式IM]服务,以便您可以将自己的客户端应用程序挂接到Google Talk服务中,或者可以将其与我们的服务连接(联合)."

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. "

要在您的应用程序中运行语音聊天,可以查看Google的解释:

To run a Voice Chat into your application you can go through what Google is explain on:

  • 拨打电话
  • 接听电话

拨打电话

管理语音呼叫中重要动作的高级对象称为(适当地)呼叫.呼叫对象管理任意数量的对等会话对象,每个对象代表一个对等连接. 呼叫对象是用于进行呼叫,接受或拒绝传入呼叫,监视呼叫状态以及对呼叫连接执行其他高级操作的顶级对象.CallClient在其MakeCallTo方法中包装了进行呼叫的所有必需步骤."

"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."

接听电话:

传入呼叫触发PhoneSessionClient发送其SignalCallCreate信号.您在初始设置的早期阶段已连接到该信号.收到传入呼叫请求时,PhoneSessionClient创建一个新的Call对象并发送该信号以及因为无论您还是其他人创建了Call对象,都会发送SignalCallCreate,所以找出导致此调用的原因的唯一方法是连接到Call对象的SignalSessionState信号."

"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."

要获取更多分步详细信息和示例代码,请检查: http://code.google.com/apis/talk/libjingle/voice_chat.html

to get more step by step details and sample code, check: http://code.google.com/apis/talk/libjingle/voice_chat.html

这篇关于是否可以使用Google Talk的音频聊天服务到我的Web应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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