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 ) { // Bad SDP? 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