1 Why use flash ActionScript to implement the RTMP protocol to publish or play media streams, play media streaming, protocol controllable, such as the number of streaming media encryption, mixing and so on.
2 core ideas using the flash socket to establish a TCP binary transmission channel, the binary data is mainly RTMP protocol package and audio and video data, play audio and video using NetStream appendbytes, Publish to rtmp streaming media server by microphone data acquisition and/or network acquisition of audio files and decoding mixes.
3 GitHub Open stream: https://github.com/LucasLorentz/AS3RtmpClient.
4 Flash Raw Socket communication to provide the policy file.
5 As3rtmpclient Push the flow part is not perfect, its code is not complex, can modify the implementation, if you encounter any problems or if you do not bother to contact me to get my modified part of the code.
Implementation of RTMP publishing and media streaming based on Flash ActionScript