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

Implementation Output #1

Open
aloproducao opened this issue Apr 3, 2024 · 1 comment
Open

Implementation Output #1

aloproducao opened this issue Apr 3, 2024 · 1 comment

Comments

@aloproducao
Copy link

Hello, the project is very interesting and I'm impressed by what you've already done. What do you think about implementing the video output function for RTMP? There's a ready-made Docker for that. Could you provide more instructions on how it works?

@axelboberg
Copy link
Owner

Hi! This project is solely based on canvases running in the browser frontend, it doesn't have any gen locking features or similar so I don't really recommend running it in production, but it is rather easy to implement video output if you want to play with it.

This file components/Canvas.js wraps the JS canvas API. Simply add a method to pull the data from the canvas in the format you wish and send it on through WebRTC, sockets or for encoding using WASM or whatever. The canvases used for output (PGM and PVW) are listed in the script.js file in the project root.

Hope it helps.

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

No branches or pull requests

2 participants