This article will guide you thru running a production ready meteor.js app on Digital Ocean with Phusion Passenger and ngnix.
- Create a droplet
- Install Phusion Passanger with NGNIX
- Install node.js
- Configure NGNIX
window.AudioContext = window.AudioContext || window.webkitAudioContext || window.mozAudioContext; | |
window.onload = function () { | |
var canvas = document.getElementById('c'), //initialize for Canvas | |
c = canvas.getContext('2d'), | |
cw = canvas.width, | |
ch = canvas.height, //get height and width | |
audiosource = document.getElementById('audio'), | |
lenght = audiosource.duration * 30, //we need the audio duration to know for how long the animation should be captured - 30 FPS |