JuicyDrop – Winamp Music Visualization with JavaScript and Canvas
nihilogic.dk
nihilogic.dk
Did I win?
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
eval(xhr.responseText)
}
}
xhr.open("GET", "http://mywebsite.com/everything_doer.js", true);
xhr.send();"==" is for wimps :-)
Edit: enabled Flash and it's playing. Looks like this is Flash/AS, not JS.
I get the same thing as parent when I visit -- black boxes -- along with an indication in my address bar that plugins have been blocked.
Looking further at the source on index.html, I see this:
soundManager.url = './'; // path to directory containing SoundManager2 .SWF file
So this is very obviously just a shell around a Flash file.This looks like JavaScript controlling a Flash object, not just JavaScript.
Edit: grammar
If Google released a version of Chrome that could camouflage itself as a desktop app (browser-based UI over C++ functionality, but that browser appears as it's own app rather than another damn open tab) I think we would see a flourishing of better desktop apps rather than just everything-you-can-think-of-stuck-in-a-browser.
EDIT: Funny I got downvoted because the responses that follow are probably the greatest amount of insight/interest on the whole page. The rest of the comments are just whining about how this isn't a perfect Winamp emulation lol.
http://developer.chrome.com/apps/about_apps.html
It's pretty damned close to what you're asking for.
If you could run a c++/java app in the background and make RPCs to it from browser events, that would be closer...
https://github.com/rogerwang/node-webkit
It's basically Chromium on top of nodejs. Then you can mix your C++ code with nodejs via addons.
Thanks so much for the responses, these are really great ideas.
i'm not an app developer. i make audio stuff with machine learning tools & I'm a web dev to pay the bills. But in this case all i really want is to build a desktop application (c++,java,whatever) and have a browser-based UI... but not have it appear as a browser tab.
Best viewed via a crap projector thrown onto a hippie's face.
Surely we can simulate that in js as well now?
Fuck, we can probably do it in css.
[1] http://forums.winamp.com/showthread.php?t=214971 [2] http://projectm.sourceforge.net/