Function

GstPbutils-1.0GstPbutilscodec_utils_opus_create_capsSince 1.8

  • Creates Opus caps from the given parameters.

    Parameters

    • rate: number

      the sample rate

    • channels: number

      the number of channels

    • channel_mapping_family: number

      the channel mapping family

    • stream_count: number

      the number of independent streams

    • coupled_count: number

      the number of stereo streams

    • Optionalchannel_mapping: Uint8Array<ArrayBufferLike>

      the mapping between the streams

    Returns Gst.Caps

    The Gst.Caps, or null if the parameters would lead to invalid Opus caps.

    1.8