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