Currently in Section 5.3, it is stated:
"4. If track.stop() has been called, return a promise rejected with an InvalidStateError."
In WebRTC 1.0, the WG decided that it should be possible to use replaceTrack() to replace an "ended" track.
Related to WebRTC 1.0 issue w3c/webrtc-pc#732
setTrack with the previous one as ended
Fix for Issue: #589
Related to WebRTC 1.0 PR w3c/webrtc-pc#758