foobarlab / UpStage-Video-Hack

UpStage Streaming Hack
http://www.foobarlab.net/
GNU General Public License v2.0
5 stars 1 forks source link

Add Ogg Vorbis audio support #79

Open foobarlab opened 11 years ago

foobarlab commented 11 years ago

By request additionally to the mp3 format the ogg/vorbis format should be supported.

There already exists a haXe/Flash implementation for Flash (10+): http://barelyfocused.net/blog/2008/10/03/flash-vorbis-player/ http://bazaar.launchpad.net/~arkadini/fogg/trunk/files https://launchpad.net/fogg http://www.musesradioplayer.com/ http://code.google.com/p/anoggplayer/ http://labs.byhook.com/2011/02/22/ogg-vorbis-encoder-decoder-for-flash/

Some discussion on this topic: https://groups.google.com/forum/?fromgroups=#!topic/jplayer/BE_hf88Evxw

More info on Ogg Vorbis:

foobarlab commented 11 years ago

Because the Ogg Vorbis implementations either rely on haXe (http://haxe.org/) or flasCC (http://gaming.adobe.com/technologies/flascc/) the required Flash player is 10+ and uses the AVM2 (ActionScript3). UpStage itself is based on Flash 8+ and probably only runs in AVM1 (ActionScript2). It seems not possible to correctly either integrate the swc library of the Ogg Vorbis player or load it in as MovieClip.

The solution could be to load an additional Flash wrapper with the stage which then can be based on AVM2 and communicate locally with the AVM1 UpStage application. To make this happen there has to be worked out how this communication can be bridged as natively AVM1 and AVM2 can not pass parameters or call methods on each other.

Possible solutions for local communications between AVM1 and AVM2 are:

Another solution might be to load and modify the AVM1 swf in AVM2 dynamically during runtime:

Further links: