Hello, Which state stays "ended"? the readyState of the old RTCRtpSender.track? That seems normal, as "ended" is a terminal state. RTCRtpSender.track should be set to newTrack (with readyState "live") if replaceTrack() succeeded however.
Perhaps it's easiest to explain through a minimal test page so we can see what you mean directly. In general though; from a spec point of view I'd expect replacing an ended track with a live track to work. If our implementation doesn't handle this per spec, please file a bug [1] and we'll take a look. [1] https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=WebRTC%3A%20Audio%2FVideo Thanks Andreas On Wed, Feb 21, 2018 at 10:46 PM, Alexander Abagian <[email protected]> wrote: > Hi, > > I encovered that if RTCRtpSender.track.readyState === "ended" then after > RTCRtpSender.replaceTrack(newTrack) this state stays "ended" despite > newTrack.readyState is "live". Is it a correct behavior ? > _______________________________________________ > dev-media mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-media > _______________________________________________ dev-media mailing list [email protected] https://lists.mozilla.org/listinfo/dev-media

