Introduction - If you have any usage issues, please Google them yourself
This sample code standard H264 stream RTP package sent to the local port 1234 on my computer, VLC player can receive from port 1234 to the stream and real-time playback. Code with detailed notes, and should be easy to understand (the premise is slightly know the protocol RFC3550 RFC3984).