ParsecClientMetalRenderFrame

ps,
uint8_t
stream,
cq,
target,
pre,
const void *
opaque,
uint32_t
timeout
)

Renders a remote video frame with Metal.

If the timeout expires, the previous frame is rendered.

Parameters

DirectionNameDescription
inpsParsec instance returned by ParsecInit.
instreamVideo stream index. Must be less than NUM_VSTREAMS.
incqCast to id<MTLCommandQueue> used within your render loop.
intargetCast to id<MTLTexture> render target used within your render loop. This value is passed by reference to allow you to set it during the ParsecPreRenderCallback.
inpreParsecPreRenderCallback fired just before the frame is rendered. May be NULL.
inopaqueUser supplied context to be passed through pre.
intimeoutTime in milliseconds to wait for a new frame or render the previous frame and return.

Returns

PARSEC_OK if a frame was rendered successfully, otherwise a ParsecStatus error value.

Parsec SDK on GitHubDiscuss on Discord

You are prepared.

Create an account now for free.

Sign Up
Parsec© 2020
Made with ❤️ in NYC