All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lastbamboo.common.ice.sdp.IceCandidateSdpDecoder Maven / Gradle / Ivy

package org.lastbamboo.common.ice.sdp;

import java.io.IOException;
import java.util.Collection;

import org.littleshoot.mina.common.ByteBuffer;
import org.lastbamboo.common.ice.candidate.IceCandidate;

/**
 * Factory for generating ICE candidate classes from SDP.
 */
public interface IceCandidateSdpDecoder
    {

    /**
     * Creates a new Collection of IceCandidate
     * classes from the specified SDP data.
     * 
     * @param buf The SDP data to create ICE candidates from.
     * @param controlling Whether or not to generate controlling candidates. 
     * @return A new Collection of ICE candidates.
     * @throws IOException If there's an error parsing out a candidate from 
     * the SDP.
     */
    Collection decode(ByteBuffer buf, boolean controlling) 
        throws IOException;
    }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy