vendor/opentok.js
function getMLineIndex(sdpLines, mediaType) {
      var targetMLine = 'm=' + mediaType;

      // Find the index of the media line for +type+
      return OT.$.findIndex(sdpLines, function(line) {
        if (line.indexOf(targetMLine) !== -1) {
          return true;
        }

        return false;
      });
    }
function getMLineIndex(sdpLines, mediaType) {
      var targetMLine = 'm=' + mediaType;

      // Find the index of the media line for +type+
      return OT.$.findIndex(sdpLines, function(line) {
        if (line.indexOf(targetMLine) !== -1) {
          return true;
        }

        return false;
      });
    }
function getMLineIndex ( sdpLines , mediaType ) { var targetMLine = 'm=' + mediaType ; // Find the index of the media line for +type+ return OT . $ . findIndex ( sdpLines , function ( line ) { if ( line . indexOf ( targetMLine ) !== - 1 ) { return true ; } return false ; } ) ; }
Search through sdpLines to find the Media Line of type +mediaType+.
Search through sdpLines to find the Media Line of type + mediaType + .