Skip to content

Commit

Permalink
Fix notes in live streaming example readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Feb 17, 2014
1 parent 2671302 commit f0da24d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions webcam-capture-examples/webcam-capture-live-streaming/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
## Webcam Capture Live Streaming Example

This example demonstrate how to encode set of buffered images obtained
from ```Webcam``` instance, transcode into h264 stream and send to remote peer
from ```Webcam``` instance, transcode into h.264 stream and send to remote peer
where it is decoded and rendered in panel.

Example provided by [hepin1989](https://github.com/hepin1989). Thank you!
Example provided by [hepin1989](https://github.com/hepin1989). Thank you! This is wonderful piece of the good code :)

### How To Use

1. Start
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.

#### 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 :)


0 comments on commit f0da24d

Please sign in to comment.