Archive: adapting AVS to HTML5


18th January 2013 13:37 UTC

adapting AVS to HTML5
is there maybe already an adaption to HTML5 made or is someone interested to start a project to do that?


19th January 2013 00:11 UTC

erm.. no! unconed has ported an old preset of his to javascript though

http://acko.net/blog/js1k-demo-the-making-of/


19th January 2013 15:55 UTC

There's a html5 version of milkdrop if you're interested: http://blog.nihilogic.dk/2009/03/jav...-milkdrop.html


An actual html5 AVS clone would be a lot of work.
Although with Adobe adding all the photoshop blend modes to the css/canvas specs and WebGL it should be possible from the rendering perspective.
You'd also need to interrupt the language (maybe some regex and eval could help) and clone all the drawing functions and popular apes.
Also what is the actual state of the audio api? http://en.wikipedia.org/wiki/HTML5_Audio :rolleyes:


28th January 2013 14:07 UTC

Originally posted by QOAL
There's a html5 version of milkdrop if you're interested: http://blog.nihilogic.dk/2009/03/jav...-milkdrop.html


Although with Adobe adding all the photoshop blend modes to the css/canvas specs and WebGL it should be possible from the rendering perspective.
unconed and nemoorange are experimenting a lot with webgl, i suggest following them on twitter. as you said, it's uncertain how audio can be incorporated into this (javascript?), though i'd find an any-data-input approach far more interesting.

28th January 2013 17:07 UTC

You can access the audio stream data using previously mentioned audio APIs. You can also create audio with it.
It's just that you'd probably have to use soundmanager2 as it has a flash fall back for browsers that don't support an audio API (which is anything other than chrome and firefox, I assume), so it wouldn't be a pure html solution.

For the end user they could simply drag and drop tracks on to the web page and have them played/visualised. Playing music from another website is likely to fall foul of security implementations unless the site supports cross origin requests. And also each browser supports a different selection of audio formats.


15th March 2013 02:36 UTC

I did a bit of playing with the audio buffers thing in firefox about a year ago. It's neat, but I didn't think it had legs as a big project when compared with a native app, mainly because the performance just isn't good enough for doing lots of effects, you could totally do something with it and it would be cool as hell, but for something serious like AVS it's gotta be native if you ask me, at least where we're at now with support and performance.

Have a little looksie at a basic detection thing I did with it here if you want. Only works in FF.