useViewportSize()
useViewportSize(): Object
Returns an object describing the viewport size, i.e. the video output resolution.
Return type
| Property | Type | Description | 
|---|---|---|
w | Number | Width of viewport. Values are in pixels. | 
h | Number | Height 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.