When consuming a video in Firefox it does not properly rotate

Hi

I created this topic following the question I asked on Screen at 90 ° or 180 ° as soon as you look at a Safari iPhone 8 / iOS 14.6 user on mediasoup-client · Issue #577 · versatica/mediasoup · GitHub

I’m getting an iPhone’s webcam the right way now after adding this piece of code:

  routerRtpCapabilities.headerExtensions = routerRtpCapabilities.headerExtensions.
    filter((ext) => ext.uri !== 'urn:3gpp:video-orientation');

This chunk of code was added in front of line 58 just in front of await: meething-mediasoup/room.js at master · meething/meething-mediasoup · GitHub

Here is my question:
Is it mandatory to put this if: if (supportsVideoOrientationHeaderExtension) as in the example? Or no need for if?

supportsVideoOrientationHeaderExtension what does it correspond to?