Monday, September 12, 2011

Video Conferencing Source code in JAVA

My video conferencing project was completed as 300 project for 3rd year.It is not totally completed. There is some bug in here.To solve these bugs and to help other students this project is open.It is first try to make a project open source in this way so it can be modified.Any kind of question against this project will be answered. As this project was created in 3rd year 1st semester and now i nearly completed my BSc. so there will be little description about this.I will try to describe every class and function later when i get the chance.


#######################################################
FEATURE 
#######################################################

1.Multi Chat(Used Threadpole)
2.P2P Chat
3.P2P Audio Chat
4.P2P Video Chat
5.Complete Automated
6.H.263 compression Video 
7.raw audio


PREREQUISITE: 
1. JUST INSTALL jmf-2.1.1 e
2.SQL

LINK OF THE SOURCE CODE

23 comments:

  1. URGENT:::::: YOUR ATTENTION REQUIRED:::::

    what is the username? it is not working..
    when i do login... with username "Ron", it displays "no server found" but the server had been already running.
    please help..
    mail me at: hemant19914@gmail.com

    ReplyDelete
    Replies
    1. @Aman What is the server IP where you running the server?

      Make sure to put it in >>

      public static final String SERVER_ADDRESS="xxx.xxx.xxx.xxx";

      It is on >>

      public interface ClientConstant Class.

      Delete
    2. u just need to add
      public static final String SERVER_ADDRESS="xxx.xxx.xxx.xxx";
      in ClientManager.java file...
      Replace these 'x' to ur ip address of PC on which Server is running

      Delete
    3. But i need help in making video chat from it..i have made a runnable jre of client and server..chatting is working fine..but i couldn't able to use video chat in it..plz reply me asap...

      Delete
  2. Whenever i run your video chat application i getting an error:Server not found on client side and Class not found(MessageSender)

    ReplyDelete
  3. I am unable to run the video chat. Everytime I run it, I get the following message:-
    Track 0 is set to transmit as:
    dvi/rtp, 8000.0 Hz, 4-bit, Mono
    Created RTP session: 127.0.0.1 20004
    Track 0 is set to transmit as:
    JPEG/RTP, 320x240
    - Setting quality to 0.5 on com.sun.media.codec.video.jpeg.NativeEncoder$1$QCA@1abcdd
    Created RTP session: 127.0.0.1 20002
    Start transmission for 60 seconds...
    /127.0.0.1/20006
    - Open RTP session for: addr: 127.0.0.1 port: 20006 ttl: 1
    /127.0.0.1/20008
    - Open RTP session for: addr: 127.0.0.1 port: 20008 ttl: 1
    Cannot create the RTP Session: Can't open local data port: 20008
    Failed to initialize the sessions.

    what should I do so that the video chat works properly?

    ReplyDelete
    Replies
    1. Session created for the IP address is not correct.What do you think?It's the basic of IP communication that 127.0.0.1 is local IP which is only used in your local PC , not to communicate with other PC.

      resolution : Give an static IP.If possible delete this ip from etc/host

      Delete
  4. Please Send me the running code of video conferencing..... Mail me at raghavt007@gmail.com...otherwise upload the running application code..plz

    ReplyDelete
  5. yyup plz upload d code..or mail me at jhalakb7@gmail.com..itz realy urgnt :(

    ReplyDelete
  6. plz provide me running code for video chat at abhikmr012@gmail.com..its urgent..

    ReplyDelete
  7. Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at messengerclient.ClientManager$MessageSender.(ClientManager.java:92)
    at messengerclient.ClientManager.sendMessage(ClientManager.java:74)
    at messengerclient.LoginFrame.but_signinActionPerformed(LoginFrame.java:177)
    at messengerclient.LoginFrame.access$3(LoginFrame.java:168)
    at messengerclient.LoginFrame$1.actionPerformed(LoginFrame.java:53)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$2.run(Unknown Source)
    at java.awt.EventQueue$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    i am getting this error , can i hv some description of this concept.......................

    ReplyDelete
  8. And after enter User Name it shows panel No Server found

    ReplyDelete
    Replies
    1. See the previous comment posted before ... especially My replies on Aman comment.

      Delete
  9. the application is running bt thr is no file sharing is proceed nd even thr is no video conferencing option in client window part..

    ReplyDelete
  10. How to link all the programs together, i mean please explain how to run the programs...since i am not very familiar with packages in java...

    ReplyDelete
    Replies
    1. packages r similar to the folder in disk..It is like to save similar data in one package nd rest in othr..like movies in movie folder and songs in songs folder..;)

      Delete
  11. this code is working well for me. Thanks for sharing. now i want to implement SIP on server and client side to make the clients communicate. how can i do it ? i think SIP server will be installed on fedora (kamilio , n i think there is no windows server of SIP , if i'm wrong please tell me if there any). i need to connect SIP client with SIP server n i don't know where to start. any help is highly appreciated. Thanks in Advance.
    regards,
    Omar Bashir | softwareengineers1@gamil.com

    ReplyDelete
  12. This code is working but, camera/video not work, Can I See, screen shoot / image capture while running this application.
    Thank you.

    ReplyDelete
    Replies
    1. You can see that "Omar" already said that it works. So find yourself.

      Delete
  13. i have these problems with me when click on start video
    ---------------------------------------------------------
    Cannot open audio device for input: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 8000.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
    Cannot open audio device for input: javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 8000.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.
    java.io.IOException: line with format PCM_SIGNED 8000.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian not supported.

    ReplyDelete
    Replies
    1. From the exception it seems your audio capture device sampling is not supported by jmf. Please have a look at the requirement from https://github.com/robelsharma/VideoConference. You may also try by changing 8000.0 Hz to 16000.0 Hz by JMF manager app.

      Delete
  14. Hi Sir .I am unable to see video and audio .getting 'unable to handle format: ULAW/rtp, 8000.0 Hz, 8-bit, Mono'.Please help.punnamsudheer@gmail.com

    ReplyDelete
    Replies
    1. This project only support h.263 video and raw audio. ULAW is not supported. You have to open JMF manager from program and set the valid audio codec.

      Delete

How to enable hotspot in TPG iPhone

 By default, the hotspot does not work on the phone. It will ask you to contact the provider. This video will help you bypass the network ...