WSCLib SDK 1.0.0
GPU-accelerated video output framework for Windows
Loading...
Searching...
No Matches
Streaming

Data Structures

struct  WSCStreamParams
 Streaming parameters. More...

Functions

WSCResult WSC_StartStreaming (int outputId, const char *url, const WSCStreamParams *params)
 Start streaming to a URL via ffmpeg subprocess.
WSCResult WSC_StopStreaming (int outputId)
 Stop streaming.
int WSC_IsStreaming (int outputId)
 Check if an output is currently streaming.

Detailed Description

Frames are piped to an ffmpeg subprocess for RTMP/SRT/etc.

Function Documentation

◆ WSC_StartStreaming()

WSCResult WSC_StartStreaming ( int outputId,
const char * url,
const WSCStreamParams * params )

Start streaming to a URL via ffmpeg subprocess.

Requires ffmpeg in PATH.

Parameters
outputIdOutput ID.
urlStreaming URL (e.g. "rtmp://server/live/key").
paramsStreaming parameters, or NULL for defaults.
Returns
WSC_OK on success.

◆ WSC_StopStreaming()

WSCResult WSC_StopStreaming ( int outputId)

Stop streaming.

Parameters
outputIdOutput ID.
Returns
WSC_OK on success.

◆ WSC_IsStreaming()

int WSC_IsStreaming ( int outputId)

Check if an output is currently streaming.

Parameters
outputIdOutput ID.
Returns
1 if streaming, 0 otherwise.