Open Bug 1814099 Opened 1 year ago Updated 1 year ago

We need better replaceTrack testing

Categories

(Core :: WebRTC: Signaling, task, P3)

task

Tracking

()

People

(Reporter: bwc, Unassigned)

References

Details

We need replaceTrack testing that:

Checks that replaceTrack(null) does not cause mute events.
Checks that replaceTrack(non-null) does not cause unmute events.
Checks that replaceTrack(null) actually sends black frames/silence (based on inbound-rtp stats, probably?).

And probably other things.

I can also think of a test that non-null -> replaceTrack(non-null) does switch to the new track.

In addition to checking inbound-rtp we should check that the expected pixels get rendered.

Tests for replacing a track with another with different properties would be good too.
For video: tracks with different video dimensions, image format (if we can?).
For audio: tracks with different samplerate and channel count

And why not
enabled->replaceTrack(!enabled), and
!enabled->replaceTrack(enabled)

ditto with muted

Severity: -- → N/A
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.