Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

0 votes
1 answer
21 views

Displaying more than one video side by side on HTML Canvas

I can display one video in canvas using something like the following code : let animation_handle; const canvas = document.querySelector("canvas"); const ctx = canvas.getContext("2d"...
Steve Brooker's user avatar
1 vote
1 answer
112 views

Why does canvas.toDataURL() and canvas.toBlob() produce corrupt images on Firefox?

On Chrome and Safari, I am not having problem generating a snapshot image of a video. However, I've been for hours trying several different things on Firefox, but the image always comes corrupted, ...
Nuno's user avatar
  • 3,702
0 votes
0 answers
145 views

ondataavailable is not called when trying to record webgl2 canvas with MediaRecorder

This is the code I use to record canvas from a web browser game to video. let mediaRecorder; let recordedBlobs; const canvas = document.querySelector('canvas'); const stream = canvas.captureStream(); ...
user1617735's user avatar
0 votes
2 answers
758 views

HTML5 <video> Player Controls in Chrome Three Dots

I was trying to hide the Download option from my controls list even if it means hiding the whole controls and design a new one (which I did) I did this using js vid.controls = false; it Works fine ...
Badar Al Naaimi's user avatar
0 votes
1 answer
247 views

CanvasRenderingContext2D.drawImage() generating distorted image

I'm using the HTML camera API + canvas.getContext('2d').drawImage to generate 350px x 130px images. The images are somewhere near what I want them to be, but always a little distorted. What am I ...
Bruno Lamps's user avatar
1 vote
1 answer
153 views

How to use x2 canvas elements and rendering paper.js on img capture of html5 video to base64

Still very much a newbie to coding, so please be gentle :) I'm hoping someone might be able to help how to use Paper.js on a second canvas after the first one has been executed? I'm trying to use x2 ...
Jennifer Nesbitt's user avatar
1 vote
0 answers
160 views

getUserMedia to get video stream, galaxy S20 screen's aspect ratio broken

problem screen shot! normal screen shot Specific device(Galaxy S20 with chrome browser), shows the video stream like the image above. Almost all of devices are fine, but some devices have the problems ...
Daniel Jang's user avatar
2 votes
1 answer
100 views

Video is not drawn on canvas when autoplay is false on Chromium

The following code works fine on Firefox whether autoplay is true or false but not on Chromium. How can I fix it? EDIT 1: I found out that I can begin with autoplay = true and then in onloadeddata ...
Dante's user avatar
  • 826
0 votes
4 answers
66 views

How do you solve CSS Background IMG

I want this background IMG needed in the left-touch corner. here is this code I am trying to solve but am not able to do. #Bg,img{ width: 150px; margin: 0px; padding: 0px; float: left; } Img Hexa ...
Disa Soni's user avatar
1 vote
1 answer
289 views

Canvas does not capture entire frame of video

I'm trying to use a canvas to extract/capture the frame of a video but it seems to not work for certain videos. Here is a JS fiddle I found in which the full frame capture works. However, if you ...
Paymahn Moghadasian's user avatar
0 votes
1 answer
139 views

Get mouse events from floating picture-in-picture window

I have a canvas that is being rendered onto a video via video.srcObject = canvas.captureSteam() That video is then made the active picture-in-picture element using video.requestPictureInPicture() I ...
TranquilMarmot's user avatar
0 votes
0 answers
56 views

Extract Video Frames Function Not Returning Frames [duplicate]

I'm trying to extract the frames from a video that is uploaded to my Vue application. Here's the function I'm working with at the moment: async extractFramesFromVideo(video, duration) { return ...
cpppatrick's user avatar
0 votes
0 answers
345 views

How can HTML5-Video record the PTS code or Number of a paused frame to allow a subsequent viewer to jump to that exact frame?

I have read this post that answers with 4 commercial players that implement frame-accurate seeking and I will investigate them, but we are trying to build a tool for labeling objects in a video and we ...
SP_ProductGuy's user avatar
0 votes
0 answers
56 views

Measure HTML5 Canvas VS CSS3 performances on video effects

I want to show a MediaStream from the camera back to the user. I'm using a Canvas and the drawImage method to render the stream. I need to flip and blur the image. I want to understand if it's more ...
Bolza's user avatar
  • 1,944
1 vote
0 answers
290 views

HTML5 Canvas drawImage results are always slightly darker than source video. How do I stop this?

I would like to freeze a frame of a <video /> and modify it in a <canvas />. However, I've found the result of the canvas "drawImage" function is always slightly darker than the ...
Bee Man's user avatar
  • 39

15 30 50 per page
1
2 3 4 5
13
X