Re: [webrtc-pc] RTCRtpReceiver.getStreams() and RTCRtpSender.getStreams()

I went for readonly attributes instead of getters since it just dumps the value of an internal slot without any special logic.

I also went with streamIds instead of streams on the RTCRtpSender because that's what the internal slot uses, but it's odd to have a setter take MediaStreams and the getter return IDs. We could consider changing [[AssociatedMediaStreamIds]] back into a streams slot to be consistent with addTrack(), addTransceiver() and setStreams().

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

Received on Wednesday, 25 July 2018 16:08:49 UTC