StreamType

public enum StreamType

Carrier stream type. Reference: https://tools.ietf.org/html/rfc4566#section-5.14 https://tools.ietf.org/html/rfc4566#section-8

Enum Constants

Application

public static final StreamType Application

Application stream.

Audio

public static final StreamType Audio

Audio stream.

Message

public static final StreamType Message

Message stream.

Text

public static final StreamType Text

Text stream.

Video

public static final StreamType Video

Video stream.

Methods

format

public static String format(StreamType type)

Get description of carrier stream type.

Parameters
  • type – The carrier stream type

Returns

The description string of stream type.

toString

public String toString()

Get description of current carrier stream type.

Returns

The description string.

value

public int value()

Get type value of current stream type.

Returns

The stream type value

valueOf

public static StreamType valueOf(int type)

Get carrier stream type from type value.

Parameters
  • type – The type value

Throws
Returns

The carrier stream type