Interface VideoDimensionChange

An event representing a video dimension change during recording. This can be caused by device rotation or other content size changes.

Mirrors the Swift RKVideoDimensionChange struct.

interface VideoDimensionChange {
    time: EventTime;
    dimensions: {
        width: number;
        height: number;
    };
    rotation: number;
    animated: boolean;
}

Properties

time: EventTime

Time the dimension change occurred in the recording.

dimensions: {
    width: number;
    height: number;
}

The original (pre-rotation) dimensions of the content, in pixels.

Type declaration

  • width: number

    Content width in pixels.

  • height: number

    Content height in pixels.

rotation: number

The rotation in degrees (0, 90, 180, or -90) that a player should apply to display this segment correctly. Positive values are clockwise, negative are counterclockwise.

animated: boolean

Whether the player should animate the transition to this rotation. true when device rotated during continuous recording. false at recording start or after pause/resume (instant change).

Generated using TypeDoc