Comments

  1. Have been experimenting with HTML5 myself too.
    Reading this book.
    http://www.prohtml5.com/
    It has a video timeline example, copying video snapshots at 5 second intervals into a grid.
    Works great in Firefox 3 & 4, Opera and Chrome.
    But Safari 5…
    Took your advice to log the values and and values look right.
    console.log(frameX, frameY, frameWidth, frameHeight);
    ctx.drawImage(video, 0, 0, 400, 300, frameX, frameY, frameWidth, frameHeight);

    It outputs:
    0 0 100 75
    videoTimeline.html:98INDEX_SIZE_ERR: DOM Exception 1: Index or size was negative, or greater than the allowed value.

    November 8, 2010 at 6:25 am |
  2. victor noagbodji:

    “undefined” also produces that error

    May 30, 2011 at 11:10 pm |
  3. Joseph:

    Thanks a lot for this post! Helped me a lot…

    :D

    March 31, 2012 at 5:11 pm |

Leave a Reply

You must be logged in to post a comment.