Jump to content

video sequences


thatguy64
 Share

Recommended Posts

So I'm getting to a point in my game where I'm mostly done with the mechanics and I want start putting in video sequences in between the levels. But I don't know how, I was wondering if something like this would work:

 

var v = new Video();v.src = "mov_bbb.mp4";var c = document.getElementById("myCanvas");var ctx = c.getContext("2d");v.play();function render(){      ctx.drawImage(v, 0, 0);}setInterval(render,100);
 
If not, how may I accomplish this?
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...