Page 1 of 1

How to using takesnapshot in IE through activex

Posted: 01 Apr 2009 11:53
by eric.gl.CN
Hi all,
I find an method called takesnapshot in activex. I think that I can takesnapshot in IE by using activex.
I use JS as follow:
var vlc = document.getElementById("vlc");
LPPICTUREDISP * Cpicture;
vlc.video.takeSnapshot(Cpicture);
any other initial has done. and my COM can play MTV, then I want to take a snapshot, but I find that can't be run. the way is wrong or something else I haven't done?


Also I find another topic said that:

My trouble is with the ActiveX takeSnapshot method. Has anyone else noticed that the ActiveX control is hard coded to work with a .bmp file (see projects/activex/vlccontrol2.cpp : line 2501) but the underlying vlc code is hard coded to work with .png files (see src/control/video.c : line 133)? This seems to prevent the snapshot from being generated successfully.

Is this a known incompatibility? Does anyone have a work-around? :?: