Many developers recently consulting us, in addition to audio and video data we collect end-coded push Windows to encrypt, the other RTSP / RTMP stream if you want a more secure Retweet to RTMP server or CDN corresponding change how to do?
In fact, we are doing when RTMP overall encryption scheme has been taken into account this situation, SmartStreamRelayDemo take RTSP or RTMP streams in pull Retweet RTMP, they can select the encrypted video, audio or audio and video encryption is encrypted , not much nonsense He said, referring to the code:
Above:
This time, enter the forwarding settings Key (support aes 128, aes 192, aes 256 encryption, encryption upcoming SM4), before normal play audio and video data.
Advantages of this approach is that AES-based audio and video frame by frame data encrypted audio and video data, even if the third party is to break the URL, we are unable to play, crawl into the data packet capture tool, we are unable to display properly.