Starting with version 18.104.22.16876, our video SDK supports SRT streaming.
What is SRT?
Secure Reliable Transport (SRT) is an open source software protocol and technology stack designed for live video streaming over the public internet. If you want to learn more about its history, read our interview with the architect and evangelist of SRT.
SRT provides connection and control, reliable transmission similar to TCP, however, it does so at the application layer, using UDP protocol as an underlying transport layer. It supports packet recovery while maintaining low latency (default: 120 ms). SRT also supports encryption using AES.
You can use SRT with Medialooks SDKs in the same way as commonly known UDP/DVB protocols. On the streamer side
- Run Sample Writer x86 / Sample File Writer x86
- Choose the SRT as the video protocol
- Set desirable encoder (MPEG-2 in the current sample)
- Set URL value by the following pattern
There is a lot of settings available for the SRT (e.g., latency, passphrase) - you should set them directly in the target URL, and not in _bsProps parameter of the WriterNameSet (or WriterSet) method, for example:
On the receiver side:
- Run the Network Playback Sample
- URL should be the following srt://ip_address:port?mode=listener