function loaded(e) { var v = e.target;
ok(v.readyState >= v.HAVE_CURRENT_DATA, "readyState must be >= HAVE_CURRENT_DATA for " + v._name);
varcanvas = document.createElement("canvas"); canvas.width = v.videoWidth; canvas.height = v.videoHeight;
document.body.appendChild(canvas); var ctx = canvas.getContext("2d");
try {
ctx.drawImage(v, 0, 0);
ok(true, "Shouldn't throw exception while drawing to canvas from video for " + v._name);
} catch (ex) {
ok(false, "Shouldn't throw exception while drawing to canvas from video for " + v._name);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.