I've been going through all the tutorials on how to get your pi camera to a webpage and hadn't found one that uses Websockets. So I tried it out and it worked quit well.
what you need:
- Autobahn python websocket server
- pip install autobahn[twisted]
- picamera python library
- My source at github:
- You will have to copy the www directory to your '/usr/local/www' or change the source code to fit
The sample webpage on the github is a basic websocket client webpage that provides a couple of features.
The stream is smooth but still delayed like most streams to the web.
I may make updates depending on interest but its not a priority on my list of pi projects.
Let me know in the comments :-)