Interfaces

Video

Extended by

Properties

currentFrame

readonly currentFrame: ImageLike | null;

The video's frame, null until the first one is decoded. Feed it to <TgfxImage>, or to <CameraFrame> when rotation is not 0.

One object for the life of the video: later frames replace what it points at natively, so this identity is stable and nothing re-commits per frame. It is owned by the player and must not be disposed.


currentTime

readonly currentTime: SharedValueLike<number>;

Playback position in milliseconds, written on the UI thread every frame.


duration

readonly duration: number;

Total length in milliseconds. 0 until the video is open.


framerate

readonly framerate: number;

rotation

readonly rotation: number;

Clockwise degrees the frame must be rotated by to be upright.


size

readonly size: object;

The decoded frame's size, before rotation is applied.

height

height: number;

width

width: number;

On this page