useViewportSize()

useViewportSize(): Object

Returns an object describing the viewport size, i.e. the video output resolution.

Return type

PropertyTypeDescription
wNumberWidth of viewport. Values are in pixels.
hNumberHeight of viewport. Values are in pixels.

Sample code

Additional examples of usage for this custom hook can be found in the source code for the VCS SDK.