Package rocks.xmpp.extensions.jingle.apps.rtp.model

Examples of rocks.xmpp.extensions.jingle.apps.rtp.model.Rtp$Encryption


                "           <parameter name='vbr' value='on'/>\n" +
                "           <parameter name='cng' value='on'/>\n" +
                "        </payload-type>\n" +
                "      </description>\n";

        Rtp rtp = unmarshal(xml, Rtp.class);
        Assert.assertEquals(rtp.getMedia(), "audio");
        Assert.assertEquals(rtp.getPayloadTypes().size(), 7);
        Assert.assertEquals(rtp.getPayloadTypes().get(0).getName(), "speex");
        Assert.assertEquals(rtp.getPayloadTypes().get(0).getClockRate(), 16000);
        Assert.assertEquals(rtp.getPayloadTypes().get(4).getChannels(), 2);
        Assert.assertEquals(rtp.getPayloadTypes().get(6).getParameters().size(), 2);
        Assert.assertEquals(rtp.getPayloadTypes().get(6).getParameters().get(0).getName(), "vbr");
        Assert.assertEquals(rtp.getPayloadTypes().get(6).getParameters().get(0).getValue(), "on");
        Assert.assertEquals(rtp.getPayloadTypes().get(6).getMaxPacketTime(), 0);
    }
View Full Code Here


                "           session-params='KDR=1 UNENCRYPTED_SRTCP'\n" +
                "           tag='1'/>\n" +
                "       </encryption>\n" +
                "      </description>\n";

        Rtp rtp = unmarshal(xml, Rtp.class);
        Assert.assertNotNull(rtp.getEncryption());
        Assert.assertEquals(rtp.getEncryption().getCrypto().size(), 1);
        Assert.assertEquals(rtp.getEncryption().getCrypto().get(0).getCryptoSuite(), "AES_CM_128_HMAC_SHA1_80");
        Assert.assertEquals(rtp.getEncryption().getCrypto().get(0).getKeyParameters(), "inline:WVNfX19zZW1jdGwgKCkgewkyMjA7fQp9CnVubGVz|2^20|1:32");
        Assert.assertEquals(rtp.getEncryption().getCrypto().get(0).getSessionParameters(), "KDR=1 UNENCRYPTED_SRTCP");
        Assert.assertEquals(rtp.getEncryption().getCrypto().get(0).getTag(), "1");
    }
View Full Code Here

TOP

Related Classes of rocks.xmpp.extensions.jingle.apps.rtp.model.Rtp$Encryption

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.