Comments (2)
Hi Georg,
As part of a change to support passing in options to the VideoContext's constructor I've added a way to pass in custom context attributes to the underlying WebGL context. It can be used like the following:
var videoContextOptions = {webglContextAttributes: {preserveDrawingBuffer: true, alpha: false}};
var videoContext = new VideoContext(canvas, undefined, videoContextOptions);
The default context attributes for the webGL context are:
{preserveDrawingBuffer: true, alpha: false}
Changing things away from the default should be considered undefined behaviour for now. But it should give you the functionality required to experiment to find optimal parameters for mobile.
Feel free to re-open this issue if this doesn't provide the required functionality.
EDIT: This is now available on NPM as version 0.19.0.
Kind regards,
Matt
from videocontext.
Hmm, on second thoughts I'll reopen this issue as a reminder that we might want to change the default setting for preserveDrawingBuffer
once performance/functionality test have taken place.
Kind regards,
Matt
from videocontext.
Related Issues (20)
- What's the easiest way to have a 'poster' image whilst a video initially buffers?
- InvalidAccessError when calling clearTimelineState or destroy in Microsoft Edge HOT 2
- Unhandled Rejection (TypeError): 2 is not a valid argument count for any overload of Window.createImageBitmap
- TypeError: Invalid operand to 'instanceof': Function expected
- imageNode seek registerCallback loaded. is instability
- Expose internal nodes for extending HOT 2
- Live HLS Support
- Empty graph does not clear canvas
- CodeSandbox example error HOT 1
- 多个音频播放有噪音
- Append videos while playing HOT 2
- Video not rendered initially if not cached
- Is there a way to apply the LUT?
- Video stops for a moment.
- Do start, stop functions take only seconds?
- Is it possible to apply LUTs (3D, 1D) via effect node.
- Suggestion: Use WebCodecs API
- How to position element on the canvas? HOT 2
- Typescript conversion? HOT 1
- Connecting multiple videos leads to a performance decline.
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 videocontext.