Skip to main content
Participating Frequently
July 31, 2011
Question

StageWebView.drawViewPortToBitmapData() does not capture embedded video content

  • July 31, 2011
  • 1 reply
  • 703 views

I have a very simple, local HTML page embedded in a StageWebView, and the HTML page embeds a local video file using the video tag. When capturing the SWV to a bitmap either via drawViewPortToBitmapData() or using ImageSnapshot, the video content is not included in what is captured. The resulting bitmap consists of the native video controls on top of a black area where the video was.

It has been suggested that this could be a security sandbox issue or a hardware rendering issue, but neither of those seem right given the circumstances. Is this a bug or am I missing something?

Thanks,
Ben

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
July 31, 2011

If it's a security issue, you should see security related errors happening. Try adding listeners for those events.

It does seem possible though that as it's H.264 video it might be going straight from the file data to the video RAM, handled with hardware acceleration. If that's the case then Flash may not be able to grab the image out of the video RAM.

Using an FLV instead of stagewebview could solve the issue.