Skip to content

Type Alias: VideoObjectFit ​

ts
type VideoObjectFit = "contain" | "cover" | "fill" | "none";

Defined in: types/desktop-engine.d.ts:1084

Video scaling mode, as CSS's object-fit: contain fits it in, cover fills the component and crops the rest, fill stretches it to the component's size, none (API 4) shows it at its own size, a video pixel to a point, centered

The SDK is released under the Apache License 2.0