Skip to content

VideoResolutions

Static class in Oadm.Sdk.Vapix · Oadm.Sdk.dll

Resolution choice shared by the live view and plugins (snapshots).

public static class VideoResolutions
static VideoResolution Choose(IReadOnlyList<VideoResolution> supported, int maxWidth, int maxHeight)

Largest supported resolution that fits into maxWidth x maxHeight and keeps the sensor aspect ratio (the aspect of the largest resolution). Falls back to the smallest of that aspect, and to the requested box itself when the device reported no resolutions.