server-creation
Installation
SKILL.md
Server Creation
Overview
A Server (Python) / ovstream_server_t* (C) is the central object representing one streaming endpoint. You create it for a specific transport (WEBRTC, RTSP, NATIVE, SHM, CUDASHM), configure it, start it, stream frames into it, and finally stop + destroy it.
Multiple servers can coexist in one process — typical pattern is one WebRTC server for interactive clients plus one RTSP server for industry-standard tools, fed from the same CUDA buffer.
Python
Source:
examples/python/basic_stream/main.pysnippetcreate-server
The simplest one-protocol version: