Web SDK - RainwayStream.setStreamFit()

Home > rainway-sdk > RainwayStream > setStreamFit

RainwayStream.setStreamFit() method

Control how the stream container fits isolated apps.

  • IsolatedApps makes the stream fit only the bounding rectangle of all windows belonging to the isolated app. The stream picture might grow and shrink as this rectangle changes. This is the default setting.

  • FullDesktop makes the entire desktop always be streamed, even in the App Isolation capture mode. This might cause the stream container to have a large border of empty space around the isolated app.

The change applies when the next video frame is rendered.

Signature:

setStreamFit(streamFit: RainwayStreamFit): void;

Parameters

ParameterTypeDescription
streamFitRainwayStreamFit

Returns:

void