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

Functions

WSCWResult WSCW_Resize (int browserId, int width, int height)
 Resize the virtual viewport.
WSCWResult WSCW_ExecuteJS (int browserId, const char *code)
 Execute JavaScript code in the browser's main frame.
WSCWResult WSCW_SetFrameRate (int browserId, int fps)
 Set the frame rate for off-screen rendering.

Detailed Description

Function Documentation

◆ WSCW_Resize()

WSCWResult WSCW_Resize ( int browserId,
int width,
int height )

Resize the virtual viewport.

Parameters
browserIdBrowser ID.
widthNew width in pixels.
heightNew height in pixels.
Returns
WSCW_OK on success.

◆ WSCW_ExecuteJS()

WSCWResult WSCW_ExecuteJS ( int browserId,
const char * code )

Execute JavaScript code in the browser's main frame.

Parameters
browserIdBrowser ID.
codeJavaScript source code to execute.
Returns
WSCW_OK on success.

◆ WSCW_SetFrameRate()

WSCWResult WSCW_SetFrameRate ( int browserId,
int fps )

Set the frame rate for off-screen rendering.

Default is 30 FPS. Maximum is 60 FPS.

Parameters
browserIdBrowser ID.
fpsTarget frames per second (1–60).
Returns
WSCW_OK on success.