specification:
- php server storing a server.
- the first person opening a file becomes the master and is in charge to save to the server
- all other users open webrtc connection to the master and keep the document in sync with him
- if it makes things easier, only allow one user at a time to edit a block (paragraph, list, section)
todo:
- check if and how to get webrtc to work without a node server.
- try to convert a chat example in a text editor.
serverless webrtc chat:
- https://github.com/cjb/serverless-webrtc/ (sample code; with link to a live demo)
- http://blog.printf.net/articles/2013/05/17/webrtc-without-a-signaling-server/
- http://blog.printf.net/articles/2014/07/01/serverless-webrtc-continued/
the sample work by copy pasting string. it should also work with a php server for initializing the connection.
websockets in php? https://github.com/ratchetphp/Ratchet
https://scotch.io/tutorials/building-a-real-time-markdown-viewer
links:
- chat demo with php server: https://github.com/pusher/pusher-webrtc-chat-demo
- http://blog.printf.net/articles/2013/05/17/webrtc-without-a-signaling-server/
- fancy collaboration library by mozilla: https://togetherjs.com
- http://sharejs.org/
- https://github.com/tOkeshu/scratchpad/blob/master/scratchpad.js
- http://stackoverflow.com/questions/21894411/peer-to-peer-collaborative-text-editing
- http://stackoverflow.com/questions/17063089/text-chatting-using-webrtc-and-node-js
- https://bitbucket.org/webrtc/codelab
- http://stackoverflow.com/questions/17161287/webrtc-video-chat-with-ajax-instead-of-websocket-possible
- https://developer.mozilla.org/en-US/docs/Web/Guide/API/WebRTC
- http://h30499.www3.hp.com/t5/HP-Software-Developers-Blog/Build-A-Live-Editor-With-WebRTC/ba-p/6144781#.VgLGA87m9GE
- https://github.com/muaz-khan/WebRTC-Experiment/blob/master/Signaling.md
- http://muaz-khan.blogspot.ch/2013/12/i-want-to-learn-webrtc.html
- http://blog.felixhagspiel.de/posts/create-your-own-videochat-application-with-html-and-javascript