Questions tagged [capturestream]

For questions about the captureStream() method for HTML canvas elements and HTML video and audio elements

21 questions
0
votes
1 answer

captureStream from transferred canvas not working in firefox

Let's say I have a canvas: I can capture a video from it using captureStream. So if I have a video element, I can pass it the captured stream and see whatever I draw mirrored in the video:
0
votes
0 answers

CaptureStream is only giving 1st stream frame

I am trying to get stream of my react component by first changing it to canvas element using html2canvas and then using CaptureStream to get streams of canvas but when I try to listen to ondataavailable event in mediaRecorder I am only getting first…
0
votes
0 answers

Web camera mocks not working with S3 pre-signed videos in Playwright

I have several Playwright tests that use a webcam to capture videos and photos. Now they work with stubs via '--use-fake-ui-for-media-stream','--use-fake-device-for-media-stream' I would really like to dynamically use video mocks for happy e2e…
0
votes
0 answers

How to call captureStream method of HTMLVideoElement in React

I am trying to generate video stream to pass it to navigator.getUserMedia call back function. basically trying to mock getUserMedia for react test. For Above i am creating video element , setting it src and then calling captureStream() for…
hachi09
  • 21
  • 1
  • 6
0
votes
2 answers

Can't send Media Stream of captureStream() through WebRTC

I create a WebRTC with simple peer. I need to capture stream from video element and send it to peers. I use vidEl.captureStream() to get Media Stream from video element and send it to other peer. It's working but only audio and video is…
0
votes
1 answer

WebRTC captureStream() video to video with CORS

WebRTC's sample (https://webrtc.github.io/samples/src/content/capture/video-video) demonstrates that you can stream the contents of one video to another video using video.captureStream(). However, I'm having some trouble doing this across origins.…
Ben Botvinick
  • 2,837
  • 3
  • 16
  • 41
1
2