org.lastbamboo.common.offer.answer
Class IceMediaStreamDesc

java.lang.Object
  extended by org.lastbamboo.common.offer.answer.IceMediaStreamDesc

public final class IceMediaStreamDesc
extends Object

Describes an individual media stream.


Constructor Summary
IceMediaStreamDesc(boolean tcp, boolean udp, String mimeContentType, String mimeContentSubtype, int numComponents, boolean useRelay)
          Creates a new media stream description with all the information necessary for ICE to establish the stream.
IceMediaStreamDesc(boolean tcp, boolean udp, String mimeContentType, String mimeContentSubtype, int numComponents, boolean useRelay, boolean reliable)
          Creates a new media stream description with all the information necessary for ICE to establish the stream.
IceMediaStreamDesc(String mimeContentType, String mimeContentSubtype, int numComponents, boolean useRelay)
          Creates a new media stream description with all the information necessary for ICE to establish the stream.
 
Method Summary
static IceMediaStreamDesc allStreams()
           
 String getMimeContentSubtype()
           
 String getMimeContentType()
           
 int getNumComponents()
           
 boolean isReliable()
          Whether or not there's a reliability layer over this stream, which is true for TCP and any reliable UDT streams.
 boolean isTcp()
           
 boolean isUdp()
           
 boolean isUseRelay()
           
static IceMediaStreamDesc newReliable()
          Create a new reliable stream for HTTP traffic over either TCP or reliable UDP.
static IceMediaStreamDesc newReliableNoRelay()
          Create a new reliable stream for HTTP traffic over either TCP or reliable UDP, but that doesn't use relays.
static IceMediaStreamDesc newUnreliableUdpStream()
          Creates a new stream description for a raw UDP stream that's not reliable.
static IceMediaStreamDesc newUnreliableUdpStreamNoRelay()
          Creates a new stream description for a raw UDP stream that's not reliable and doesn't use a relay.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IceMediaStreamDesc

public IceMediaStreamDesc(String mimeContentType,
                          String mimeContentSubtype,
                          int numComponents,
                          boolean useRelay)
Creates a new media stream description with all the information necessary for ICE to establish the stream.

Parameters:
mimeContentType - The MIME content type for SDP.
mimeContentSubtype - The MIME content subtype.
numComponents - The number of components in the media stream.
useRelay - Whether or not to use relay (TURN) servers.

IceMediaStreamDesc

public IceMediaStreamDesc(boolean tcp,
                          boolean udp,
                          String mimeContentType,
                          String mimeContentSubtype,
                          int numComponents,
                          boolean useRelay)
Creates a new media stream description with all the information necessary for ICE to establish the stream.

Parameters:
tcp - Whether or not the stream will use TCP.
udp - Whether or not the stream will use UDP.
mimeContentType - The MIME content type for SDP.
mimeContentSubtype - The MIME content subtype.
numComponents - The number of components in the media stream.
useRelay - Whether or not to use relay (TURN) servers.

IceMediaStreamDesc

public IceMediaStreamDesc(boolean tcp,
                          boolean udp,
                          String mimeContentType,
                          String mimeContentSubtype,
                          int numComponents,
                          boolean useRelay,
                          boolean reliable)
Creates a new media stream description with all the information necessary for ICE to establish the stream.

Parameters:
tcp - Whether or not the stream will use TCP.
udp - Whether or not the stream will use UDP.
mimeContentType - The MIME content type for SDP.
mimeContentSubtype - The MIME content subtype.
numComponents - The number of components in the media stream.
useRelay - Whether or not to use relay (TURN) servers.
Method Detail

newUnreliableUdpStream

public static IceMediaStreamDesc newUnreliableUdpStream()
Creates a new stream description for a raw UDP stream that's not reliable.

Returns:
A new stream description for an unreliable UDP stream.

newUnreliableUdpStreamNoRelay

public static IceMediaStreamDesc newUnreliableUdpStreamNoRelay()
Creates a new stream description for a raw UDP stream that's not reliable and doesn't use a relay.

Returns:
A new stream description for an unreliable UDP stream.

newReliable

public static IceMediaStreamDesc newReliable()
Create a new reliable stream for HTTP traffic over either TCP or reliable UDP.

Returns:
The new stream description.

newReliableNoRelay

public static IceMediaStreamDesc newReliableNoRelay()
Create a new reliable stream for HTTP traffic over either TCP or reliable UDP, but that doesn't use relays.

Returns:
The new stream description.

allStreams

public static IceMediaStreamDesc allStreams()

getMimeContentSubtype

public String getMimeContentSubtype()

getMimeContentType

public String getMimeContentType()

isTcp

public boolean isTcp()

isUdp

public boolean isUdp()

getNumComponents

public int getNumComponents()

isUseRelay

public boolean isUseRelay()

isReliable

public boolean isReliable()
Whether or not there's a reliability layer over this stream, which is true for TCP and any reliable UDT streams.

Returns:
Whether or not there's a reliability layer over this stream.


Copyright © 2013 LittleShoot. All Rights Reserved.