Re: [webrtc-pc] Section 8.2: Null selector properly handled by getStats?

Mostly a style question how to resolve this. One way:
4. If selectorArg is null, let selector be null.
5. If selectorArg is a valid MediaStreamTrack let selector be a RTCRtpSender or RTCRtpReceiver on connection which track member matches selectorArg. If no such sender or receiver exists, or if more than one sender or receiver fit this criteria, return a promise rejected with a newly created InvalidAccessError.

Also I am not sure if the [definition of valid](http://w3c.github.io/webrtc-pc/#introduction-1) allows the InvalidAccessError to be thrown. Possibly "valid" in step 3 should be removed?

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

Received on Monday, 12 June 2017 19:10:53 UTC