I'm using HTMLViewer.NSViewMBS.RenderImage(false) to capture playback of a 
html5 video.  Most of the time it works fine, but on occasion, it delivers a 
blank frame.

The code looks like this:

// me : a HTMLViewer control

      dim nsv as NSViewMBS = me.mainFrameMBS.frameView.documentView
      dim ns as NSImageMBS = nsv.RenderImage(false)
      p = ns.CopyPicture

ns and p are always non nil, but sometimes p is an empty picture (not showing 
the movie that's playing).

I can detect this if the ns.RenderImage() command is very fast (<5msec) - 
normally it takes 20-50msec.

I'm wondering if there is perhaps an error status which you can detect inside 
.RenderImage() and return nil instead?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to