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

Functions

int WSCV_CreatePlayer (const char *filePath)
 Create a VLC player from a file path.
int WSCV_CreatePlayerFromUrl (const char *url)
 Create a VLC player from a URL.
WSCVResult WSCV_DestroyPlayer (int playerId)
 Destroy a player and free resources.

Detailed Description

Function Documentation

◆ WSCV_CreatePlayer()

int WSCV_CreatePlayer ( const char * filePath)

Create a VLC player from a file path.

Parameters
filePathUTF-8 file path.
Returns
Player ID (>= 0) on success, or negative WSCVResult on failure.

◆ WSCV_CreatePlayerFromUrl()

int WSCV_CreatePlayerFromUrl ( const char * url)

Create a VLC player from a URL.

Parameters
urlStream URL (rtsp://, http://, udp://, etc.).
Returns
Player ID (>= 0) on success, or negative WSCVResult on failure.

◆ WSCV_DestroyPlayer()

WSCVResult WSCV_DestroyPlayer ( int playerId)

Destroy a player and free resources.

Parameters
playerIdPlayer ID.
Returns
WSCV_OK on success.