Comments (5)
Sure, i'll take a look!
from ccapture.js.
+1. I'm starting a little threejs-starter-pack, would be nice to bring in ccapture through npm as opposed to "downloading and saving a js file" :p which works totally fine, but with npm will be easier to stay up to date, is more automated, etc.
from ccapture.js.
Any idea how to do this? I can add CCapture.js to npm, but the dependencies to Whammy.js for WebM encoding, or gif.js for GIF creation, etc I don't really know how to solve. Especially the gif-worker.js part, since that file has to be loaded by the web worker.
from ccapture.js.
Some of those are already on npm:
- Whammy
- gif.js
- tar-js (this looks different from yours - you write your own?)
- downloadjs (this is on v4.x you have 3.x)
If you refactor to get those dependencies from npm install x
and then var x = require('x')
, and you will then need some sort of bundler, and the dist you produce works, then I think that is enough for it to work.
I'm not sure how to work with web workers from npm packages, but I think for now, it's OK to assume those people pulling in ccapture through will be using a build manager, probably webpack or browserify+gulp. Personally, I'd probably use the webpack-copy-plugin and just copy anything required from node_modules/gif.js/dist/gif.worker.js
to /dist/js
for example.
Why don't you publish just CCapture.js
for now? You can also push more micro updates, and it can be tagged as "pre-release" as well. I can try setting it up from my side by bringing in all those other dependencies myself manually through npm. Then we can go from there?
from ccapture.js.
Published the bundled library (except the gif.js worker script) to https://www.npmjs.com/package/ccapture.js - Please let me know if it works as expected or there are any issues.
from ccapture.js.
Related Issues (20)
- Is it possible to do capturing in a Web Worker thread? HOT 1
- Capture an audio-reactive application HOT 3
- using CCapture to render a javascript starfield animation as a webm file HOT 2
- .tar is empty HOT 1
- gif transparency?
- How to use it with Lottie ?
- I have an error message in Terminal when I roll up with CCapture HOT 1
- Usage with React: .start() causes window.requestAnimationFrame to stop working. HOT 2
- "Seeked" event doesn't trigger on html5 video when CCapturer is on HOT 4
- Angular NPM WebMWriter not defined HOT 2
- Error: Uncaught [TypeError: window.CCapture is not a constructor] HOT 1
- rangeerror maximum call stack size exceeded ccapture
- Uncaught (in promise) ReferenceError: download is not defined
- ReferenceError: window is not defined HOT 2
- How can I record the canvas background
- CCapture with setInterval not working
- how can i record again without reloading the page?
- CCapture package can't be installed thru npm
- What is workers path? HOT 1
- Use for record animation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccapture.js.