Sample code to check WebRTC getUserMedia() return statuses