question: 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 ; }
target:  Determines if the specified SDP data contains definitions for a video stream