if (!initialized) {
window.scrollTo(0, 100);
// video has been loaded and messaged us.
- // Send click to center of iframe.
+ // Send click to iframe (not the center since this will hit the overlay play button).
iframe = document.getElementById("frame");
- x = iframe.offsetLeft + iframe.offsetWidth / 2;
- y = iframe.offsetTop + iframe.offsetHeight / 2;
+ x = iframe.offsetLeft + 10;
+ y = iframe.offsetTop + 10;
if (window.eventSender) {
eventSender.mouseMoveTo(x, y);
eventSender.mouseDown();