-
Notifications
You must be signed in to change notification settings - Fork 158
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
transparent player, why is alpha set false, with no override #153
Comments
I assume it's set to However, I can't think of a reason why it shouldn't be overridable. @gsouquet do you guys have any opinions on this? |
I remember seeing a comment from Matthew in the code
I assume it has to do with performance as you said but possible with fidelity of the output. With new APIs like MediaRecorder you could end up with a different output than what you have previewed in your browser. This would need to be investigated a bit more. I think the default has to be |
Actually looking at #154 , it seems like having an If we decide to make the canvas desynchronised we won't have the ability to stack elements over the VC canvas. We could probably allow the user to make that override, but the question becomes, how do we now communicate that behaviour to the developers to avoid frustration and hours of debugging? Check https://developers.google.com/web/updates/2019/05/desynchronized#alpha_channels How do you think we should move this forward? |
The fact that alpha canvas might have some issues that make it more difficult to use is not really a reason to not allow users to override. If this is really an issue then some code to catch an allowAlphaOverride in the context could be used. But you can't stop "frustration and hours of debugging" by not allowing something that a user requires.
|
@icyield I believe I didn't explain myself correctly. Maybe through documentation or maybe make the library check if anything is stacked above the canvas. Not sure |
I would like to play an alpha video on a background, but the VideoContext webglContextAttributes alpha Can't be overriden because it is copied last.
Why is this done? If I change it to true works as expected, giving transparent player.
=====================================
`_classCallCheck(this, VideoContext);
The text was updated successfully, but these errors were encountered: