Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7827011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:40:22+00:00 2026-06-02T09:40:22+00:00

I want to create a C/S chat program in java using socket, and now

  • 0

I want to create a C/S chat program in java using socket, and now I want to add online video-chat feature to it. After google I found jmf and followed some tutorials, but I don’t really like it because every client must install jmf and register webcam( or other audio devices).

So I looking forward to an alternative lib without jmf and found libs like (juv, xuggle), and then works well. Unfortunately, they can only drive the webcam, can’t access the audio device.

Can anyone give me some advice?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T09:40:26+00:00Added an answer on June 2, 2026 at 9:40 am

    I have recently been looking at webcam options and I settled on using GStreamer. It does need separate native libraries but you may be able to bundle these with your program (check the license).

    The good news is that it has built in video and audio streaming. The bad news is that it takes a bit of time to get your head around as it is incredibly flexible. Here is an example of setting up streams from the command line on Windows.

    Send video:
    gst-launch ksvideosrc ! queue ! video/x-raw-yuv,width=320,height=240,framerate=4/1 ! videorate ! videoscale ! ffmpegcolorspace ! queue ! smokeenc ! queue ! udpsink host=[TARGET_IP_ADDRESS] port=5000
    
    Receive video:
    gst-launch udpsrc port=5000 ! smokedec ! autovideosink
    
    Send audio:
    gst-launch audiotestsrc ! audioconvert ! audio/x-raw-int,channels=1,depth=16,width=16,rate=44100 ! rtpL16pay  ! udpsink host=[TARGET_IP_ADDRESS] port=5001
    
    Receive audio:
    gst-launch udpsrc port=5001 ! "application/x-rtp,media=(string)audio, clock-rate=(int)44100, width=16, height=16, encoding-name=(string)L16, encoding-params=(string)1, channels=(int)1, channel-positions=(int)1, payload=(int)96" ! rtpL16depay ! audioconvert ! audioresample ! directsoundsink
    

    The sound streams are adapted from the answer here:

    moving audio over a local network using GStreamer

    For Linux change ksvideosrc to v4l2src and directsoundsink to alsasink. Anything possible on the command line is possible from within Java using the gstreamer-java library:

    http://code.google.com/p/gstreamer-java/

    And here are some more useful links:

    GStreamer Manual

    Cheat Sheet

    Webcam Examples

    Streaming Info

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, I am using .net 3.5. I want to create an online chat system
I want to create a public live chat application using rails 3. I found
I want to create SOCKET chat(server + clients) with private messaging. When client write
i want to create a chat app using flex 4.5 mobile project for android
I am working in android. I want to create a chat room dynamically using
i want to create a web chat/forum application that is google wave alike. when
I want to create a chat room using HTML5 web sockets, but am pretty
I want create a excel with Apache POI in java and I must insert
i want create image animation , i have 50 images with png format now
I am working on a java program that is essentially a chat room. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.