• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

voice calls

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My site is developed using jsp,
How two users in a site can make voice call to each other using java.

Please give the solution for it.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's quite a big task you've given yourself. In fact, my impression is that you're fundamentally underestimating what is involved. The only way I could see "the solution" provided to you in a forum post is if that post pointed you to a $20,000 software package that you could integrate in your web app.

Servlets and JSPs will have very little to do with it. Obviously you will need some client-side component that can record sound - if you want to use Java that would mean an applet (with all the security issues that come with that). Otherwise Flash might be an option. This client-side component then needs a server-side component to which it sends the compressed audio, and the server needs to have an open connection to some other client to which to send this audio where it would be decompressed and played.

That's the view from 10km up - there are lots of hard problems to solve before you'd have something decent. Because of that I predict that you will end up not doing this. Maybe add a chat functionality instead?
 
manohar gunturu
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can't we do it using sockets
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, sockets would be used to communicate between the clients and the server. But that goes without saying, as any connection over a TCP/IP network uses sockets.

Or are you are asking whether it's possible to open a direct socket connection between the two clients? If so, that's possible in principle, but creates new problems regarding how to get through firewalls and such.
 
Ranch Hand
Posts: 331
Python Ruby Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Manohar, you could use some cloud telephony provider like twilio/plivo to create solution. One such java client is https://github.com/plivo/plivohelper-java.
I had used a bit of this service in a sinatra application a while ago. I think this could be your possible solution rather than reinventing the wheel/going too low level.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic