-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Trying to add corner radius on addStream() camera #77
Comments
@Iulian33 Did you try to Google: "canvas image rounded corners" |
@hthetiot we have access to method getCanvasContext() to get merged canvas already, but we do not have an option to get canvas for added stream in my case the webCamera from corner or to send on option to add corner radius to that added stream camera from corner. |
There seem to be option to override draw method for each stream passed, that may work? https://github.com/t-mullen/video-stream-merger#custom-draw-function |
I made it work by adding the following code to the _drawVideo() function inside the Library.
|
This is how I rounded the corners of my stream
|
@Iulian33 you have access to individual draw stream, by providing draw option on addStream like @mustafa-toptal solution here #77 (comment) I think we can add his solution in the documentation as an example to solve this issue and provide an example usage of custom draw. |
I am looking or a way to add corner radius for my added media stream
webCamera
from corner related in image belowThe text was updated successfully, but these errors were encountered: