On my dev server
##Install git
su
apt-get install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
| package djb2 | |
| // For when you ever need to implement a dictionary hash function, | |
| // that's good enough, simple and fast. | |
| // | |
| // WARNING: | |
| // Not cryptographicly secure! | |
| // | |
| // Source: https://en.wikipedia.org/wiki/DJB2 | |
| // |
| { | |
| "franceDepartments": { | |
| "01": { | |
| "name": "Ain", | |
| "bounds": { | |
| "n": "46.519953", | |
| "e": "6.170198", | |
| "s": "45.611093", | |
| "w": "4.728067" | |
| } |
| mySignaller.signalMessage({ | |
| "ice": iceGathr.getLocalParameters(), | |
| "dtls": dtlsTr.getLocalParameters(), | |
| "recvAudioCaps": recvAudioCaps, | |
| "recvVideoCaps": recvVideoCaps, | |
| "sendAudioCaps": sendAudioCaps, | |
| "sendVideoCaps": sendVideoCaps | |
| }); |
| navigator.mediaDevices.getUserMedia ({ | |
| "audio": true, | |
| "video": { | |
| width: 640, | |
| height: 360, | |
| facingMode: "user" | |
| } | |
| }).then( | |
| gotStream | |
| ).catch( |
On my dev server
##Install git
su
apt-get install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI