Swing isn't the answer, but you can capture video using JMF. See
https://coderanch.com/t/628706/java/java/capture-video-JMF for a recent discussion that points to some example code. You still have a lot of things to think about with respect to sending video over the network and displaying it, but it's a start. This is a sizable project that
you should expect to spend a lot of time on.