Help on HtmlScreenCaptureAvailable

Hello,

I'm writing a plug in to insert a video in WLW post. I'm trying to follow J.J.Allairesuggestions.

For now, my plugin insert a youtube or google plugin (but add another one is pretty easy, it's just a configuration issue), generate a preview image and generate the code according with the capabilities of Blogging Service. I have a problem, i don't really understand how to use HtmlScreenCaptureAvailable delegate to capture the final image of the media player after it loads the first frame of the stream.

Can someone help me? I've done so:

  1. In CreateContent() i creat HtmlScreenCapture and register a delegate
  2. I call CaptureHTML( 5000 )
  3. then save the bitmap in ISmartContent.Files

How should i implement HtmlCaptureScreenAvailable delegate? How can i find out when the media player have initialized completely?

Thanks,

Fuvlio

[1097 byte] By [Mentale] at [2008-2-27]
# 1
This does not appear to be releated to WLW. (I could be wrong). But you need to post to a forum that actually has knowledge of the video feed. Once you get that working, you can add the code to the WLW plugin.
OmegaMan at 2007-9-28 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Writer: Development...
# 2
There are other ways, like checking how much black is in the video...
Sc?tt at 2007-9-28 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Writer: Development...
# 3
Normally you can do this by checking for black pixels within the bitmap -- if the percentage of black pixels is high enough (e.g. 70%) then it is likely that the video hasn't fully loaded yet. This will of course differ for the various video services depending on how they show yet to be loaded videos (Google, YouTube, and Soapbox all show a mostly black image so this works for them).
JJAllaire at 2007-9-28 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Writer: Development...
# 4
It does indeed JJ Smile
Sc?tt at 2007-9-28 > top of Msdn Tech,Windows Live Developer Forums,Windows Live Writer: Development...

Windows Live Developer Forums

Site Classified