Chrome 88 captureStream() Bug - Issue 1171581

As of Chrome 88, streams obtained via captureStream() and published via WebRTC to a subscriber fail to play the video track. This is a regression. Chrome 87 and Firefox play the stream video correctly. For the complete code to reproduce this bug, view source.

Steps to Reproduce

  1. Wait for the top video (under "Input Stream") to load.
  2. On the top video, press play. This will invoke captureStream() on the top <video> element. The captured stream is then published via WebRTC, and played back in the bottom <video> element.

Expected Result:

Both video and audio play successfully.

Actual Result:

Video fails to play. Audio plays successfully. See line 188.

Input Stream: Invoke captureStream() on <video>

Output Stream: Received via WebRTC