for (String sdpdata : sdpData) {
SDPAnnounceParser parser = new SDPAnnounceParser(sdpdata);
SessionDescriptionImpl sessiondescription = parser.parse();
MediaDescription md = (MediaDescription) sessiondescription.getMediaDescriptions(false).get(0);
System.out.println("sd " + md.getAttributes(false));
for ( Object o : md.getAttributes(false) ) {
Attribute af = ( Attribute) o;
System.out.println("attr name " + af.getName() + "af value " + af.getValue());
System.out.println("sendonly = " + md.getAttribute(af.getName()));
}
SessionDescriptionImpl sessiondescription1 = new SDPAnnounceParser(