code: function() {
            var streams;
  
            if (_peerConnection.getRemoteStreams) {
              streams = _peerConnection.getRemoteStreams();
            } else if (_peerConnection.remoteStreams) {
              streams = _peerConnection.remoteStreams;
            } else {
              throw new Error('Invalid Peer Connection object implements no ' +
                'method for retrieving remote streams');
            }
  
            // Force streams to be an Array, rather than a 'Sequence' object,
            // which is browser dependent and does not behaviour like an Array
            // in every case.
            return Array.prototype.slice.call(streams);
          }
docs: Private methods