hello
can anyone help me in telling how to make video chat possible in java web application??
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
hello
can anyone help me in telling how to make video chat possible in java web application??
Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.
Thanku
I have gone through all the details.
Can you please reply to my query.
--- Update ---
you there?
One good source for learning java is the tutorial. This link indexes many topics:
The Really Big Index
If you don't understand my answer, don't ignore it, ask a question.
But I want to now about video chat in java
--- Update ---
can u please help me out of this?
--- Update ---
can u please help me out of this?
That is too complicated a project for someone that wants to learn java.
Start with the basics and build your knowledge before trying something so complicated.
If you don't understand my answer, don't ignore it, ask a question.
Actually I m good with my basics
I just want to learn how to do chatting using java..
can u please help to guide is this possible with socket programming?
I think sockets can be used to send and receive data between internet sites.
If you don't understand my answer, don't ignore it, ask a question.
So Is there any other option to make live chat?
and how can we do live video chating?
Sockets are a basic class. Other classes build on them. I imagine that someone has written some higher level classes and methods that will help you. Those classes are not part of Java SE. You'll have to do a search on the internet to see what is available.
If you don't understand my answer, don't ignore it, ask a question.
Are you saying that these classes are a part of the java EE
The Socket class is part of the Java SE. Not the others.
If you don't understand my answer, don't ignore it, ask a question.
But we can do socket programming in advanced java like in jsp and servlet for the web development
so i m asking that if we want to give a live audio video and text chat to the customers..how will we do that..Is this is possible by using Socket programing or can u give me a advice what should i do...please help its very urgent..
Sorry, video chat is too complicated. I don't know if I have seen code to do that.
There are lots of text chat examples here on the forum and on the internet. Do a Search for them.
If you don't understand my answer, don't ignore it, ask a question.
Yes I got to know that when we connect java code with any hardware ( Web cam) then it will create many complications
--- Update ---
Do you now how to do send message from one user to another in java?
One way is to use Sockets.
If you don't understand my answer, don't ignore it, ask a question.
After a quick google, I found that it is very possible for video chat and that many people have done this. Eether Java is really the best language... probably not, but i cant say. Try looking there for more info, but here is something particularly helpful ^.^
videochat - how to build a video chat program in java without jmf? - Stack Overflow
Can you send me the code of text chat using sockets?
Do a Search on this forum (or on the internet) for sample code.
If you don't understand my answer, don't ignore it, ask a question.
I have searched but the code is not working..
Can you explain what "not working" means?the code is not working
If there are error messages, copy the full text and paste it here.
If you don't understand my answer, don't ignore it, ask a question.
my server is not allowing connections
Sorry, I don't know anything about your server.
If you don't understand my answer, don't ignore it, ask a question.
Thanks No problem
I will try...
Can you plz help me to run this code
Conversation started today
Neha Dhingra
17:47
Neha Dhingra
TcpClient.java
package tcpserver;
import java.io.*; import java.net.*;
public class TCPClient {
public static void main(String argv[]) throws Exception { String sentence; String modifiedSentence; BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in)); Socket clientSocket = new Socket("localhost", 6789); DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream()); BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); sentence = inFromUser.readLine(); outToServer.writeBytes(sentence + '\n'); modifiedSentence = inFromServer.readLine(); System.out.println("FROM SERVER: " + modifiedSentence); clientSocket.close(); } }
TcpServer.java
import java.io.*; import java.net.*; public class TCPServer {
/** * @param args the command line arguments */ public static void main(String argv[]) throws Exception { String clientSentence; String capitalizedSentence; ServerSocket welcomeSocket = new ServerSocket(6789);
while(true) { Socket connectionSocket = welcomeSocket.accept(); BufferedReader inFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream( ))); DataOutputStream outToClient = new DataOutputStream(connectionSocket.getOutputStream( )); clientSentence = inFromClient.readLine(); System.out.println("Received: " + clientSentence); //capitalizedSentence = clientSentence.toUpperCase() + ":from server\n"; capitalizedSentence= "im grt\n"; // String sentence; BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in)); // capitalizedSentence=inFromUser.readLine(); outToClient.writeBytes(capitalizedSentence); } } }