org.lastbamboo.common.ice.sdp
Class IceCandidateSdpDecoderImpl
java.lang.Object
org.lastbamboo.common.ice.sdp.IceCandidateSdpDecoderImpl
- All Implemented Interfaces:
- IceCandidateSdpDecoder
public final class IceCandidateSdpDecoderImpl
- extends Object
- implements IceCandidateSdpDecoder
Factory class for creating ICE candidates from offer/answer data.
TODO: This currently decodes candidates assuming there's only one media
stream. That's incorrect. It should create collections of candidates for
each media stream.
|
Method Summary |
Collection<IceCandidate> |
decode(org.littleshoot.mina.common.ByteBuffer buf,
boolean controlling)
Creates a new Collection of IceCandidate
classes from the specified SDP data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IceCandidateSdpDecoderImpl
public IceCandidateSdpDecoderImpl()
decode
public Collection<IceCandidate> decode(org.littleshoot.mina.common.ByteBuffer buf,
boolean controlling)
throws IOException
- Description copied from interface:
IceCandidateSdpDecoder
- Creates a new
Collection of IceCandidate
classes from the specified SDP data.
- Specified by:
decode in interface IceCandidateSdpDecoder
- Parameters:
buf - The SDP data to create ICE candidates from.controlling - Whether or not to generate controlling candidates.
- Returns:
- A new
Collection of ICE candidates.
- Throws:
IOException - If there's an error parsing out a candidate from
the SDP.
Copyright © 2013 LittleShoot. All Rights Reserved.