Skip to content

Commit

Permalink
Add note about how to stream remotely, fixes #230
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Jul 9, 2014
1 parent 7b7bc68 commit 80f9e3c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ Example provided by [hepin1989](https://github.com/hepin1989). Thank you! This i
1. Run [StreamServer](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture-examples/webcam-capture-live-streaming/src/main/java/us/sosia/video/stream/agent/StreamServer.java) - this will open the webcam device and start listening for incoming streaming requests.
2. Run [StreamClient](https://github.com/sarxos/webcam-capture/blob/master/webcam-capture-examples/webcam-capture-live-streaming/src/main/java/us/sosia/video/stream/agent/StreamClient.java) - this will connect to the StreamServer and start displaying image from the remote camera.

The server / client hostname is set by default to ```localhost``` but you can change it to reflect the real IP / hostname.
The server / client address is ```localhost``` by default to run client and server on the same machine, but if you want to stream over the network, you need to change it to reflect your _real_ IP address (server must bind to ```eth0``` instead of ```lo``` interface to be visible from the NAT).

#### Notes

1. The code supports sunny-day scenario only, just to demonstrate the idea, so there are is no complex error checking statements and the code may behave in unexpected manner when launched in _real_ network.
2. It uses [Xuggler](https://github.com/artclarke/xuggle-xuggler) which seems to be discontinued.
3. Remember, this example is to present an idea, so if you need enhancement or bug fix, please implement it and send pull request to share it with community. Be creative :)


4. To perform streaming over the network you need to change address in server from ```localhost``` to your real IP address (e.g. such as ```192.168.1.10```). I'm not sure how it works with the IPv6 support - feel free to test it.

0 comments on commit 80f9e3c

Please sign in to comment.