Can the flash player play .wav files from a url?

前端 未结 5 1560
隐瞒了意图╮
隐瞒了意图╮ 2020-12-09 06:54

Let\'s say I have a wav file at a url:

http://hostname.com/mysound.wav

I\'m trying to load the wav file with the sound class like:

5条回答
  •  鱼传尺愫
    2020-12-09 07:32

    Directly you cannot but there are workarounds thanks to the ByteArray ; )

    Check this out :

    http://richapps.de/?p=97

    EDIT:

    The previous link being a bit old I reckon you should also have a look on Andre and Joa's fabulous PopForge library. There's actually a wav decoder class there as well.

    http://code.google.com/p/popforge/source/browse/#svn/trunk/flash/PopforgeLibrary/src/de/popforge/format/wav

提交回复
热议问题