The easiest way would be to use Open Broadcaster.
Otherwise, you’ll probably have to roll your own rtmp streamer in flash.