constraints: fix connected check (#919)
constraints: fix connected check (#919)

the current connected check for displaying stats relies on legacy APIs.
fippo/webrtc,webrtc/samples,fippo/webrtc,webrtc/samples