HTML5へぇ~
大津繁樹
2011年5月24日
HTML5 Radio
var audio = document.getElementById("audio");
audio.addEventListener('MozAudioAvailable', function(event){
var raw = event.frameBuffer;
....
}, false);
context = new webkitAudioContext();
source = context.createBufferSource()
noise = context.createJavaScriptNode(8192,1,1);
source.connect(noise);
...
analyser.connect(context.destination);
var el = updateTransition();
el.addEventListener("transitionend", updateTransition, true);
}
function updateTransition() {
...
}
onmessage = function(event) {
hashtag = "music";
var search = "http://search.twitter.com/search.json?callback=getTwit&rpp=100&q=%23"+hashtag;
importScripts(search);
};
function getTwit(objJSON){
...
}

(0/20)