-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snapshot? #97
Comments
Hi, apologies for the delayed response. At the moment this library doesn't support that, because on slow networks we would need to merge several incomplete frames to get a reliable image. In my situation, I found that the IP cameras had an HTTP endpoint that returns a JPG image, which is a much simpler method. |
Ohhh, it's okay. Thank you. |
Is taking a snapshot from live stream possible ? i tried with html2canvas but could just take snapshot of a text and not from live video https://stackoverflow.com/questions/71773950/capture-snapshot-of-inside-div-doesnt-show-everything |
I don't recommend this - read #97 (comment) first - but you can take a screenshot of the HTML canvas. |
My ip cameras doesnt have http endpoint |
Something like this would work: loadPlayer({
url: 'ws://localhost:5000/api/stream',
canvas: canvasRef.current,
+ preserveDrawingBuffer: true
});
+ const myScreenshot = document.querySelector('canvas').toDataURL(); |
Hello, I just want to ask if this library supports grabbing snapshot from IP Cameras whenever possible? Thank you. :)
The text was updated successfully, but these errors were encountered: