No easy way. I ended up using this project:
for RTSP protocol (worked after some fixes and modifications).
I needed to implement RTP and RTCP protocols myself (some simplified versions were enough in my case).
I also needed to create a code for extracting NAL units from RTP packets. I had to read this first:
to figure out how to do that.