Examples of JinglePayloadType


Examples of nu.fw.jeti.plugins.jingle.packet.JingleContentDescription.JinglePayloadType

                // Ok, send a packet saying that we accept this session
                // with the audio payload type and the transport
                // candidate
                Jingle jout = new Jingle(Jingle.Action.SESSIONACCEPT);
                jout.addDescription(new JingleContentDescription.Audio(
                        new JinglePayloadType(bestCommonAudioPt)));
                jout.addTransport(getTransportNeg().getJingleTransport(
                        bestRemoteCandidate));

                // Send the "accept" and wait for the ACK
                addExpectedId(jout.getPacketID());
View Full Code Here

Examples of nu.fw.jeti.plugins.jingle.packet.JingleContentDescription.JinglePayloadType

                    Jingle jout = new Jingle(Jingle.Action.SESSIONACCEPT);

                    // ... with the audio payload type and the transport
                    // candidate
                    jout.addDescription(new JingleContentDescription.Audio(
                            new JinglePayloadType(bestCommonAudioPt)));
                    jout.addTransport(getTransportNeg().getJingleTransport(
                            bestRemoteCandidate));

                    addExpectedId(jout.getPacketID());
                    sendFormattedJingle(jout);
View Full Code Here

Examples of nu.fw.jeti.plugins.jingle.packet.JingleContentDescription.JinglePayloadType

                if (jd.getJinglePayloadTypesCount() > 1) {
                    throw new XMPPException(
                            "Unsupported feature: the number of accepted payload types is greater than 1.");
                }
                if (jd.getJinglePayloadTypesCount() == 1) {
                    JinglePayloadType jpt = (JinglePayloadType) jd
                            .getJinglePayloadTypesList().get(0);
                    acceptedPayloadType = (PayloadType.Audio) jpt.getPayloadType();
                }
            }
        }
        return acceptedPayloadType;
    }
View Full Code Here

Examples of nu.fw.jeti.plugins.jingle.packet.JingleContentDescription.JinglePayloadType

        try {
            ptChannels = Integer.parseInt(attr.getValue("channels"));
        } catch (NumberFormatException e) {
        }

        return new JinglePayloadType(new PayloadType(ptId, ptName, ptChannels));
    }
View Full Code Here

Examples of nu.fw.jeti.plugins.jingle.packet.JingleContentDescription.JinglePayloadType

        /**
         * Parse an audio payload type.
         */
        public JinglePayloadType parsePayload(Attributes attr){
            JinglePayloadType pte = super.parsePayload(attr);
            PayloadType.Audio pt = new PayloadType.Audio(pte.getPayloadType());
            int ptClockRate = 0;

            try {
                ptClockRate = Integer.parseInt(attr.getValue("clockrate"));
            } catch (Exception e) {
View Full Code Here

Examples of org.jivesoftware.smackx.packet.JingleContentDescription.JinglePayloadType

        try {
            ptChannels = Integer.parseInt(parser.getAttributeValue("", "channels"));
        } catch (Exception e) {
        }

        return new JinglePayloadType(new PayloadType(ptId, ptName, ptChannels));
    }
View Full Code Here

Examples of org.jivesoftware.smackx.packet.JingleContentDescription.JinglePayloadType

        /**
         * Parse an audio payload type.
         */
        public JinglePayloadType parsePayload(final XmlPullParser parser)
                throws Exception {
            JinglePayloadType pte = super.parsePayload(parser);
            PayloadType.Audio pt = new PayloadType.Audio(pte.getPayloadType());
            int ptClockRate = 0;

            try {
                ptClockRate = Integer.parseInt(parser.getAttributeValue("", "clockrate"));
            } catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.