Louis Veronneau Posted November 18, 2020 Share Posted November 18, 2020 Hi I am fearly new to antmedia webrtc, but i manage to transmit and receive correclty and learning more and more everyday. I am looking for a way to grab a frame from a stream every 60secnds or so is there a way to do this while streaming ? Can it be saved as a jpg ? thanks Link to comment Share on other sites More sharing options...
0 Tahir Posted November 19, 2020 Share Posted November 19, 2020 Hi Louis, You can do that with media image capture API. You need to use setInterval function for taking it every 60 seconds, I will give you some links which will guide you in details, your code will look like; setInterval( () => {let imageCapture = new ImageCapture(track); }, 60000); after you get the camera track from getUserMedia. Check out; https://developer.mozilla.org/en-US/docs/Web/API/MediaStream_Image_Capture_API https://www.w3schools.com/jsref/met_win_setinterval.asp I hope this might help you Thank you for being part of our community Link to comment Share on other sites More sharing options...
Question
Louis Veronneau
Hi
Link to comment
Share on other sites
Top Posters For This Question
1
1
Popular Days
Nov 18
1
Nov 19
1
Top Posters For This Question
Tahir 1 post
Louis Veronneau 1 post
Popular Days
Nov 18 2020
1 post
Nov 19 2020
1 post
1 answer to this question
Recommended Posts