Skip to main content

Constants for the fields of the /create/video request.

Option fields

options

Constants for options.

pub const FALSE: &str = “false”;
pub const NO_ERROR_IF_EXISTS: &str = “no_error_if_exists”;

If true, does not return an error if the video already exists. Ignored if replace_if_exists is true.

pub const REPLACE_IF_EXISTS: &str = “replace_if_exists”;

If true, deletes any existing video with the same path before creating a new video.

pub const TRUE: &str = “true”;
pub const TTL: &str = “ttl”;

Sets the TTL of the video.

pub const WINDOW: &str = “window”;

Specified using the data-type corresponding to the attribute. For a window of size W, a video frame rendered for time t will visualize data in the interval [t-W,t]. The minimum window size is the interval between successive frames. The minimum value is the default. If a value less than the minimum value is specified, it is replaced with the minimum window size. Larger values will make changes throughout the video appear more smooth while smaller values will capture fast variations in the data.

style

Constants for style.

pub const CHART: &str = “chart”;
pub const CLASSBREAK: &str = “classbreak”;
pub const CONTOUR: &str = “contour”;
pub const HEATMAP: &str = “heatmap”;
pub const LABELS: &str = “labels”;
pub const RASTER: &str = “raster”;