Re: [webrtc-pc] ontrack events need to fire before setRemoteDescription resolves (#198)

> This saves my day
> 
> My problem is that `ontrack` doesn't fire, then I change the order or my code, move `ontrack` on top of `setRemoteDescription`, then it works.
> 
> Thanks

@maitrungduc1410 @fippo I had this same issue and spent many hours trying to figure out what was wrong and why I wasn't getting `ontrack` event triggers from one side, and it turns out it was just the order in which I created the event listeners (after `setRemoteDescription`). Posting here hoping others will find this too.

-- 
GitHub Notification of comment by SlothFriend
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/198#issuecomment-617302144 using your GitHub account

Received on Tuesday, 21 April 2020 17:25:54 UTC