I really doubt that anyone here could provide you detailed assistance with implementing the rtmp protocol in your application. If you have quick questions, developers of OBS usually hang out if their own chat at https://obsproject.com/chat, which you might find useful.