com.cisco.jtapi.extensions
Class CiscoMediaCapability

java.lang.Object
  extended by com.cisco.jtapi.extensions.CiscoMediaCapability
Direct Known Subclasses:
CiscoG711MediaCapability, CiscoG723MediaCapability, CiscoG729MediaCapability, CiscoGSMMediaCapability, CiscoIsacMediaCapability, CiscoWideBandMediaCapability

public class CiscoMediaCapability
extends java.lang.Object

Introduction

The CiscoMediaCapability object specifies the properties of a particular media format that an application can support for CiscoMediaTerminals that it registers. Because CiscoMediaCapability is an abstract class, applications may only construct its subclasses directly.

See Also:
CiscoG711MediaCapability, CiscoG723MediaCapability, CiscoG729MediaCapability, CiscoGSMMediaCapability, CiscoIsacMediaCapability, CiscoRTPBitRate, CiscoRTPPayload

Field Summary
static CiscoMediaCapability G711_64K_30_MILLISECONDS
          G.711 capability with default parameters
static CiscoMediaCapability G723_6K_30_MILLISECONDS
          G.723 capability with default parameters
static CiscoMediaCapability G729_30_MILLISECONDS
          G.729 capability with default parameters
static CiscoMediaCapability GSM_80_MILLISECONDS
          GSM capability with default parameters
static CiscoMediaCapability ISAC
          ISAC Capability with default parameters
static CiscoMediaCapability WIDEBAND_256K_10_MILLISECONDS
          Wideband capability with default parameters
 
Constructor Summary
CiscoMediaCapability(int payloadType, int maxFramesPerPacket)
          Constructs a CiscoMediaCapability object for the specified payload type and packet size (in milliseconds).
 
Method Summary
 int getMaxFramesPerPacket()
          Returns the packet size (in milliseconds) that this object specifies.
 int getPayloadType()
          Returns the payload type that this object specifies.
 boolean isSupported()
          Returns whether the payload of this object is supported or not.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

G711_64K_30_MILLISECONDS

public static final CiscoMediaCapability G711_64K_30_MILLISECONDS
G.711 capability with default parameters

See Also:
CiscoG711MediaCapability

G723_6K_30_MILLISECONDS

public static final CiscoMediaCapability G723_6K_30_MILLISECONDS
G.723 capability with default parameters

See Also:
CiscoG723MediaCapability

G729_30_MILLISECONDS

public static final CiscoMediaCapability G729_30_MILLISECONDS
G.729 capability with default parameters

See Also:
CiscoG729MediaCapability

ISAC

public static final CiscoMediaCapability ISAC
ISAC Capability with default parameters

See Also:
CiscoIsacMediaCapability

GSM_80_MILLISECONDS

public static final CiscoMediaCapability GSM_80_MILLISECONDS
GSM capability with default parameters

See Also:
CiscoGSMMediaCapability

WIDEBAND_256K_10_MILLISECONDS

public static final CiscoMediaCapability WIDEBAND_256K_10_MILLISECONDS
Wideband capability with default parameters

See Also:
CiscoWideBandMediaCapability
Constructor Detail

CiscoMediaCapability

public CiscoMediaCapability(int payloadType,
                            int maxFramesPerPacket)
Constructs a CiscoMediaCapability object for the specified payload type and packet size (in milliseconds).

Method Detail

getPayloadType

public int getPayloadType()
Returns the payload type that this object specifies.

Returns:
A payload type from the RTPPayload interface

getMaxFramesPerPacket

public int getMaxFramesPerPacket()
Returns the packet size (in milliseconds) that this object specifies.

The maxFramesPerPacket parameter is a carryover from the H.245 protocol definition. Unified CM does not use this field as the number of frames per RTP packet, but rather as the number of milliseconds of audio per RTP packet that the device can receive. Third-party IP phones may utilize different (higher) rates even though these rates may not be exceeded to and or from Cisco Unified IP phones.

Returns:
The packet size, specified as a number of milliseconds

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isSupported

public boolean isSupported()
Returns whether the payload of this object is supported or not.

Returns:
True if the payloadType is supported, or otherwise false