Comments on: video + canvas = magic https://stevefaulkner.github.io/html5doctored/video-canvas-magic/ helping you implement HTML5 today Thu, 28 Jul 2016 17:36:34 +0000 hourly 1 By: rocketroger https://stevefaulkner.github.io/html5doctored/video-canvas-magic/#comment-1963556 Sat, 06 Jun 2015 18:25:47 +0000 http://html5doctor.com/?p=2554#comment-1963556 @ysbreker, @jaime I have to agree here with ysbreker. I understand your point of view with the short variable names, but in this example it wasn’t that obvious to me, since I’m new to html video and canvas. At a glance it was actually rather confusing looking at the method definition with a parameter list that looks like this ‘v,c,bc,w,h’. It is very rarely a good idea for this level of brevity except for a few standards such as w,h,n(counter). Apart from that it is always possible to confuse unless you only have one or max two variables in scope. For an example such as this, better to always use longer names.

]]>
By: Rick O'Shea https://stevefaulkner.github.io/html5doctored/video-canvas-magic/#comment-1947991 Fri, 29 May 2015 21:24:29 +0000 http://html5doctor.com/?p=2554#comment-1947991 Imagine a vendor accepting every major currency except that of the United States. So, they only accept major currencies, no minor ones, with the exception of the most used or nearly the most used currency on the planet. That’s a show stopper that renders the service useless in general. Likewise, if you have no control over what browser people use, but you can’t provide a solution that works with the #1 or #2 browser, you don’t have a solution. Needless to say this is Microsoft’s fault, but it’s everybody else’s problem .

]]>
By: Sergiu https://stevefaulkner.github.io/html5doctored/video-canvas-magic/#comment-1378796 Fri, 02 Jan 2015 22:32:56 +0000 http://html5doctor.com/?p=2554#comment-1378796 Need little help:( im beginer and i got a problem. When i try to “Directly manipulating video pixels” i put the code but when i refresh the page and press play btton the canvas dosent work:( it dont even show.. can anyone help me pls?

]]>
By: Pablo https://stevefaulkner.github.io/html5doctored/video-canvas-magic/#comment-844775 Thu, 06 Nov 2014 16:26:08 +0000 http://html5doctor.com/?p=2554#comment-844775 div id=”videocontainer”
video id=”video” width=”640″ height=”480″ autoplay
/video

canvas id=”myCanvas” width=”220″ height=”60″
/canvas
/div

]]>
By: Pablo https://stevefaulkner.github.io/html5doctored/video-canvas-magic/#comment-844764 Thu, 06 Nov 2014 16:24:48 +0000 http://html5doctor.com/?p=2554#comment-844764

Your browser does not support the HTML5 canvas tag.

]]>
By: Pablo https://stevefaulkner.github.io/html5doctored/video-canvas-magic/#comment-844742 Thu, 06 Nov 2014 16:22:17 +0000 http://html5doctor.com/?p=2554#comment-844742 Sorry I make que question very fast… I try to showing a rectangle in the video for marked a special part, well the response is:

#videocontainer {
position: relative;
}

#video {
position: absolute;
top: 0;
left: 0;
}

#myCanvas {
position: absolute;
top: 200px;
left: 250px;
border:2px solid #FF0000;
z-index: 10;
}

]]>
By: Pablo https://stevefaulkner.github.io/html5doctored/video-canvas-magic/#comment-844407 Thu, 06 Nov 2014 15:31:27 +0000 http://html5doctor.com/?p=2554#comment-844407 Hi really nice work.

One question

How make to draw a square in the video, I thing with two canvas, but after is possible only showing the canvas?

]]>
By: Nicholas https://stevefaulkner.github.io/html5doctored/video-canvas-magic/#comment-588543 Wed, 15 Oct 2014 11:15:17 +0000 http://html5doctor.com/?p=2554#comment-588543 Hi, great article, but i have tested your code with my video or even your video. The canvas could not draw it out, why is that happening?

]]>
By: Ricky Yoder https://stevefaulkner.github.io/html5doctored/video-canvas-magic/#comment-49387 Sun, 18 May 2014 01:18:37 +0000 http://html5doctor.com/?p=2554#comment-49387 I’m currently using requestAnimationFrame for a camera app that I’m making. Manipulating the pixels of the canvas is really intense on the CPU however.

Are there any articles on how to OPTIMIZE something like this? A web worker perhaps? I’m not sure. I’d just like to make an HTML5 Photobooth app that doesn’t crash on my single core Android phone.

]]>
By: StarBrilliant https://stevefaulkner.github.io/html5doctored/video-canvas-magic/#comment-48783 Sun, 23 Mar 2014 08:37:27 +0000 http://html5doctor.com/?p=2554#comment-48783 I think it is better to use requestAnimationFrame instead of setTimeout. Because requestAnimationFrame syncs with the browser refresh rate.

]]>