Type
VideoSampleInit
Metadata used for VideoSample initialization.
ts
type VideoSampleInit = {
format?: VideoPixelFormat;
codedWidth?: number;
codedHeight?: number;
rotation?: Rotation;
timestamp?: number;
duration?: number;
colorSpace?: VideoColorSpaceInit;
};See Rotation.
Used by
Properties
format
ts
format?: VideoPixelFormat;The internal pixel format in which the frame is stored. See pixel formats
codedWidth
ts
codedWidth?: number;The width of the frame in pixels.
codedHeight
ts
codedHeight?: number;The height of the frame in pixels.
rotation
ts
rotation?: Rotation;The rotation of the frame in degrees, clockwise.
See Rotation.
timestamp
ts
timestamp?: number;The presentation timestamp of the frame in seconds.
duration
ts
duration?: number;The duration of the frame in seconds.
colorSpace
ts
colorSpace?: VideoColorSpaceInit;The color space of the frame.