[jitsi-dev] Grabbing webcam video


#1

To get myself more familiar with the project, I am trying to write a test class that grabs the video from my webcam and echoes it back to me. I'm looking in the `DirectShowAudio` class located in package `net.java.sip.communicator.impl.neomedia.device`. If I wanted to grab/start my webcam, is this the appropriate place to start poking around? Or can somebody give me a hint as to where I should start looking? Thanks!

···

--


#2

Hello Sam,

На 21 март 2012, 18:28, Sam Bengtson
<sam.bengtson@turnkeycorrections.com> написа:

To get myself more familiar with the project, I am trying to write a test
class that grabs the video from my webcam and echoes it back to me. I'm
looking in the `DirectShowAudio` class located in package
`net.java.sip.communicator.impl.neomedia.device`. If I wanted to grab/start
my webcam, is this the appropriate place to start poking around?

Jitsi uses a multitude of complex platform-specific and Java
APIs/frameworks to implement video capture and playback. In this
context, I find your question too generic. Could you please rephrase
your question to be more specific and to provide details such as what
programming language you'd like to use, which framework you'd like to
leverage, whether you're interested in a certain operating system,
what you mean by "echoes", etc.?

Regards,
Lyubomir


#3

I'm looking at sticking with Java with Windows for the time being. By echoes, I would like to capture my own video from my webcam and stream it back to myself in a JPanel or etc. Eventually, I would like the ability to control the webcam and use SIP to stream to another person (I think I have this part under control). The interface with a webcam is what I'm really looking at here. Thanks

···

On 3/22/2012 2:39 AM, Lyubomir Marinov wrote:

Hello Sam,

На 21 март 2012, 18:28, Sam Bengtson
<sam.bengtson@turnkeycorrections.com> написа:

To get myself more familiar with the project, I am trying to write a test
class that grabs the video from my webcam and echoes it back to me. I'm
looking in the `DirectShowAudio` class located in package
`net.java.sip.communicator.impl.neomedia.device`. If I wanted to grab/start
my webcam, is this the appropriate place to start poking around?

Jitsi uses a multitude of complex platform-specific and Java
APIs/frameworks to implement video capture and playback. In this
context, I find your question too generic. Could you please rephrase
your question to be more specific and to provide details such as what
programming language you'd like to use, which framework you'd like to
leverage, whether you're interested in a certain operating system,
what you mean by "echoes", etc.?

Regards,
Lyubomir


#4

На 22 март 2012, 14:09, Sam Bengtson
<sam.bengtson@turnkeycorrections.com> написа:

I'm looking at sticking with Java with Windows for the time being. By echoes, I would like to capture my own video from my webcam and stream it back to myself in a JPanel or etc.

You may want to look at
MediaConfiguration.createPreview(CaptureDeviceInfo,JComponent) and
MediaServiceImpl.getVideoPreviewComponent(MediaDevice,int,int).


#5

After a little digging, that's exactly the functions that I was looking at, but thanks for confirming!

···

On 3/22/2012 3:52 PM, Lyubomir Marinov wrote:

На 22 март 2012, 14:09, Sam Bengtson
<sam.bengtson@turnkeycorrections.com> написа:

I'm looking at sticking with Java with Windows for the time being. By echoes, I would like to capture my own video from my webcam and stream it back to myself in a JPanel or etc.

You may want to look at
MediaConfiguration.createPreview(CaptureDeviceInfo,JComponent) and
MediaServiceImpl.getVideoPreviewComponent(MediaDevice,int,int).