public static boolean sdpHasVideo(JSONObject sdp){
  boolean hasVideo=false;
  if (null != sdp) {
    try {
      String sdpString=sdp.getString("sdp");
      hasVideo=sdpString.contains("m=video");
    }
 catch (    JSONException e) {
      Log.d(TAG,"ERROR: Incoming call appears to have an invalid SDP");
    }
  }
  return hasVideo;
}

public static boolean sdpHasVideo ( JSONObject sdp ) { boolean hasVideo = false ; if ( null != sdp ) { try { String sdpString = sdp . getString ( "sdp" ) ; hasVideo = sdpString . contains ( "m=video" ) ; } catch ( JSONException e ) { Log . d ( TAG , "ERROR: Incoming call appears to have an invalid SDP" ) ; } } return hasVideo ; }
determines if the specified sdp data contains definitions for a video stream
