Comments (4)
so essentially you need to convert it to a series of screenshots and then convert to video, I would say this is not possible in a realtime but for screenshots would recommend to read my article on it http://pixelscommander.com/javascript/state-of-html-content-rasterization-draw-html-to-canvas-image/ and then use something like http://libwebpjs.appspot.com/v0.1.3/ to convert screenshots to video. Also consider new kid on the block when it comes to content rasterization - https://github.com/tsayen/dom-to-image
I am open for consulting if you have any difficulties.
from html-gl.
Nice thinking! Thanks @rationalcoding
Not too experienced in canvas yet but hopeful that the MediaStream would be able to capture every frame ie- an animation @ 30 FPS
from html-gl.
Great ! Thanks for your detailed insight/suggestion and article on the topic - as well as the headusp about dom-to-image
from html-gl.
Call canvas.captureStream()
on the canvas being used to render (it's available as window.HTMLGL.context.renderer.view
) and you'll get a MediaStream with your html-gl rendered content.
from html-gl.
Related Issues (20)
- I need an explanation HOT 2
- Support CSS matrixes for transformations HOT 1
- effects-manager add
- You do not need to use a PIXI Stage any more
- Advanced demo bugs HOT 2
- Documentation on HTML/CSS support? HOT 1
- [Feature Request] - Native parallax!
- Images not being displayed
- [Question] Status of HTML-GL v2 HOT 3
- Ionic 3 Error: "Cannot find module html-gl" HOT 2
- Absolute positioning on top-level element causes it not to render
- border-radius 50% is ignored
- Incompatible with bootstrap HOT 3
- Will it boost css rendering generally or only animations? HOT 1
- When v.2 is going to be released? HOT 2
- Selecting text
- General Question: Can this library be used in conjunction with Animate.css ? HOT 1
- Mouse Events in v2.
- Cleanup non issue
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 html-gl.