Is it possible to create video file from BitmapDatas in Flash?

前端 未结 1 1713
生来不讨喜
生来不讨喜 2021-01-27 12:27

Basically I\'d like to know if there are any libraries out there that lets me create a video file in the flash runtime. I know such a process would take a lot of resources, but

相关标签:
1条回答
  • 2021-01-27 13:04

    Try this. Usage:

    var myWriter:SimpleFlvWriter = SimpleFlvWriter.getInstance();
    myWriter.createFile(myFile, 320,240, 30, 120);
    myWriter.saveFrame( myBitmapData1 );
    myWriter.saveFrame( myBitmapData2 );
    myWriter.saveFrame( myBitmapData3 ); // etc.
    myWriter.closeFile();
    
    0 讨论(0)
提交回复
热议问题