Parsec

ParsecHostHookStart

ParsecStatusParsecHostHookStart(Parsec *
ps,
ParsecHookMode
mode,
ParsecHookStatusCallback
statusCallback,
ParsecHookVideoCallback
videoCallback,
ParsecHookAudioCallback
audioCallback,
void *
opaque
)

Hook video, audio, or both in the current process. Windows only.

The default behavior submits the hooked audio to Parsec and sends the data to connected clients. the videoCallback or audioCallback may be left NULL to if this default behavior is desired. Otherwise, you can set custom callback to handle the hooked data.

Parameters

DirectionNameDescription
inpsParsec instance returned by ParsecInit.
inmodeParsecHookMode selecting video, audio, or both.
instatusCallbackCalled when a there is an error in the frame callback ParsecHookStatusCallback.
invideoCallbackCalled when a video frame is acquired. May be NULL. See ParsecHookVideoCallback
inaudioCallbackCalled when audio data is acquired. May be NULL. See ParsecHookAudioCallback
inopaqueUser supplied context to be passed through statusCallback, videoCallback, and audioCallback.

Returns

PARSEC_OK if the current process was successfully hooked, otherwise a ParsecStatus error value.