@vpalmisano/webrtcperf-js
    Preparing search index...

    Function runQuestionAnswerTest

    • Run a question answer test getting the send and recv tracks from the running transceivers.

      Parameters

      • mediaFiles: string[]

        The media files to use for the test. It can be an array of URLs or an array of storage names or parts of the names.

      • sendTrackFilter: (
            tranceiver: RTCRtpTransceiver,
            track: MediaStreamTrack,
            index: number,
        ) => Promise<boolean> = ...

        The filter function to use to filter the send track.

      • recvTrackFilter: (
            tranceiver: RTCRtpTransceiver,
            track: MediaStreamTrack,
            index: number,
        ) => Promise<boolean> = ...

        The filter function to use to filter the recv track.

      • interruptAnswerAfter: number = 0
      • OptionalendTestCallback: (stats: QuestionAnswerStats[]) => void

        The callback called when the test ends.

      Returns Promise<{ stats: QuestionAnswerStats[]; stop: (() => void) | undefined }>

      The stop function to interrupt the test and the collected stats.