Flex / Flash Recording

I know that we cannot record / access anything from a flash player because of its security. Instead, we can record video while streaming to the server. as

   netStream.publish("YourFileName.flv","record");

But in the recorde file, I only get the video file published by the webcam to the server, and I want to record the entire session.

Is there a way to record it locally, or can I record a window

ps: I'm not trying to access anything outside of the flash player.

Thanks in advance...

+1
source share
1 answer

ok, so you can write all the contents of swf like this:

- (, DisplayObject, IBitmapDrawable), , ( "" ), ENTER_FRAME ( fps), BitmapData, BitmapData.draw(). BitmapData FLV encode library, , addFrame() ( ... ) ! , FLV-, " " , swf! , ! , lib .

private function startCapturing():void{
    flvEncoder.start(); // see the libs docs and examples

    var timer:Timer = new Timer(1000/15); //capture at 15 fps
    timer.addEventListener(TimerEvent.Timer, onTimer);
    timer.start();
}

private function onTimer(event:TimerEvent):void{
    var screenCap:BitmapData = new BitmapData(container.width, container.height);
    screenCap.draw(container);

    flvEncoder.addFrame(screenCap); // see the libs docs and examples
}
+2
source

Source: https://habr.com/ru/post/1704254/


All Articles