@twilio/video-node-sdk - v1.0.0-rc.4
    Preparing search index...

    Function enableH264

    • Load an OpenH264 2.7.x library so Rooms can negotiate H.264. Process-wide.

      Call it before the first connect or createLocal*Track() call: the media factory those create reads the library once, so a later call throws. Once enabled, H.264 is offered after VP8, and preferredVideoCodecs may name H264. It stays enabled for the life of the process. Calling it again before the first connect or track loads the given library instead.

      A frame larger than 1280x720 (3600 macroblocks) is scaled down to fit H.264 level 3.1, keeping its aspect ratio.

      Every successful call writes a patent-licensing notice with console.warn.

      Parameters

      • options: EnableH264Options

        The library path, and the required licensing confirmation.

      Returns void

      If confirmPatentLicensingCompliance isn't true, or openh264Path isn't a non-empty string without NUL characters. Nothing is loaded.

      If called after the first connect() or createLocal*Track().

      If the library can't be loaded or isn't OpenH264 2.7.x.