CLIENT/SERVER
STREAMING SERVER
CAPTURE
PLAYBACK
PROTOCOLS
RTMP
RTP/RTSP
HLS
MPEG-DASH
WEBRTC
SRT
MORE
FILES
MP4
TS
TOOLS
PROCESSING
VIDEO
AUDIO
CODEC
All functional elements can be divided into the following groups of primitives:
In addition to that, the following groups are available for most of the supported platforms:
VASTreaming library utilizes source/sink pattern for media data flow. Media data flow streams down from a source to a sink like in a pipeline (see Fig. 1) with optional flow processing on the way. A source of media data can be an external streaming server, an IP camera, third-party software, a cloud video, audio, or image file. Local media files may also be used as a media source. In most cases a media sink is an external streaming server distributing media stream over network of end-users, end-users computers or mobile devices, or recorded local video files, or audio files.
Accordingly, client and media capture objects are implementing IMediaSource interface, and publisher and media rendering objects are implementing IMediaSink interface.
VASTreaming library provides standalone, protocol specific servers for certain protocols, such as RTMP, RTSP, or WebRTC. These servers incorporate the logic to accept incoming connections, create media sources and sinks, and provide them to a user code. But it is a user who is responsible for implementing media data flow between IMediaSources and IMediaSinks. VASTreaming, however, provides demos showing how to make it work well. See Demos section of this manual for more details.
This server is one of the most complicated components of VASTreaming library. It depends on almost all other modules. In a real production environment, it is often not enough to have a single protocol server; it is usually necessary to utilize several protocols, so a multi-protocol streaming server is a highly demanded element.
Multi-protocol streaming server allows setting up a streaming server that supports all the protocols necessary for a user in a single, easily controllable environment. Multi-protocol streaming server implements the architecture so that protocol-specific data of sources is transformed into an abstract, protocol-independent internal representation, which in its turn, is transformed into a protocol-specific data in each sink again. The server ensures high-performance media data transformation between different protocols allowing serving thousands of incoming and outgoing connections.
All VASTreaming libraries are optimized for minimization of latency and all their components uses low latency mode by default, even if it comes at the expense of reception / transmission / playback smoothness.
Typical latency of VASTreaming library on LAN while using low latency protocol e.g., RTMP, RTSP, or WebRTC, is 200-300 milliseconds.