How to upload the video stream to rtmp server


I’ve succeeded to redirect the stream to a video tag, but there is no such an api or a demo for me to push this obj to a rtmp server. I’ve tried to write the stream by ‘fs’ write to stream, but this not work. I’ve notice electron will put ffmpeg.dll automatically to the root dir of the package, is there any api for developers to use ffmpeg directly?

Thank you For your ansering