public SessionDescription createSessionDescription(String s) throws SdpParseException { SDPAnnounceParser sap = new SDPAnnounceParser(s); try { return sap.parse(); } catch (ParseException e) { e.printStackTrace(); throw new SdpParseException(0, e.getErrorOffset(), e.getMessage()); } }
public SDP parse(final Buffer data) throws SdpException { try { final SessionDescription sdp = sdpFactory.createSessionDescription(data.toString()); return new SDPWrapper(sdp); } catch (final javax.sdp.SdpParseException e) { throw new SdpParseException(e.getLineNumber(), e.getCharOffset(), e.getMessage(), e.getCause()); } }
public SDP parse(final Buffer data) throws SdpException { try { final SessionDescription sdp = sdpFactory.createSessionDescription(data.toString()); return new SDPWrapper(sdp); } catch (final javax.sdp.SdpParseException e) { throw new SdpParseException(e.getLineNumber(), e.getCharOffset(), e.getMessage(), e.getCause()); } }
throw new SdpParseException(0, 0, "no source media found"); throw new SdpParseException(0, 0, "no destination media found"); throw new SdpParseException(0, 0, "protocol not supported " + proto); throw new SdpParseException(0, 0, "protocol not supported " + proto);
throw new SdpParseException(0, 0, "no source media found"); throw new SdpParseException(0, 0, "protocol not supported " + proto);