The format property of the VideoFrame interface returns the pixel format of the VideoFrame.
format
VideoFrame
MDN Reference