Check out this thread
https://gfy.com/webmaster-q-and-fucki...-ucam-xxx.html
I learned a lot from that thread
Here's one I'm still working on using the Bonga API (You have to modify the scripts to use the Bonga API but it ain't that hard).
Live XXX Chat
To build sites using the webcamwiz/Imlive API go to -
API/overview - Webcamwiz