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
Error installing and using in our App #82
Comments
I'm also getting same issue, I'm trying to capture video from the canvas. |
i am also getting the same error. any help on this? |
FYI - I kind of solved this (though I'm now having a host of other issues). My issue was that I assumed CCapture.all[.min].js included all the javascript. It doesn't include the WebM writer (and probably doesn't include other things). Previously I was just doing: ...but now I do:
Hope that helps. Also, maintainers - thank you for making this library, but the documentation is lacking. I think at the very least, the explanation of the various settings needs to be improved. Tell me what kind of data type is required! And what the range of values is! |
Still getting this problem when trying to record webm format
Even with the individual source files loaded separately. I'm using three.js to create the canvas scene. |
@deadlocked247 did you see my post? Are you explicitly including the webm writer (and all the other scripts)? |
@datermine yea I did, and I added all the scripts but I get the same problem on save.
Edit: Figured out my issue, was not related to this at all. Thank you! |
Actually, I just decided to write a canvas recorder of my own using MediaSource/MediaRecorder. Found some open source code and made some slight modifications. This is my CanvasRecorder.js file: https://pastebin.com/raw/U7kwaV5S ...which produced this kind of thing in conjunction with some canvas drawing stuff: https://presentio.us/view/18b3ba Unfortunately MediaSource/MediaRecorder support for the iPad is non-existent, so I'm back to the drawing board looking at ffmpegserver.js https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder#Browser_compatibility |
I had the same problem. After two hours a realized that i never used |
for me png worked fine when I started to record from chrome console but webm didn't want to get rid of this error even without capture.start() outside setup() callback I ended up in this blogpost that use media record and no libraries at all to record canvas element. Maybe it will save time for someone https://medium.com/@amatewasu/how-to-record-a-canvas-element-d4d0826d3591 p.s. another strange thing that it worked well on file:// link but didn't work on localhost server |
I had the same problem. From the documentation:
This worked for me:
Similarly, I have a termination check within |
Thanks for saving my time. Yes not calling start will make this error. |
Hi,
When I try the gif format, I get an error:
Uncaught Error: Width and height must be set prior to rendering
When trying webWriter, I get the below errors/issues
After capture.start(), I use a setTimeout for 3 seconds before capture.stop() and capture.save(). The setTimeout never gets fired because of the internal clearTimeout in capture.start()
Even when I try to stop recording using a button onClick, I get following error when I capture.save()
This is caused by the below lines
PS: I am using webm-writer NPM package
import WebMWriter from "webm-writer";
The text was updated successfully, but these errors were encountered: