Skip to content
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

New demo to use canvas element with EchoTest plugin #2261

Merged
merged 1 commit into from
Jul 2, 2020

Conversation

lminiero
Copy link
Member

@lminiero lminiero commented Jul 2, 2020

Nothing fancy: just a new demo, again based on the EchoTest, to show how you can use a canvas element to manipulate the webcam video before you send it to Janus via WebRTC. Very basic, and probably not very efficient, but it should be enough for demo purposes. It looks like this:

janus-canvas

This is actually the same code I used in an old Kamailio World Dangerous Demo, that I documented more throroughly in a dedicated blog post; that old demo used the canvas element to change the video we injected in a VideoRoom, and from there an RTP forwarder would feed an FFmpeg script to transcode it to RTMP and send it to YouTube. To keep it simple, I chose to just send it to the EchoTest and have it be bounced back instead, so that people could see the canvas editing in action in real-time.

Planning to merge soon as there's nothing new or groundbreaking here, hope you'll have fin with it!

@lminiero
Copy link
Member Author

lminiero commented Jul 2, 2020

Merging.

@lminiero lminiero merged commit 9e2ebaa into master Jul 2, 2020
@lminiero lminiero deleted the echotest-canvas branch July 2, 2020 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant