Skip to main content

findResolutionKey

@microblink/camera-manager


@microblink/camera-manager / findResolutionKey

Function: findResolutionKey()

findResolutionKey(videoTrackResolution): "720p" | "1080p" | "4k"

Finds the closest resolution key to the given resolution.

Parameters

videoTrackResolution

Resolution

The resolution to find the closest key for.

Returns

"720p" | "1080p" | "4k"

The closest resolution key.