• Installs a metadata encoder in a WebRTC RTCRtpSender to inject position information into an outgoing WebRTC audio stream.

    This will install an encoder using either WebRTC Insertable Streams (e.g., Chrome, Edge) or WebRTC Encoded Transform (e.g., Safari).

    The position information to inject is set by calls to HRTFOutput.setPosition.

    Example

    const senders = peerConnection.getSenders();
    const sender = senders.find(e => e.track?.kind === 'audio');
    setupSenderMetadata(sender);

    Parameters

    Returns void

© 2023 High Fidelity, Inc. | All rights reserved Terms of Service | Privacy Policy