Package javax.sdp

Examples of javax.sdp.MediaDescription


    public void testWebRtcSdpParser() throws Exception {
            SDPAnnounceParser parser = new SDPAnnounceParser(rtcSdp);
            SessionDescriptionImpl sessiondescription = parser.parse();
            sessiondescription.getAttribute("crypto:1");
            String nt = sessiondescription.getConnection()==null?null:sessiondescription.getConnection().getNetworkType();
            MediaDescription md = (MediaDescription) sessiondescription.getMediaDescriptions(false).get(0);
            nt = md.getConnection().getNetworkType();
            assertNotNull(nt);
            assertNotNull(md);

    }
View Full Code Here


            if (attrs != null) {
                Attribute attrib = (Attribute) attrs.get(0);
                System.out.println("attrs = " + attrib.getName());
            }

            MediaDescription md = (MediaDescription) sessiondescription.getMediaDescriptions(
                    false).get(0);

            System.out.println("md attributes " + md.getAttributes(false));

            SessionDescriptionImpl sessiondescription1 = new SDPAnnounceParser(sessiondescription
                    .toString()).parse();

            System.out.println("sessionDescription1 " + sessiondescription1);
View Full Code Here

            if (attrs != null) {
                Attribute attrib = (Attribute) attrs.get(0);
                System.out.println("attrs = " + attrib.getName());
            }

            MediaDescription md = (MediaDescription) sessiondescription.getMediaDescriptions(
                    false).get(0);

            System.out.println("md attributes " + md.getAttributes(false));

            SessionDescriptionImpl sessiondescription1 = new SDPAnnounceParser(sessiondescription
                    .toString()).parse();

            System.out.println("sessionDescription1 " + sessiondescription1);
View Full Code Here

    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(
View Full Code Here

TOP

Related Classes of javax.sdp.MediaDescription

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.