Skip to main content

smwebsdk.scene.sendvideobounds

Home > @soulmachines/smwebsdk > Scene > sendVideoBounds

Scene.sendVideoBounds() method

Sends updated video element size to server this gives the app the chance to choose what size should be rendered on server and the application is responsible to register for a video element size change event and call this method to maintain best possible video quality for the size and/or to set an updated video element size and then call this method.

Signature:

sendVideoBounds(width: number, height: number): void;

Parameters

ParameterTypeDescription
widthnumberThe width in pixels to render the video
heightnumberThe height in pixels to render the video

Returns:

void