18 Replies Latest reply on Jan 2, 2014 10:45 PM by dumkat

    Video Screenshot, BitmapData.draw(remoteVideoDisplay) does not work

    thethrowdest Level 1

      Hello,

       

      I am trying to take a video snapshot of a VideoDisplay object connected to stratus using this code:

       

      var jpegSource:BitmapData = new BitmapData (remoteVideoDisplay.width, remoteVideoDisplay.height);
                      jpegSource.draw(remoteVideoDisplay);

       

      but I keep getting:

       

      SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: video.swf cannot access rtmfp://stratus.adobe.com/f7c4a2023c6b6a5dfc746669-ce776e75dd06. No policy files granted access.
          at flash.display::BitmapData/draw()

       

      I did some reasearch and it seems that I need some sort of policy file to grant me access to manipulate the stream. Any suggestions would be greatly appreciated.

       

      Thanks!