The addStream and removeStream are deprecated and the MDN docs recommend using addStream/removeStream instead. While we add tracks, we can also add event listeners to whether or not a track has ended and then remove a stream once all tracks in the streams have ended.