Play FLV from ByteArray in Flash Player

前端 未结 5 1996
臣服心动
臣服心动 2021-01-02 21:01

I have a flash video file (FLV) stored in the ByteArray object and would like to play this video. Is there any way to achieve it? Maybe using Alchemy?

Thank you!

5条回答
  •  忘掉有多难
    2021-01-02 21:34

    I will not ask Why ByteArray? The answer for your question is YES, but final result will work slow - slower when video is bigger and codec complex. You must read frames and put them as BitmapData in to Bitmap and write own player. The best way is to use Alchemy - then it works faster but also slow :) You can also use Haxe.

    Sound in very similar way. The best point to start is adobe labs. At the end - remember that flv is decoded using hardware - your code will use only processor. Now ask yourself if really you need this feature?

提交回复
热议问题