3

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?

jmac
  • 7,078
  • 2
  • 29
  • 57
Razan
  • 43
  • 6
  • include google.com and tell the user to use gtalk with their id:) – zod Jan 06 '11 at 18:16
  • I was hoping they would use the same ID they used to log into my application...so they don't have to log in twice – Razan Jan 06 '11 at 18:19

2 Answers2

3

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
  • Receiving a Call

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

M. A. Kishawy
  • 5,001
  • 11
  • 47
  • 72
0

Only digging in Google API to know about. good Luck.

devasia2112
  • 5,844
  • 6
  • 36
  • 56