OptionalformatAlways 'I420'. Optional; rejected if present and not 'I420'.
Frame height in pixels. Must be positive and even.
OptionalrotationClockwise rotation to apply on display, in degrees. Defaults to 0.
OptionaltimestampPresentation time in microseconds. Defaults to the current monotonic time when omitted, which is correct for an application-paced live source.
Blue-difference chrominance plane, half resolution in each dimension.
Red-difference chrominance plane, half resolution in each dimension.
Frame width in pixels. Must be positive and even.
Luminance plane.
An I420 video frame to push into a LocalVideoTrack via its
writemethod. Uses the same planar layout as the delivered VideoFrame, so a received frame can be re-published without reshaping it.Each plane's
datamust be at leaststride * heightbytes (ceil(height / 2)for the 2x-subsampledu/vplanes).widthandheightmust be positive and even; odd dimensions are rejected with aRangeError.Buffers are copied synchronously during
write(), so the caller may reuse or free them as soon as it returns.