To make use of this plugin you must:
PHP file is very small <?php
if (isset($GLOBALS["HTTP_RAW_POST_DATA"]))
{
$jpg = $GLOBALS["HTTP_RAW_POST_DATA"];
header('Content-Type: image/jpeg');
header("Content-Disposition: attachment; filename=".$_GET['name'].".jpg");
echo $jpg;
}
?>
Javascript function to insert on website is even smaller <script type="text/javascript">
function screenshot() {
var player = document.getElementById('nuevoplayer');
player.getScreenshot();
}
</script>
The link to capture function can be stadard text link or image link, eg. <a href="javascript:screenshot();">Capture Screen</a>
<a href="javascript:screenshot();"><img src="buttonimage.jpg" border="0" /></a> |