Examples of Codec


Examples of org.omg.IOP.Codec

    GSSUPIORInterceptor ior_interceptor;

    public void pre_init(ORBInitInfo info) {
        log.fine("********  Running PortableCSILoader ******** ");

        Codec codec = null;
        try {
            codec = info.codec_factory()
                    .create_codec(
                            new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1,
                                         (byte) 2));
View Full Code Here

Examples of org.red5.app.sip.codecs.Codec

     * @return Returns the audio codec to be used on current session.
     */
    public static Codec getNegotiatedAudioCodec(SessionDescriptor negotiatedSDP){
        int payloadId;
        String rtpmap;
        Codec sipCodec = null;
       
        MediaDescriptor md = negotiatedSDP.getMediaDescriptor(Codec.MEDIA_TYPE_AUDIO );
        rtpmap = md.getAttribute(Codec.ATTRIBUTE_RTPMAP).getAttributeValue();
       
        if (!rtpmap.isEmpty()) {           
            payloadId = Integer.parseInt(rtpmap.substring(0, rtpmap.indexOf(" ")));
           
            sipCodec = CodecFactory.getInstance().getSIPAudioCodec(payloadId);           
            if (sipCodec == null) {
              log.error("Negotiated codec {} not found", payloadId);
            }
            else {
                log.info("Found codec: payloadType={}, payloadName={}.", sipCodec.getCodecId(),
                      sipCodec.getCodecName());
            }
        }       
        return sipCodec;
    }
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.