According to current getUserMedia spec, getUserMedia function is:
navigator.getUserMedia({audio: true, video: true}, gotStream, gotError);
which didn't work. What worked was:
| /* Following canvas-based Perlin generation code originates from | |
| * iron_wallaby's code at: http://www.ozoneasylum.com/30982 | |
| */ | |
| function randomNoise(canvas, x, y, width, height, alpha) { | |
| x = x || 0; | |
| y = y || 0; | |
| width = width || canvas.width; | |
| height = height || canvas.height; | |
| alpha = alpha || 255; | |
| var g = canvas.getContext("2d"), |
wget http://people.apache.org/~nehanarkhede/kafka-0.7.0-incubating/kafka-0.7.0-incubating-src.tar.gz
tar xvzf kafka-0.7.0-incubating-src.tar.gz
cd kafka-0.7.0-incubating-src
From @csanz's gist
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
mkdir Jade Stylus
cp -rf ~/Library/Application\ Support/TextMate/Bundles/Jade.tmbundle ./Jade/
cp -rf ~/Library/Application\ Support/TextMate/Bundles/Stylus.tmbundle ./Stylus/
| parseSDP = (text) -> | |
| return if not text | |
| lines = text.split('\r\n') | |
| readSession lines | |
| readSession = (lines) -> | |
| session = {} | |
| line = null | |
| while line = lines.shift() | |
| name = line.charAt(0) |
| -- TLC - The Tiny Lua Cocoa bridge | |
| -- Note: Only tested with LuaJit 2 Beta 9 on x86_64 with OS X >=10.7.3 & iPhone 4 with iOS 5 | |
| -- Copyright (c) 2012, Fjölnir Ásgeirsson | |
| -- Permission to use, copy, modify, and/or distribute this software for any | |
| -- purpose with or without fee is hereby granted, provided that the above | |
| -- copyright notice and this permission notice appear in all copies. | |
| -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| # Delayed resize task runner | |
| class DeferredResizer | |
| constructor: -> | |
| @timer = null | |
| @tasks = [] | |
| addTask: (task) -> | |
| @tasks.push(task) if @tasks.indexOf(task) is -1 | |
| doTasks: => | |
| @timer = null |
| if process.hrtime | |
| console.log "using process.hrtime for timing" | |
| clock = process.hrtime | |
| else | |
| console.log "using microtime for timing" | |
| Microtime = require('microtime') | |
| clock = (s) -> | |
| t = Microtime.nowStruct() | |
| t[1] *= 1000 # microseconds to nanoseconds | |
| if s |
| import os | |
| import time | |
| def terminal(cmd): | |
| local("osascript -e 'tell application \"Terminal\" to do script \"%s\"'" % cmd) | |
| def debugger(opts): | |
| url = "http://0.0.0.0:8080/debug?port=5858" | |
| build() | |
| terminal("node %(opts)s %(cwd)s/app.js" % { "opts": opts, "cwd": os.getcwd() }) |
| 0 info it worked if it ends with ok | |
| 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'publish' ] | |
| 2 info using [email protected] | |
| 3 info using [email protected] | |
| 4 verbose publish [ '.' ] | |
| 5 verbose read json /Users/don/dev/github/node-tld/package.json | |
| 6 verbose cache add [ '.', null ] | |
| 7 verbose cache add name=undefined spec="." args=[".",null] | |
| 8 verbose parsed url { protocol: null, | |
| 8 verbose parsed url slashes: null, |