LiveKit JS Client SDK - v2.25.0
    Preparing search index...

    Function writeRbsp

    • Inserts an emulation prevention byte before every byte <= 3 that follows two zeros. Returns dataIn itself when nothing needs escaping, which is the case for almost every encrypted frame. Callers must not mutate the result in place.

      Parameters

      • dataIn: Uint8Array

      Returns Uint8Array